Webboard

Pełna wersja: Usunięcie przycisków z CKEditor5
Aktualnie przeglądasz uproszczoną wersję forum. Kliknij tutaj, by zobaczyć wersję z pełnym formatowaniem.
Mam taki mały problem, bo potrzebuje usunąć przyciski z CKEditor5, niestety nazwy "Image", "image", "buttonimage", "Media", "media", "video" nie działają
Gdzie według dokumentacji CKeditor są to "Image" lub "ButtonImage" i "Media"
[attachment=14503]
Jest na pewno 'ImageButton' i 'MediaEmbed' albo 'oembed'
MediaEmbed działa, ale za to ImageButton dalej nie działa
Kod PHP:
removePlugins: [ 'Table''ImageButton''MediaEmbed' ], 
https://ckeditor.com/docs/ckeditor5/late...ation.html

Wylistuj sobie aktualne pluginy, których używasz:
Kod:
ClassicEditor.builtinPlugins.map( plugin => plugin.pluginName );
+ znajdziesz w tym linku powyżej taką informację:
Cytat:Be careful when removing plugins from CKEditor builds using config.removePlugins. If removed plugins were providing toolbar buttons, the default toolbar configuration included in a build will become invalid. In such case you need to provide the updated toolbar configuration as in the example above.