8
0

inline.html 575 B

12345678910111213141516171819202122232425262728
  1. <p>
  2. <button id="destroyEditors">Destroy editor</button>
  3. <button id="initEditors">Init editors</button>
  4. </p>
  5. <div id="editor-1" contenteditable="true" class="custom-class" custom-attr="foo">
  6. <h2>Editor 1</h2>
  7. <p>This is an editor instance.</p>
  8. </div>
  9. <div id="editor-2" contenteditable="true" class="custom-class" custom-attr="foo">
  10. <h2>Editor 2</h2>
  11. <p>This is another editor instance.</p>
  12. </div>
  13. <style>
  14. body {
  15. width: 10000px;
  16. height: 10000px;
  17. }
  18. .custom-class {
  19. margin-top: 100px;
  20. margin-left: 100px;
  21. margin-bottom: 100px;
  22. width: 450px;
  23. }
  24. </style>