|
|
@@ -30,9 +30,9 @@ Regardless of the chosen build, creating an editor is done using the static `cre
|
|
|
Add an element that CKEditor should replace to your HTML page:
|
|
|
|
|
|
```html
|
|
|
-<textarea name="content" id="editor">
|
|
|
- <p>Here goes the initial content of the editor.</p>
|
|
|
-</textarea>
|
|
|
+<div id="editor">
|
|
|
+ <p>Here goes the initial content of the editor.</p>
|
|
|
+</div>
|
|
|
```
|
|
|
|
|
|
Then call {@link module:editor-classic/classiceditor~ClassicEditor#create `ClassicEditor.create()`} to **replace** the `<textarea>` element with a {@link builds/guides/overview#classic-editor Classic editor}:
|
|
|
@@ -56,7 +56,7 @@ Similarly to the previous example, add an element where CKEditor should initiali
|
|
|
|
|
|
```html
|
|
|
<div id="editor">
|
|
|
- <p>Here goes the initial content of the editor.</p>
|
|
|
+ <p>Here goes the initial content of the editor.</p>
|
|
|
</div>
|
|
|
```
|
|
|
|
|
|
@@ -81,7 +81,7 @@ Add an element where CKEditor should initialize to your page:
|
|
|
|
|
|
```html
|
|
|
<div id="editor">
|
|
|
- <p>Here goes the initial content of the editor.</p>
|
|
|
+ <p>Here goes the initial content of the editor.</p>
|
|
|
</div>
|
|
|
```
|
|
|
|