inline.html 418 B

1234567891011121314151617181920212223
  1. <p>
  2. <button id="destroyEditor">Destroy editor</button>
  3. <button id="initEditor">Init editor</button>
  4. </p>
  5. <div id="editor" contenteditable="true" class="custom-class" custom-attr="foo">
  6. <h2>Hello world!</h2>
  7. <p>This is an editor instance.</p>
  8. </div>
  9. <style>
  10. body {
  11. width: 10000px;
  12. height: 10000px;
  13. }
  14. #editor {
  15. margin-top: 200px;
  16. margin-left: 100px;
  17. margin-bottom: 200px;
  18. width: 450px;
  19. }
  20. </style>