-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
removeFromToolbar in config #7945
Comments
Interesting proposal. I stumbled upon this problem many times too. |
Expected usage: ClassicEditor.create( {
toolbar: {
removeItems: [ 'bold' ]
}
} ) |
Edge case: there were toolbar: {
items: [
'heading',
'|',
'bold',
'italic',
'link',
'bulletedList',
'numberedList',
'|',
'indent',
'outdent',
'|',
'imageUpload',
'blockQuote',
'insertTable',
'mediaEmbed',
'undo',
'redo'
]
}, And you defined Perhaps we can relatively easily normalize this. It seems that all this code can be put in |
Since
|
We decided to move forward with the change. CC @oleq |
Feature (ui): Items baked into editor bundles can be removed from the toolbar by using `config.toolbar.removeItems`. Closes #7945. MINOR BREAKING CHANGE (ui): Configuration passed to `ToolbarView.fillFromConfig()` will be stripped off of leading, trailing, and duplicated separators ('|' and '-').
I have custom build with all tools and buttons that I need. But In some cases I don't want
link
button to be shown. I need optionremoveFromToolbar
for that. Otherwise I have to rewrite my wholetoolbar
config, which can change in time.BTW. I think that option
removePlugins
is not working. I'm addingand
bold
is working as always. But still (as in docs)removePlugins
does not remove corresponding buttons.The text was updated successfully, but these errors were encountered: