[opencms-dev] tinymce - add custom plugin

Lorenz Lammersdorf lorenz.lammersdorf at kernbrand.ch
Tue Oct 11 15:28:35 CEST 2016


hi paul, hi all,

it seems that the list of available buttons is hard coded in org/opencms/widgets/CmsHtmlWidgetOption.java. i don't want to be rude, but wtf? why do you (the guys from alkacon) implement a plugin-enabled editor with hard coded configuration options????

cheers
lorenz






Von: opencms-dev-bounces at opencms.org <opencms-dev-bounces at opencms.org> im Auftrag von Paul-Inge Flakstad <flakstad at npolar.no>
Gesendet: Dienstag, 11. Oktober 2016 11:19
An: The OpenCms mailing list
Betreff: Re: [opencms-dev] tinymce - add custom plugin

Hi Lorenz & everyone,

I'm struggling with this too.

>From what I could tell, the file

        /system/workplace/editors/tinymce/editor.jsp

is used only for the "full-function" version of the old editor. That is, stuff like the xmlpage ("Page with free text"), which was retired a while back.

For structured content, I managed to hack my button into the html widget by editing the file

        /system/workplace/resources/components/widgets/tinymce.js

However, the button appears only when using the "old" editor. I have yet to figure out how to add a button to the Acacia editor, and I don't know how much more time I'm willing to spend on this...

Does anybody have a clue? ANY help - even just a hint - will be appreciated! :)

PS: In the longer term, a short how-to in the OpenCms docs / the Wiki would be really helpful.

Thanks,
Paul

-----Original Message-----
From: opencms-dev-bounces at opencms.org [mailto:opencms-dev-bounces at opencms.org] On Behalf Of Lorenz Lammersdorf
Sent: 11. oktober 2016 10:07
To: opencms-dev at opencms.org
Subject: [opencms-dev] tinymce - add custom plugin

hi all,

i need to add a custom plugin to tinymce. so far it seems to work, i created the plugin, edited /system/workplace/editors/tinymce/editor.jsp accordingly and if i open /system/workplace/editors/tinymce/editor.jsp the changed buttonbar appaers.

but it does not appear in an html widget. what did i miss?

regards
lorenz





Lorenz Lammersdorf
Entwickler
+41 58 255 13 06

Aktuell im Blog: Was haben McDonald's, Globi und Louis Vuitton gemeinsam?<http://bit.ly/KB_Illustrationen>

Kernbrand AG
Teufener Strasse 11
9000 St. Gallen
www.kernbrand.ch<https://kernbrand.ch>

Folgen Sie uns: Facebook<http://bit.ly/Kernbrand_Facebook> | Pinterest<http://bit.ly/Kernbrand_Pinterest> | LinkedIn<bit.ly/Kernbrand_LinkedIn1> | Twitter<bit.ly/Kernbrand_Twitter>  | Youtube<http://bit.ly/Kernbrand_Youtube>
_______________________________________________
This mail is sent to you from the opencms-dev mailing list To change your list options, or to unsubscribe from the list, please visit http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev



_______________________________________________
This mail is sent to you from the opencms-dev mailing list
To change your list options, or to unsubscribe from the list, please visit
http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev







Lorenz Lammersdorf
Entwickler
+41 58 255 13 06

Aktuell im Blog: Was haben McDonald's, Globi und Louis Vuitton gemeinsam?<http://bit.ly/KB_Illustrationen>

Kernbrand AG
Teufener Strasse 11
9000 St. Gallen
www.kernbrand.ch<https://kernbrand.ch>

Folgen Sie uns: Facebook<http://bit.ly/Kernbrand_Facebook> | Pinterest<http://bit.ly/Kernbrand_Pinterest> | LinkedIn<bit.ly/Kernbrand_LinkedIn1> | Twitter<bit.ly/Kernbrand_Twitter> | Youtube<http://bit.ly/Kernbrand_Youtube>



More information about the opencms-dev mailing list