Skip to content
This repository has been archived by the owner on Jun 26, 2020. It is now read-only.

Commit

Permalink
Updated the sample too.
Browse files Browse the repository at this point in the history
  • Loading branch information
Reinmar committed Mar 28, 2018
1 parent a55552a commit bd7f823
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
14 changes: 7 additions & 7 deletions sample/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html lang="en">
<head>
<meta charset="utf-8">
<title>CKEditor 5 – decoupled document build – development sample</title>
<title>CKEditor 5 – document editor build – development sample</title>
<style>
body {
max-width: 800px;
Expand All @@ -12,7 +12,7 @@
</head>
<body>

<h1>CKEditor 5 – decoupled document build – development sample</h1>
<h1>CKEditor 5 – document editor build – development sample</h1>

<h2>The toolbar</h2>
<div class="toolbar-container"></div>
Expand Down Expand Up @@ -51,18 +51,18 @@ <h2>The editable</h2>
<script src="../build/ckeditor.js"></script>
<script>
const editorData = `<h2>Sample</h2>
<p>This is an instance of the <a href="https://docs.ckeditor.com/ckeditor5/latest/builds/guides/overview.html#document-editor">decoupled document build</a>.</p>
<p>This is an instance of the <a href="https://docs.ckeditor.com/ckeditor5/latest/builds/guides/overview.html#document-editor">document editor build</a>.</p>
<figure class="image">
<img src="../tests/manual/sample.jpg" alt="Autumn fields" />
</figure>
<p>You can use this sample to validate whether your <a href="https://docs.ckeditor.com/ckeditor5/latest/builds/guides/development/custom-builds.html">custom build</a> works fine.</p>`;

DecoupledDocumentEditor.create( editorData, {
toolbarContainer: document.querySelector( '.toolbar-container' ),
editableContainer: document.querySelector( '.editable-container' )
} )
DecoupledDocumentEditor.create( editorData )
.then( editor => {
window.editor = editor;

document.querySelector( '.toolbar-container' ).appendChild( editor.ui.view.toolbar.element );
document.querySelector( '.editable-container' ).appendChild( editor.ui.view.editable.element );
} )
.catch( err => {
console.error( err.stack );
Expand Down
2 changes: 1 addition & 1 deletion tests/manual/ckeditor-cjs-version.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# CKEditor 5 decoupled document build – standard version (CommonJS `require()`)
# CKEditor 5 document editor build – standard version (CommonJS `require()`)

Just play with it.

Expand Down
2 changes: 1 addition & 1 deletion tests/manual/ckeditor.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# CKEditor 5 decoupled document build – standard version
# CKEditor 5 document editor build – standard version

Just play with it.

Expand Down

0 comments on commit bd7f823

Please sign in to comment.