mirror of
https://github.com/fastmail/Squire.git
synced 2024-12-22 07:13:08 -05:00
Expose editor
global variable in Demo.html
For easier experimentation.
This commit is contained in:
parent
077d29e778
commit
4cecb3c366
1 changed files with 1 additions and 1 deletions
|
@ -118,7 +118,7 @@ white-space: pre-wrap;word-wrap: break-word;overflow-wrap: break-word;border-rad
|
||||||
<script type="text/javascript" src="dist/squire-raw.js"></script>
|
<script type="text/javascript" src="dist/squire-raw.js"></script>
|
||||||
<script type="module" charset="utf-8">
|
<script type="module" charset="utf-8">
|
||||||
var div = document.getElementById( 'editor' );
|
var div = document.getElementById( 'editor' );
|
||||||
var editor = new Squire( div, {
|
var editor = window.editor = new Squire( div, {
|
||||||
blockTag: 'div',
|
blockTag: 'div',
|
||||||
blockAttributes: {'class': 'paragraph'},
|
blockAttributes: {'class': 'paragraph'},
|
||||||
tagAttributes: {
|
tagAttributes: {
|
||||||
|
|
Loading…
Reference in a new issue