Announcement

Do not use the forums to submit bug reports, feature requests or patches, submit a New Ticket instead.

#1 2006-01-21 18:45:57

Codeko
New member
Registered: 2006-01-21
Posts: 1

Inserting DIVs

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

#2 2006-02-06 04:18:51

gogo
Xinha Leader
From: New Zealand
Registered: 2005-02-11
Posts: 1,015
Website

Re: Inserting DIVs

Divs inside paragraphs is invalid (block within block), if you write invalid HTML, be happy with what you get out smile  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

Board footer

Powered by FluxBB