Missing disabling of format buttons in certain cases
morpheus-87 opened this issue · 1 comments
morpheus-87 commented
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 commented
See this example:
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.