percussion / percussioncms

Percussion CMS - Content Management System
https://percussioncmshelp.intsof.com/percussioncms
Apache License 2.0
11 stars 9 forks source link

Table HTML attributes removed after saving rich text widget #938

Closed mariosm1 closed 1 year ago

mariosm1 commented 1 year ago

Attributes like border and cellpadding are removed from table elements in rich text widgets (after saving the widget)

To Reproduce Steps to reproduce the behavior:

  1. Open a rich text widget and then open the source view to create a table. You can also create a table using the Table dropdown
  2. Make sure the table element has the following attributes <table class="tableoutline" cellspacing="0" cellpadding="4" border="1">
  3. Save the Rich Text widget
  4. Open the widget again and the border and cellpadding properties will be removed

Expected behavior All table attributes should be kept on saving the widget if they are valid

mariosm1 commented 1 year ago

Attributes can be added as styling by adding this property to the rx_resources/tinymce/config/customer_config_override.json

"table_style_by_css": true

ramdev1980 commented 1 year ago

This needs to be changed here: modules/perc-tinymce/src/main/resources/META-INF/resources/sys_resources/tinymce/config/default_config.json

see this : https://www.tiny.cloud/docs/plugins/opensource/table/

Can be tested in installation dir: C:\Percussion\Project_Installation\CMS\sys_resources\tinymce\config