Posts: 27
Threads: 6
Joined: Apr 2010
2010-06-04, 18:50:51
(This post was last modified: 2010-06-04, 18:51:41 by questioner9.)
Hi Zegnåt, could you tell us how do you have implemented the CKEditor toggle button that you show in your signature's video?
http://zegnat.net/CKEditorDemo.mov
Please, please, please 8-)
Posts: 972
Threads: 27
Joined: Aug 2009
I can tell you how, it’s done with some JQuery magic ;-) 51 lines of it, so far (including whitespace and formatting).
It’s way to buggy to even consider using it, unless you’re using the exact same set-up I am it will probably malfunction. I’ll release it if I can get it more stable, or in case I will not be working on it at all so someone else can pick it up.
Posts: 27
Threads: 6
Joined: Apr 2010
Ok, thanks anyway. I thought it could be easier.
Posts: 972
Threads: 27
Joined: Aug 2009
Example of buggyness:
For some reason Chrome on Windows doesn’t show the editor at all. The console shows some sort of error with the getsimple CKEditor theme which is weird because CKEditor works without a problem when editing a page.
It’s problems like these that are keeping me from putting it online because I know for sure people are going to bug me about that.
Posts: 1
Threads: 0
Joined: Nov 2010
function toggleCKedit() {
if (ck) {
ck.destroy();
ck = false;
}else{
ck = CKEDITOR.replace(document.getElementById('id');
}
}