Posts: 124
Threads: 16
Joined: Apr 2013
I'm wondering if it is possible to replace the built-in CKeditor with a different editor, and if possible, how do I do this (step-by-step instructions)?
Ultimately, I'd like to be able to do this from within a plugin that I will build for this purpose.
The editor I would like to use is:
http://bootpages.com/LiveEditor/default.htm
Any help is greatly appreciated. Thanks
~john.
Posts: 6,266
Threads: 181
Joined: Sep 2011
step by step for a programmer or laymen ?
not really either, but you could simply destroy the ckeditor instance and hook your own editor to the textarea however you please.
Posts: 1,125
Threads: 135
Joined: Feb 2012
Posts: 124
Threads: 16
Joined: Apr 2013
2014-06-03, 11:56:00
(This post was last modified: 2014-06-03, 11:58:45 by johnstray2001.)
shawn_a,
programmer. How would I go about destroying the CKeditor instance? JavaScript is not my strong point. What hooks are available to use to be able to pull in my own editor? Looking at edit.php, I saw "exec_action('edit-content');" but I couldn't get a plugin to hook there for some reason.
Timbow,
I'll look into that plugin and see how its done there. Should be able to get some idea from it.
Edit: Might have just figured it out. I was using add_filter() in my plugin. Instead I should have been using add_action(). Whoops!
Posts: 6,266
Threads: 181
Joined: Sep 2011
I guess you could override the $HTMLEDITOR global to prevent ckeditor from even being output.
Then insert your own editor whereever you want, footer hook etc.
I forget how to destroy the cke instance but it should be easy to google.
Posts: 1,247
Threads: 82
Joined: Feb 2011
In drupal there's a project which makes it possible to integrate several editors. I find only Ckeditor (and source-view in it without buttons) restrictive. I would personally like to use
Markitup as editor.