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

Missing disabling of format buttons in certain cases #517

Open
morpheus-87 opened this issue Oct 11, 2016 · 1 comment
Open

Missing disabling of format buttons in certain cases #517

morpheus-87 opened this issue Oct 11, 2016 · 1 comment
Labels

Comments

@morpheus-87
Copy link
Contributor

morpheus-87 commented Oct 11, 2016

The format buttons for changing a text block to a heading or a quote block are even added to the format bar, when these blocktypes are not available by configuration.

@morpheus-87
Copy link
Contributor Author

morpheus-87 commented Nov 16, 2016

See this example:

screencast

My configuration is like this:

// Instantiate editor
window.editor = new SirTrevor.Editor({
  el: document.querySelector('.sir-trevor'),
  blockTypes: [
    "Heading",
    "Text",
    "List",
    "Image"
  ]
});

As you can see, the block type Quote is not enabled, but the format button, to convert a text block into a quote block, is though available. When I click on that button, the text simply disappears.

@ilyatulvio ilyatulvio added the Bug label Mar 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants