8
0

immutable.js 651 B

123456789101112131415161718
  1. /**
  2. * @license Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
  3. * For licensing, see LICENSE.md.
  4. */
  5. import Document from '/ckeditor5/engine/view/document.js';
  6. import { setData } from '/tests/engine/_utils/view.js';
  7. const viewDocument = new Document();
  8. viewDocument.createRoot( document.getElementById( 'editor' ) );
  9. setData( viewDocument,
  10. '<container:p><attribute:strong>foo</attribute:strong>[]<attribute:strong>bar</attribute:strong></container:p>' +
  11. '<container:p></container:p>' +
  12. '<container:p><attribute:strong></attribute:strong></container:p>' +
  13. '<container:p>bom</container:p>' );
  14. viewDocument.render();