Przeglądaj źródła

Mark softBreak as inline element in schema.

Maciej Gołaszewski 6 lat temu
rodzic
commit
3b1c1c2ba2
1 zmienionych plików z 2 dodań i 1 usunięć
  1. 2 1
      packages/ckeditor5-enter/src/shiftenter.js

+ 2 - 1
packages/ckeditor5-enter/src/shiftenter.js

@@ -37,7 +37,8 @@ export default class ShiftEnter extends Plugin {
 
 		// Configure the schema.
 		schema.register( 'softBreak', {
-			allowWhere: '$text'
+			allowWhere: '$text',
+			isInline: true
 		} );
 
 		// Configure converters.