CKEditor table style

144 views
Skip to first unread message

Austin

unread,
Jun 15, 2018, 4:02:54 PM6/15/18
to sakai-dev
Hello All,

We received a bug report where when creating tables in CKEditor, if you specify the "cell spacing" and "cell padding", when you save the post, the spacing and padding aren't displayed.

Looking into it, the CKEditor sets the <table cellspacing="10" cellpadding="10"> attributes.  But it seems that the morpheus' _normalize.css is overriding that by removing spacing

Has anyone else noticed this?  I was thinking either CKEditor should set some inline padding on each <td>.  Though I don't think I'd necessarily want to modify CKEditor's source.  Also, it would be tempting to modify _normalize.css or _tables.css to include a bit of padding on <td>'s, but that doesn't sound right either.  Any suggestions?

Thanks,

Austin

Matthew Jones

unread,
Jun 15, 2018, 4:07:31 PM6/15/18
to Austin, sakai-dev
cellspacing, cellpadding and border are deprecated in HTML5 so they've been removed in 12 as being available. [1] There is an issue with CKEditor that was breaking these. [2] The ticket is 5 years old and CKEditor has no plans to support deprecated attributes, it would have to be done using a css style or something in a future version of CKEdtior


--
You received this message because you are subscribed to the Google Groups "Sakai Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sakai-dev+...@apereo.org.
To post to this group, send email to saka...@apereo.org.
Visit this group at https://groups.google.com/a/apereo.org/group/sakai-dev/.

Austin

unread,
Jun 15, 2018, 4:12:48 PM6/15/18
to Matthew Jones, sakai-dev
Hello Matthew

Thanks.  Sorry, I should have searched JIRA before asking the list.  We'll be looking forward to a future version of CKEditor that fixes this.  They've opened up a new issue to track it.


To unsubscribe from this group and stop receiving emails from it, send an email to sakai-dev+unsubscribe@apereo.org.

Adam Marshall

unread,
Jun 18, 2018, 5:33:55 AM6/18/18
to sakai-dev, Austin
We fixed this at Oxford after a hail of protest.

There's an open Sakai PR 3621. This has stalled and does not look likely to be progessed.

Adam

sent from my mobile


From: saka...@apereo.org <saka...@apereo.org> on behalf of Austin <aust...@hawaii.edu>
Sent: Friday, June 15, 2018 9:02:50 PM
To: sakai-dev
Subject: [sakai-dev] CKEditor table style
 
--
You received this message because you are subscribed to the Google Groups "Sakai Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sakai-dev+...@apereo.org.
Reply all
Reply to author
Forward
0 new messages