Skip to content

Commit f7efc72

Browse files
committed
editable div test case for #939
1 parent 6909faa commit f7efc72

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

demo/serialization.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ <h1>Serialization demo</h1>
1818
<a onClick="loadFullGrid()" class="btn btn-primary" href="#">Load Full</a>
1919
<a onClick="clearGrid()" class="btn btn-primary" href="#">Clear</a>
2020
<br/><br/>
21+
<div contentEditable="true">Editable Div</div>
2122
<div id="gridCont"><div class="grid-stack"></div></div>
2223
<hr/>
2324
<textarea id="saved-data" cols="100" rows="20" readonly="readonly"></textarea>
@@ -38,7 +39,8 @@ <h1>Serialization demo</h1>
3839

3940
let serializedData = [
4041
{x: 0, y: 0, w: 2, h: 2, id: '0'},
41-
{x: 3, y: 1, h: 2, id: '1', content: "<button onclick=\"alert('clicked!')\">Press me</button><div>text area</div><div><textarea></textarea></div><div>Input Field</div><input type='text'>"},
42+
{x: 3, y: 1, h: 2, id: '1',
43+
content: "<button onclick=\"alert('clicked!')\">Press me</button><div>text area</div><div><textarea></textarea></div><div>Input Field</div><input type='text'><div contentEditable=\"true\">Editable Div</div>"},
4244
{x: 4, y: 1, id: '2'},
4345
{x: 2, y: 3, w: 3, id: '3'},
4446
{x: 1, y: 3, id: '4'}

0 commit comments

Comments
 (0)