8
0
فهرست منبع

Make $text an inline element in the schema.

Maciej Gołaszewski 7 سال پیش
والد
کامیت
2090d8ec91
1فایلهای تغییر یافته به همراه2 افزوده شده و 1 حذف شده
  1. 2 1
      packages/ckeditor5-engine/src/model/model.js

+ 2 - 1
packages/ckeditor5-engine/src/model/model.js

@@ -94,7 +94,8 @@ export default class Model {
 			isBlock: true
 			isBlock: true
 		} );
 		} );
 		this.schema.register( '$text', {
 		this.schema.register( '$text', {
-			allowIn: '$block'
+			allowIn: '$block',
+			isInline: true
 		} );
 		} );
 		this.schema.register( '$clipboardHolder', {
 		this.schema.register( '$clipboardHolder', {
 			allowContentOf: '$root',
 			allowContentOf: '$root',