Selaa lähdekoodia

Mark softBreak as inline element in schema.

Maciej Gołaszewski 6 vuotta sitten
vanhempi
commit
3b1c1c2ba2
1 muutettua tiedostoa jossa 2 lisäystä ja 1 poistoa
  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.