-
Notifications
You must be signed in to change notification settings - Fork 19
I/6197: Proper convertion of the table alignment property. #234
Conversation
# Conflicts: # src/tableproperties/tablepropertiesediting.js
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The conversion is mirrored.
mirrored and fixed. |
As for the first question, my gut tells me unlike inline styles, classes have the future ( The second is a hard one.
@Reinmar Can we know your opinion? |
I'm for a new table to be centered as in the case when the feature is not loaded. |
This features (table styles) is about inline styles, so inline styles are the way to go. The image-like table styles is a separate ticket: ckeditor/ckeditor5#3225. The problem that I realised right now is the naming conflict ;| I'm afraid that we have to rename the feature that we're building right now to something like "table formatting" in order to allow "table styles" in the future. WDYT? If you're fine, let's report a ticket :( As for what options we should have right now, that'd be my idea:
|
Or rather "TableProperties"? |
OK... it's how it's called currently :D Thank god :D |
Also, why is there |
Bug: ckeditor/ckeditor5#6225. |
@oleq - the issue with center alignment was fixed. The problem was integration with the alignment. It picked up |
Unfortunately we have a couple conflicts on this branch. Could you resolve them, @jodator? |
# Conflicts: # src/tableproperties/tablepropertiesediting.js
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As commented.
} | ||
} ) | ||
}, | ||
converterPriority: 'high' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it still necessary?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I left two comments. Probably those things can be removed.
@Reinmar / @oleq I've merged this one as it blocks me on ckeditor/ckeditor5#6232 and I feel that most of the comments were addressed. |
Suggested merge commit message (convention)
Other: Convert
alignment
table property to a<figure>
element. Closes ckeditor/ckeditor5#6197. Closes ckeditor/ckeditor5#6179.Additional information
@Reinmar This PR invalidates fixes in #233. Fortunately, the test written there are helpful so the time didn't get wasted.
Some question though
style
not aclass
like inImage
plugins - are we OK with this.center
(up/down) - I've left the old onemargin-right:auto;margin-left:auto
but we should be OK with empty style. In this - should we ever havecenter
property in the model? Looks superfluous and also was raised by @oleq (but I can't find where)