CKEditor 4.0

This is a forum to suggest new features for mojoPortal. 

This thread is closed to new posts. You must sign in to post in the forums.
12/17/2012 9:53:10 AM
Gravatar
Total Posts 133
J

CKEditor 4.0

Hi Joe

I see CK has a new release and it has inline editing mode which would be nice. Is it possible that mey be in a future release?

John

12/17/2012 10:03:23 AM
Gravatar
Total Posts 18439

Re: CKEditor 4.0

I've already updated the source code and this site and the demo site to use CKeditor 4, it will be in the next release. However inline editing would require lots of other changes that I don't currently plan on. We have separate edit pages for all features whereas the edit logic would have to be in a different place to not use the edit page and it would introduce other complications and inconsistency with other editors such as TinyMCE.

Best,

Joe

2/22/2013 2:34:27 PM
Gravatar
Total Posts 18439

Re: CKEditor 4.0

Hi John,

Never say never. I've implemented it so far in the html content feature to support inline editing with ckeditor. It should be in the next release at least as an experimental feature.

You can try it now on the demo site. It does seem pretty slick to be able to edit that way, just click in the content and the editor appears.

Best,

Joe

2/22/2013 3:37:58 PM
Gravatar
Total Posts 18439

Re: CKEditor 4.0

I just disabled it on the demo site. I need to implement some kind of edit toggle with a cookie or something, otherwise if you're logged in with edit rights you can't click a link in the content because it goes to edit mode when you click it.

I'll post again when its ready to check out.

Best,

Joe

2/25/2013 4:28:56 AM
Gravatar
Total Posts 133
J

Re: CKEditor 4.0

Oooo that sounds great - thanks Joe you are the best.

J

2/25/2013 2:09:17 PM
Gravatar
Total Posts 18439

Re: CKEditor 4.0

Ok this is now live and ready for testing on the demo site as long as CKeditor is enabled. You will see a little lock icon next to html content instances. If you click the lock it changes to unlocked and then you can click right in the content and the editor will appear to edit. Note that it respects workflow so if the dropdown in the toolbar is set to "Work In Progress" editing will create or edit a draft whereas if it is set to "Live Content" it will update the live content. When you click outside of the editor the onblur event of the editor fires and if the content has been changed it does an ajax post to a service page that updates the content. So there is no save button when editing inline. Also if editing creates a new draft it will refresh the page so that the workflow icons appear in the title bar of the content instance after the draft has been created. When updating live content or an existing draft it does not reload the page after editing, only when a new draft is created.

Depending on how well this works out and feedback we may look at doing this in other features, but for now it is only implemented in the Html Content feature.

Best,

Joe

2/26/2013 4:18:15 AM
Gravatar
Total Posts 133
J

Re: CKEditor 4.0

Seems to be working really sweet but I don't see a drop down in the toolbar should I.

Thanks 

J

2/28/2013 10:56:45 AM
Gravatar
Total Posts 18439

Re: CKEditor 4.0

That is only visible when Workflow is enabled.

Best,

Joe

You must sign in to post in the forums. This thread is closed to new posts.