This repository was archived by the owner on May 5, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
packages/plugin-table/src Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -280,7 +280,11 @@ export class Table<T extends JWPluginConfig = JWPluginConfig> extends JWPlugin<T
280280 // Only merge the cells if they would not imply to merge
281281 // unrelated cells, ie. the selected cells form a rectangle.
282282 const managerCell = cells . shift ( ) ;
283+ const Separator = this . editor . configuration . defaults . Separator ;
283284 for ( const cell of cells ) {
285+ if ( managerCell . hasChildren ( ) ) {
286+ managerCell . append ( new Separator ( ) ) ;
287+ }
284288 cell . mergeWith ( managerCell ) ;
285289 }
286290 }
Original file line number Diff line number Diff line change 11import { VNode } from '../../core/src/VNodes/VNode' ;
22import { TableNode } from './TableNode' ;
33import { TableRowNode } from './TableRowNode' ;
4- import { LineBreakNode } from '../../plugin-linebreak/src/LineBreakNode' ; // TODO: remove dependency
54import { ContainerNode } from '../../core/src/VNodes/ContainerNode' ;
65
76export interface TableCellAttributes extends Record < string , string | Record < string , string > > {
@@ -164,9 +163,6 @@ export class TableCellNode extends ContainerNode {
164163 cell . header = this . header ;
165164
166165 // Move the children to the manager.
167- if ( cell . hasChildren ( ) ) {
168- this . append ( new LineBreakNode ( ) ) ;
169- }
170166 this . append ( ...cell . childVNodes ) ;
171167
172168 // Hand the managed cells over to the manager.
You can’t perform that action at this time.
0 commit comments