浏览代码

Docs: Added missing imports to the chat with mentions guide.

Mgsy 6 年之前
父节点
当前提交
73e30e6282
共有 1 个文件被更改,包括 6 次插入2 次删除
  1. 6 2
      packages/ckeditor5-mention/docs/examples/chat-with-mentions.md

+ 6 - 2
packages/ckeditor5-mention/docs/examples/chat-with-mentions.md

@@ -184,14 +184,18 @@ The HTML code of the application is listed below:
 JavaScript code required to run the editor:
 
 ```js
-import ClassicEditor from '@ckeditor/ckeditor5-editor-classic/src/ckeditor';
+import ClassicEditor from '@ckeditor/ckeditor5-editor-classic/src/classiceditor';
+import Essentials from '@ckeditor/ckeditor5-essentials/src/essentials';
+import Bold from '@ckeditor/ckeditor5-basic-styles/src/bold';
+import Italic from '@ckeditor/ckeditor5-basic-styles/src/italic';
 import Underline from '@ckeditor/ckeditor5-basic-styles/src/underline';
 import Strikethrough from '@ckeditor/ckeditor5-basic-styles/src/strikethrough';
 import Mention from '@ckeditor/ckeditor5-mention/src/mention';
+import Link from '@ckeditor/ckeditor5-link/src/link';
 
 ClassicEditor
 	.create( document.querySelector( '.chat__editor' ), {
-		extraPlugins: [ Mention, MentionLinks, Underline, Strikethrough ],
+		extraPlugins: [ Essentials, Mention, MentionLinks, Bold, Italic, Underline, Strikethrough, Link ],
 		toolbar: {
 			items: [
 				'bold', 'italic', 'underline', 'strikethrough', '|', 'link', '|', 'undo', 'redo'