Przeglądaj źródła

Added formats plugin to the manual sample.

Piotrek Koszuliński 9 lat temu
rodzic
commit
52efd2bce2

+ 1 - 1
packages/ckeditor5-editor-classic/tests/manual/classic.html

@@ -8,7 +8,7 @@
 </p>
 
 <div id="editor">
-	<h1>Hello world!</h1>
+	<h2>Hello world!</h2>
 	<p>This is an editor instance.</p>
 </div>
 

+ 2 - 2
packages/ckeditor5-editor-classic/tests/manual/classic.js

@@ -14,8 +14,8 @@ let editor, editable, observer;
 
 function initEditor() {
 	ClassicEditor.create( document.querySelector( '#editor' ), {
-		features: [ 'delete', 'enter', 'typing', 'paragraph', 'undo', 'basic-styles/bold', 'basic-styles/italic' ],
-		toolbar: [ 'bold', 'italic', 'undo', 'redo' ]
+		features: [ 'delete', 'enter', 'typing', 'paragraph', 'undo', 'formats', 'basic-styles/bold', 'basic-styles/italic' ],
+		toolbar: [ 'formats', 'bold', 'italic', 'undo', 'redo' ]
 	} )
 	.then( newEditor => {
 		console.log( 'Editor was initialized', newEditor );