Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

button opts don't work #341

Open
onsombal opened this issue Aug 7, 2014 · 1 comment
Open

button opts don't work #341

onsombal opened this issue Aug 7, 2014 · 1 comment

Comments

@onsombal
Copy link

onsombal commented Aug 7, 2014

I'm pleased to say that I've been able to integrate EpicEditor into my Meteor app with great success. However, I can't disable the buttons on one of my views that sets the display in preview mode via "editor.preview();".

Below are the different button opts settings I've tried:

  1. button: false,

  2. button: {
    preview: false,
    fullscreen: false,
    bar: false
    },

The preview and fullscreen buttons still show up.

The issue may be because the display style is set in the html tag &ltdiv id="epiceditor-utilbar" style="display: block;"&gt
So, I also tried using JQuery to override this DOM element

  1. $('#epiceditor-utilbar').css('display', 'none');
  2. $('#epiceditor-utilbar').hide();
  3. $('#epiceditor-utilbar').removeAttr('img');

None of these things worked for me to hide the buttons. I've search the issues wiki and a lot of google searches for a solution, but so far no joy.

Thoughts?

Thanks... Jim

@onsombal
Copy link
Author

onsombal commented Aug 7, 2014

I found the answer that works: $('#epiceditor-utilbar').css('display', none);
I mistakenly put none in quote marks.

But, I'm still surprised that the opts button configuration options didn't work.

Regards... Jim

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant