浏览代码

Fixed snippet changes.

Maciej Bukowski 5 年之前
父节点
当前提交
6f63c562da
共有 1 个文件被更改,包括 6 次插入2 次删除
  1. 6 2
      docs/builds/guides/frameworks/react.md

+ 6 - 2
docs/builds/guides/frameworks/react.md

@@ -120,10 +120,14 @@ class App extends Component {
 
 					<CKEditor
 						editor={ ClassicEditor }
-						data="<p>Hello from the second editor working with the context!</p>"
+						config={ {
+							plugins: [ Paragraph, Bold, Italic, Essentials ],
+							toolbar: [ 'bold', 'italic' ]
+						} }
+						data="<p>Hello from the first editor working with the context!</p>"
 						onReady={ editor => {
 							// You can store the "editor" and use when it is needed.
-							console.log( 'Editor2 is ready to use!', editor );
+							console.log( 'Editor1 is ready to use!', editor );
 						} }
 					/>
 				</CKEditorContext>