0
Fork 0
mirror of https://github.com/fastmail/Squire.git synced 2024-12-21 14:53:09 -05:00

Expose editor global variable in Demo.html

For easier experimentation.
This commit is contained in:
Neil Jenkins 2024-07-17 15:19:49 +10:00
parent 077d29e778
commit 4cecb3c366

View file

@ -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="module" charset="utf-8">
var div = document.getElementById( 'editor' );
var editor = new Squire( div, {
var editor = window.editor = new Squire( div, {
blockTag: 'div',
blockAttributes: {'class': 'paragraph'},
tagAttributes: {