-
-
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
[Docs] Update config.removePlugins docs as it results in an exception #525
Comments
+1 I'm receiving the same error message but it's only when I specify toolbar options in config:
componentfactory-item-missing: There is no such UI component in the factory. {"name":"bold"} |
You're using the import EssentialsPlugin from '@ckeditor/ckeditor5-presets/src/essentials';
import AutoformatPlugin from '@ckeditor/ckeditor5-autoformat/src/autoformat';
import BoldPlugin from '@ckeditor/ckeditor5-basic-styles/src/bold';
import ItalicPlugin from '@ckeditor/ckeditor5-basic-styles/src/italic';
import BlockquotePlugin from '@ckeditor/ckeditor5-block-quote/src/blockquote';
import HeadingPlugin from '@ckeditor/ckeditor5-heading/src/heading';
import ImagePlugin from '@ckeditor/ckeditor5-image/src/image';
import ImagecaptionPlugin from '@ckeditor/ckeditor5-image/src/imagecaption';
import ImagestylePlugin from '@ckeditor/ckeditor5-image/src/imagestyle';
import ImagetoolbarPlugin from '@ckeditor/ckeditor5-image/src/imagetoolbar';
import LinkPlugin from '@ckeditor/ckeditor5-link/src/link';
import ListPlugin from '@ckeditor/ckeditor5-list/src/list';
import ParagraphPlugin from '@ckeditor/ckeditor5-paragraph/src/paragraph';
InlineEditor.create( element, {
plugins: [
EssentialsPlugin,
AutoformatPlugin,
BoldPlugin,
ItalicPlugin,
BlockquotePlugin,
HeadingPlugin,
ImagePlugin,
ImagecaptionPlugin,
ImagestylePlugin,
ImagetoolbarPlugin,
LinkPlugin,
ListPlugin,
ParagraphPlugin
],
toolbar: [ ... ]
} )
.then( ... )
.catch( ... ); Of course, you can remove the plugins that you don't need. What I see is that we definitely have a problem in explaining what is a build and what's an editor creator source and what are the differences between them. The classes have the same names and only the package names differentiate them ( E.g. here, we could extend the |
It seems that this became less of an issue after the actions we took. First of all, we added the following note in the docs:
Second, the error was converted into a warning and does not crash the editor. Third, the error links to a much nicer description: |
If you follow the documentation as is (define just
config.removePlugins
), then the editor does not load due to:Apparently the default build toolbar must be defined manually if a plugin is missing. This is quite confusing, at least for users with CKEditor 4 experience.
Some misleading locations that I relied on:
The text was updated successfully, but these errors were encountered: