How to set theme of CKEditor

Community Driven Extensions Project
Post Reply
onyii5119
Posts: 112
Joined: 25 Nov 2009, 00:22

10 Mar 2012, 16:08

Thanks for contributing to the growth of JSf by coming up with PrimeFaces Extensions.
How can I specify the theme of the Editor? It does not obey the theme set in PrimeFaces. I tried setting the theme name on the theme attribute of the editor tag, the editor did not even show up. I even tried binding to my theme switcher, that did not work. I have a theme switcher setup for my application.

Thanks,
Jonathan Ekwempu
TobiSoft Inc.

tandraschko
PrimeFaces Core Developer
Posts: 3979
Joined: 03 Dec 2010, 14:11
Location: Bavaria, DE
Contact:

10 Mar 2012, 16:11

CKEditor supports all default themes (default themes = themes which are included in CKEditor), as you see here: http://fractalsoft.net/primeext-showcas ... ditors.jsf
It does not support jquery themes. If you need this, you could create an issue please.

Did you also include the ckeditor resources jar?
Thomas Andraschko

PrimeFaces | PrimeFaces Extensions

Apache Member | OpenWebBeans, DeltaSpike, MyFaces, BVal, TomEE

Sponsor me: https://github.com/sponsors/tandraschko
Blog: http://tandraschko.blogspot.de/
Twitter: https://twitter.com/TAndraschko

onyii5119
Posts: 112
Joined: 25 Nov 2009, 00:22

10 Mar 2012, 19:04

What it means is that the theme attribute is redundant. It supports instead the skin attribute which is different from theme that is supported by PrimeFaces.
Since PrimeFaces Extension is based on PrimeFaces, it should be better to implement the theme attribute to be consistent and make it a "true" Extension. It would not be wise managing two different themes in the same application.

Thanks,
Jonathan Ekwempu
TobiSoft Inc.

tandraschko
PrimeFaces Core Developer
Posts: 3979
Joined: 03 Dec 2010, 14:11
Location: Bavaria, DE
Contact:

10 Mar 2012, 19:33

It's a true extensions and it's based on PF. PF editor is also not themeable and CKEditor is not developed by us.
If you would like to use a jquery themeroller based theme for the CKEditor, create an issue please.
Don't know if it's possible to use themeroller styles with CKEditor.
Thomas Andraschko

PrimeFaces | PrimeFaces Extensions

Apache Member | OpenWebBeans, DeltaSpike, MyFaces, BVal, TomEE

Sponsor me: https://github.com/sponsors/tandraschko
Blog: http://tandraschko.blogspot.de/
Twitter: https://twitter.com/TAndraschko

onyii5119
Posts: 112
Joined: 25 Nov 2009, 00:22

10 Mar 2012, 21:58

Thank you. I will use the skin attribute to try it out.
Jonathan Ekwempu
TobiSoft Inc.

onyii5119
Posts: 112
Joined: 25 Nov 2009, 00:22

12 Mar 2012, 13:59

After updating to PrimeFaces 3.2 this morning CKEditor no longer works. Got PrimeFacesExt.widget[a] is not a constructor JavaScript error in my console. The error is pointing to Line 7 of JavaScript file.

Thanks,
Jonathan Ekwempu
TobiSoft Inc.

tandraschko
PrimeFaces Core Developer
Posts: 3979
Joined: 03 Dec 2010, 14:11
Location: Bavaria, DE
Contact:

12 Mar 2012, 14:01

PrimeFaces Extensions 0.3 is not compatible with 3.2. 0.4 will hopefully be released the next during next 2 weeks.

You could build from source if you need it now.
Thomas Andraschko

PrimeFaces | PrimeFaces Extensions

Apache Member | OpenWebBeans, DeltaSpike, MyFaces, BVal, TomEE

Sponsor me: https://github.com/sponsors/tandraschko
Blog: http://tandraschko.blogspot.de/
Twitter: https://twitter.com/TAndraschko

onyii5119
Posts: 112
Joined: 25 Nov 2009, 00:22

12 Mar 2012, 14:18

Thanks for the info.
Jonathan Ekwempu
TobiSoft Inc.

Post Reply

Return to “Extensions”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 28 guests