|
|
@@ -10,6 +10,7 @@ import Clipboard from '@ckeditor/ckeditor5-clipboard/src/clipboard';
|
|
|
import UndoEditing from '@ckeditor/ckeditor5-undo/src/undoediting';
|
|
|
import ListEditing from '@ckeditor/ckeditor5-list/src/listediting';
|
|
|
import BlockQuoteEditing from '@ckeditor/ckeditor5-block-quote/src/blockquoteediting';
|
|
|
+import Typing from '@ckeditor/ckeditor5-typing/src/typing';
|
|
|
import VirtualTestEditor from '@ckeditor/ckeditor5-core/tests/_utils/virtualtesteditor';
|
|
|
import {
|
|
|
getData as getModelData,
|
|
|
@@ -26,7 +27,7 @@ describe( 'Table feature – integration', () => {
|
|
|
|
|
|
beforeEach( () => {
|
|
|
return VirtualTestEditor
|
|
|
- .create( { plugins: [ Paragraph, TableEditing, ListEditing, BlockQuoteEditing, Widget, Clipboard ] } )
|
|
|
+ .create( { plugins: [ Paragraph, TableEditing, ListEditing, BlockQuoteEditing, Widget, Clipboard, Typing ] } )
|
|
|
.then( newEditor => {
|
|
|
editor = newEditor;
|
|
|
clipboard = editor.plugins.get( 'Clipboard' );
|
|
|
@@ -78,6 +79,18 @@ describe( 'Table feature – integration', () => {
|
|
|
[ '<blockQuote><paragraph>bar[]</paragraph></blockQuote>' ]
|
|
|
] ) );
|
|
|
} );
|
|
|
+
|
|
|
+ it.only( 'merges elements without throwing errors', () => {
|
|
|
+ setModelData( editor.model, modelTable( [
|
|
|
+ [ '<blockQuote><paragraph>Foo</paragraph></blockQuote><paragraph>[]Bar</paragraph>' ]
|
|
|
+ ] ) );
|
|
|
+
|
|
|
+ editor.execute( 'delete' );
|
|
|
+
|
|
|
+ expect( formatTable( getModelData( editor.model ) ) ).to.equal( formattedModelTable( [
|
|
|
+ [ '<blockQuote><paragraph>Foo[]Bar</paragraph></blockQuote>' ]
|
|
|
+ ] ) );
|
|
|
+ } );
|
|
|
} );
|
|
|
|
|
|
describe( 'with undo', () => {
|