You are not logged in.
Pages: 1
Hi, guys,
I need to insert DIVs between paragraphs in order to format images with captions.
To do this I will need the current element where the cursor is.
Does anybody knows how to get it?
BTW: inserting DIVs inside paragraphs doesn't work. Xinha checks DOM on exit and closes paragraph before DIVs, but doesn't open a new one after DIV.
Offline
Divs inside paragraphs is invalid (block within block), if you write invalid HTML, be happy with what you get out To get teh current element, have a look in htmlarea.js, there is a method there to do that as I recall.
James Sleeman
Offline
Pages: 1