I really need help.
I am trying to add a DIV to the text area of the editor where the cursor is? Is that doable?
The idea is that when a user is typing, I show a DIV that will have what user entered.
All help is greatly appreciated.
Thanks
Ame
I am trying to add a DIV to the text area of the editor where the cursor is? Is that doable?
The idea is that when a user is typing, I show a DIV that will have what user entered.
All help is greatly appreciated.
Thanks
Ame
Re: Simple Question: How can I add a DIV
This is between sad and pathetic!
No one knows how to add a DIV to the editor area of CKEditor?
If there is no way to do that, then that's bad. If there is a way but no knows how, this is even worse.
This is so simple of a question that should have have been addressed by the architects of the CKEditor!
Ame
Re: Simple Question: How can I add a DIV
I share your frustration, it seems like a lot of these "simple" questions go unanswered (for instance, i posted the following and still dont have a clear answer viewtopic.php?f=11&t=16425).
Ckeditor is a nice tool, but documentation and support are also important for the success of any tool/company...and that is something that is lacking
Re: Simple Question: How can I add a DIV
I have to say, the documentation is really lacking and responses seem to be rare. So lets make a start.
You can add any code you like by implementing a template. There is a plugin called templates, look in the _source/plugin/templates folder. In _source/plugin/templates/templates you will find a default.js. There you can see how to set up a template. This could be a div or just anything you like.
I hope this is of some help to you.
greetings
habsi
Re: Simple Question: How can I add a DIV
editor.insertElement(div);
Re: Simple Question: How can I add a DIV
Re: Simple Question: How can I add a DIV
Given that using tables for layout is now deprecated, I would have thought that providing the capability to insert and edit the properties of a div would be a very important capability for an editor that claims to be CSS standards driven.
Just to be quite clear on this, I need to be able to create a div, set its width, padding, margin, border, background-color, and be able to float it left or right. I also need to be able to assign a class. I can do this with a single cell table but not with a div.
In my view, ckeditor doesn't come close to complying with xhtml and css standards until they provide this very basic functionality. I posted the same question over two months ago, but with no official response. Wiktor, maybe you are working on this, but we'd appreciate knowing whether or not this is going to be addressed.