CKEditor inline mode

Community Driven Extensions Project
Post Reply
J.Horn
Posts: 2
Joined: 19 Aug 2016, 17:12

19 Aug 2016, 17:41

Hi, I just tried the pe:ckEditor component. So far it looks good. But I would like to use the inline mode.
Is it possible to change from the normal mode to inline mode?

Thanks in advance

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

21 Aug 2016, 01:55

If you check, how you can switch to inline mode with the pure js version, i might help you to do this with the jsf version.
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

J.Horn
Posts: 2
Joined: 19 Aug 2016, 17:12

22 Aug 2016, 10:18

The normal way to start CKEditor is:

Code: Select all

 CKEDITOR.replace( 'textarea_id' );
I guess primefaces extension is jusing this call.

To enable inline editing you have to call:

Code: Select all

CKEDITOR.inline( 'textarea_id' );
I don't think I can configure the behavior through an external config file.

Hmm, I just read this on the CKEditor site:
Since CKEditor 4.2 you can also turn <textarea> elements into inline editors. When you call the CKEDITOR.inline method on a <textarea>, an additional <div> element with inline editing enabled will replace the original <textarea>.
That could be troublesome with primefaces I guess...

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

22 Aug 2016, 10:48

ok, this is currently not possbile.
But feel free to create a pull request and provide this feature. As you may know, PFExtensions is a community based project ;)
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

Post Reply

Return to “Extensions”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 9 guests