0
Fork 0
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:
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="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: {