-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
List postfixers should always check type
attribute and type of element.
#3003
Comments
AFAIR without looking at the code, the problem won't be resolved by checking |
@scofalik yeah I'm checking this on schema - if it's allowed then it stays. The problem is that postfixer doesn't know which element it was previously - so it was removing it from every element (even those newly created). The simple check for now which I've added is to check schema. Also this should be cleaned upon resolving this: https://github.com/ckeditor/ckeditor5-engine/issues/1228. |
The problem is deeper. Much deeper. The This indicates that we should rename this attribute to Another example – the same situation might occur if So, I'm ok with renaming As for the |
Other: Rename dlist attributes `indent` and `type` to `listIndent` and `listType` to avoid collisions with possible generic `type` attribute which could be used on other elements. Closes #103. BREAKING CHANGE: The `indent` attribute is now called `listIndent`. See #103 for more information. BREAKING CHANGE: The `type` attribute is now called `listType`. See #103 for more information.
Internal: Aligned tests to changes in ckeditor/ckeditor5-list#103.
Internal: Aligned tests to changes in ckeditor/ckeditor5-list#103.
Internal: Aligned tests to changes in ckeditor/ckeditor5-list#103.
Internal: Aligned tests to changes in ckeditor/ckeditor5-list#103.
Internal: Aligned tests to changes in ckeditor/ckeditor5-list#103.
The
type
attribute has a general name that might be used in other features. One such a feature was created here. Basically it adds atype
attribute onvideo
model element which represents the type of a media, ievideo/mp4
.Unfortunately using it with conjunction with the
List
features leads to removingtype
attribute from avideo
element by List postfixer:https://github.com/ckeditor/ckeditor5-list/blob/8074189abd6b406c02edd697556a267b8ae4e053/src/converters.js#L600-L620
The problem is that it should also if
item
is alistItem
as in other checks.The text was updated successfully, but these errors were encountered: