Skip to content
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

Get rid of ViewListElement #2999

Closed
szymonkups opened this issue Jan 24, 2018 · 1 comment · Fixed by ckeditor/ckeditor5-list#90
Closed

Get rid of ViewListElement #2999

szymonkups opened this issue Jan 24, 2018 · 1 comment · Fixed by ckeditor/ckeditor5-list#90
Assignees
Labels
package:list type:task This issue reports a chore (non-production change) and other types of "todos".
Milestone

Comments

@szymonkups
Copy link
Contributor

During view refactoring we want to prevent ability to extend element classes. This will allow us to have limited set of base classes to handle.
ViewListItemElement is a class that only adds different getFillerOffset function. This can be done by creating instance of ContainerElement class and change its getFillerOffset function to the custom one. This will work properly when element is cloned because it is cloned manually: https://github.com/ckeditor/ckeditor5-engine/blob/master/src/view/element.js#L187.

@szymonkups szymonkups self-assigned this Jan 24, 2018
@Reinmar
Copy link
Member

Reinmar commented Jan 24, 2018

pjasiun referenced this issue in ckeditor/ckeditor5-list Jan 24, 2018
Other: Removed ViewListItemElement class and introduced createViewListItemElement utility method. Closes #89.
@mlewand mlewand transferred this issue from ckeditor/ckeditor5-list Oct 9, 2019
@mlewand mlewand added this to the iteration 14 milestone Oct 9, 2019
@mlewand mlewand added status:confirmed type:task This issue reports a chore (non-production change) and other types of "todos". package:list labels Oct 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
package:list type:task This issue reports a chore (non-production change) and other types of "todos".
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants