-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(example): the new example page for testing multiple instances
- Loading branch information
Showing
3 changed files
with
82 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
|
||
<!-- | ||
Use this page for debugging purposes. | ||
This page can be used for testing multiple editor instances on the same page. | ||
--> | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<title>Editor.js 🤩🧦🤨 example: Multiple instances</title> | ||
<link href="assets/demo.css" rel="stylesheet"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" /> | ||
</head> | ||
<body> | ||
<div class="ce-example"> | ||
<div class="ce-example__header"> | ||
<a class="ce-example__header-logo" href="https://codex.so/editor">Editor.js 🤩🧦🤨</a> | ||
|
||
<div class="ce-example__header-menu"> | ||
<a href="https://github.com/editor-js" target="_blank">Plugins</a> | ||
<a href="https://editorjs.io/usage" target="_blank">Usage</a> | ||
<a href="https://editorjs.io/configuration" target="_blank">Configuration</a> | ||
<a href="https://editorjs.io/creating-a-block-tool" target="_blank">API</a> | ||
</div> | ||
</div> | ||
<div class="ce-example__content ce-example__content--with-bg _ce-example__content--small"> | ||
<div class="ce-example-multiple"> | ||
<div id="editorjs1"></div> | ||
<div id="editorjs2"></div> | ||
</div> | ||
</div> | ||
<div class="ce-example__output"> | ||
<div class="ce-example__output-footer"> | ||
<a href="https://codex.so" style="font-weight: bold;">Made by CodeX</a> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<!-- Load Editor.js's Core --> | ||
<script src="../dist/editor.js"></script> | ||
|
||
<!-- Initialization --> | ||
<script> | ||
/** | ||
* Instance #1 | ||
*/ | ||
var editor1 = new EditorJS({ | ||
holder: 'editorjs1', | ||
}); | ||
|
||
/** | ||
* Instance #2 | ||
*/ | ||
var editor2 = new EditorJS({ | ||
holder: 'editorjs2', | ||
}); | ||
</script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters