[opencms-dev] configure behaviour of tinymce editor
Paoletti Corrado
c.paoletti at fineco.it
Thu Dec 23 14:43:51 CET 2021
FinecoBank S.p.A. - Internal Use Only
Hi Hein,
tinymce is configured by "/system/workplace/editors/tinymce/editor.jsp". Search "tinyMCE.init({" code.
Let's know
Corrado
From: opencms-dev <opencms-dev-bounces at opencms.org> On Behalf Of Hein van der Kallen
Sent: venerdì 17 dicembre 2021 16:05
To: The OpenCms mailing list <opencms-dev at opencms.org>
Subject: [opencms-dev] configure behaviour of tinymce editor
Dear mailing list,
I would like that the editor of Opencms would not add styling to my tables when I edit them using a mouse.
For the result of that styling is a not very flexible table.
See https://stackoverflow.com/questions/38250647/turn-off-auto-style-in-tables-tinymce
In principle there is a solution if I can add to the configuration of the TinyMCE editor
invalid_styles: {
'table': 'width height',
'tr' : 'width height',
'th' : 'width height',
'td' : 'width height'
}
Like in https://www.tiny.cloud/docs/configure/content-filtering/#exampleusinginvalid_stylesobject
But in Opencms you can configure which buttons you want to see in the editor.
But without recompiling Opencms I see no obvious place where I can add such a configuration.
I regret that for
TinyMCE is not only the most advanced rich text editor it's also the most customizable
( see https://www.tiny.cloud/docs/configure/ )
Is there a simple solution without recompiling Opencms or hacking in the compiled opencms-resources.jar?
with friendly regards,
Hein van der Kallen
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opencms.org/pipermail/opencms-dev/attachments/20211223/401adc77/attachment.htm>
More information about the opencms-dev
mailing list