How to use the @ckeditor/ckeditor5-engine/src/dev-utils/view.parse function in @ckeditor/ckeditor5-engine

To help you get started, we’ve selected a few @ckeditor/ckeditor5-engine examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github ckeditor / ckeditor5-table / tests / table-integration.js View on Github external
it( 'pastes blockquote into the td', () => {
			setModelData( editor.model, modelTable( [ [ '[]' ] ] ) );

			clipboard.fire( 'inputTransformation', {
				content: parseView( '<blockquote>bar</blockquote>' )
			} );

			expect( formatTable( getModelData( editor.model ) ) ).to.equal( formattedModelTable( [
				[ '<blockquote>bar[]</blockquote>' ]
			] ) );
		} );
	} );
github ckeditor / ckeditor5-table / tests / table-integration.js View on Github external
it( 'pastes td as p when pasting into the p', () =&gt; {
			setModelData( editor.model, 'foo[]' );

			clipboard.fire( 'inputTransformation', {
				content: parseView( 'bar' )
			} );

			expect( formatTable( getModelData( editor.model ) ) ).to.equal( 'foobar[]' );
		} );
github ckeditor / ckeditor5-table / tests / table-integration.js View on Github external
it( 'pastes list into the td', () =&gt; {
			setModelData( editor.model, modelTable( [ [ '[]' ] ] ) );

			clipboard.fire( 'inputTransformation', {
				content: parseView( '<li>bar</li>' )
			} );

			expect( formatTable( getModelData( editor.model ) ) ).to.equal( formattedModelTable( [
				[ 'bar[]' ]
			] ) );
		} );
github ckeditor / ckeditor5-markdown-gfm / tests / gfmdataprocessor / manual / gfmdataprocessor.js View on Github external
function convertToMarkdown() {
	const viewText = viewTextArea.value;

	markdownTextArea.value = dataProcessor.toData( parse( viewText ) );
}