-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
#6432: Introduced SchemaItemDefinition#isSelectable and SchemaItemDefinition#isContent. #7770
Conversation
… as a content in the schema.
… which are no longer registered as objects but selectables in the schema.
…ell definitions in the schema.
…Content() instead of Schema#isObject().
…ot an object anymore (but selectable).
…o the deep dive into schema guide.
This one is tricky. We actually want to check if it's:
Therefore, the current
You may remember that I already mentioned that |
…isSelectable in the Schema.
…on when its boundaries touch selectable elements.
…erties: #isLimit, #isSelectable, and #isContent.
Let's have another round of review then. |
Suggested merge commit message (convention)
Feature (engine): Introduced the
SchemaItemDefinition#isSelectable
property. Closes #6432.Feature (engine): Introduced the
SchemaItemDefinition#isContent
property. Closes #7631.Other (table): The
tableCell
model element brought by theTableEditing
plugin is no longer an object (SchemaItemDefinition#isObject
) in theSchema
but a selectable (SchemaItemDefinition#isSelectable
) (see #6432).Internal (ui): Aligned the
BalloonToolbar
plugin behavior to the newSchemaItemDefinition#isSelectable
property (see #6432).Docs (engine): Extended the "Schema" deep dive guide with the new properties and methods (see #6432, #7631).
Tests (image): Aligned tests to the fact that the
tableCell
model element is no longer an object but a selectable in the schema (see #6432).Tests (horizontal-line): Aligned tests to the fact that the
tableCell
model element is no longer an object but a selectable in the schema (see #6432).MINOR BREAKING CHANGE (table): The
tableCell
model element brought by theTableEditing
plugin is no longer an object (SchemaItemDefinition#isObject
) in theSchema
but a selectable (SchemaItemDefinition#isSelectable
). Please update your integration code accordingly (see #6432).Additional information
https://github.com/ckeditor/ckeditor5/blob/i/6432-schema-is-selectable/packages/ckeditor5-engine/src/model/utils/insertcontent.js#L243-L244 ->
isSelectable()
?https://github.com/ckeditor/ckeditor5/blob/i/6432-schema-is-selectable/packages/ckeditor5-engine/src/model/utils/modifyselection.js#L108 ->
isSelectable()
?https://github.com/ckeditor/ckeditor5/blob/i/6432-schema-is-selectable/packages/ckeditor5-engine/src/model/utils/selection-post-fixer.js#L181-L184 ->
isSelectable()
?https://github.com/ckeditor/ckeditor5/blob/i/6432-schema-is-selectable/packages/ckeditor5-horizontal-line/src/horizontallinecommand.js#L97 ->
isSelectable()
?On one hand, it makes sense because it would disable the command when a single table cell is selected (enabled ATM in this PR).
OTOH, what if in the future we allow selecting some containers from the outside and converting them into a horizontal line when they are selected makes perfectly sense?