Closed (fixed)
Project:
Olivero
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
10 Jul 2020 at 18:00 UTC
Updated:
24 Aug 2020 at 13:04 UTC
Jump to comment: Most recent, Most recent file


Comments
Comment #2
karingComment #3
karingOr probably a better solution: we can leave the default for
table thas is and add this to ensure users have control with CKEditor:Comment #4
sd9121 commentedComment #5
sd9121 commentedHi @KarinG,
When we add a table from CKEditor and add some alignment properties, that comes as an inline style.
Therefore, I don't think we need extra CSS.
Screenshot for reference:
Please add your suggestion on this.
Thanks!
Comment #6
karingThanks for your feedback! Let me re-reproduce this on a fresh site.
Comment #7
karingI'm seeing a different inline style! :-)
Fresh site - git stash - git pull - CKEditor: configured alignment icons in the toolbar:
Basic Page -> create table with header -> highlighting all cells -> hitting centre align icon in the toolbar: cells align but th does not.

Olivero view showing inline style:

text-align-centerThis is a D8.9.x site
Comment #8
karingComment #9
karingComment #10
kiran.kadam911Comment #11
kiran.kadam911Kindly review the attached patch.
@KarinG As per class in TH css is added for alignment. Please check below SS,

Node edit:
Node view:

Thanks!
Comment #12
pratik_kambleComment #13
karingThe proper tag for today is Global2020
Comment #14
karing@kiran.kadam911 - sorry for the delay on getting back to you. Looking at your patch now. I think for there probably should be css to handle
text-align-leftas well?
Comment #15
karingComment #16
pratik_kamble@KarinG we have Contribution sprint tomorrow in India so I had tagged it for it.
Comment #17
karingAh I see! Great - sure can be both :-)
Comment #18
sd9121 commentedComment #19
sd9121 commentedPlease review the patch.
Comment #20
kiran.kadam911Hello @KarinG,
I purposefully not added
text-align-leftbecause by default it's working as left alignment I checked the same on local. But if you think that is needed then we can go ahead with patch #19 provided by @sd9121.Thanks!
Comment #21
deepalij commentedComment #22
chetanbharambe commentedComment #23
chetanbharambe commentedPatch #19 is applied successfully.
Testing Steps Followed:
Prerequisite: User should go to configuration -> click on text format and editors -> click on configure in front of Full HTML -> Drag and drop available left, right, center aligned buttons into the active toolbar format -> Save the configuration
- Create Article page
- Add 4 column table in ck editor
- set the respective column name as left, right, center
- Save it
Looks good to me.
Can be move to RTBC
Please refer attahced screenshots.
Comment #24
kostyashupenkoComment #25
kiran.kadam911@kostyashupenko Looking at your new patch you removed
text-align: leftwhich cause the default alignment of TH in the center if you not applied any alignment from ckeditor. About TD alignment by default it's left if you not applied any alignment from ckeditor. It's creating miss-alignment in between TH & TD if alignment is not selected from ckeditor alignment option. In my opinion we can go ahead with #19 or #11 & just need to update padding in it if required.SS:

Feel free to add your opinion.
Thanks!
Comment #26
kiran.kadam911Comment #27
karingReviewed at this morning's slack meeting:
+1 for #19
This issue is specific to letting users set alignments using CKEditor only - probably should not include any padding edits/changes.
Comment #28
kiran.kadam911Moving to RTBC, because patch #19 is tested by @chetanbharambe in #23
Thanks!
Comment #29
mherchel#19 Looks good. Committing!