|
Re: Inserting into the DOM [message #160262 is a reply to message #159669] |
Fri, 10 February 2006 19:42 |
|
Brian Jakubik wrote:
> I have a view with an action that will insert xmlns:abc="http://... into the
> document root, I do so by getting the Dom (DOMModelImpl) from the editor,
> get the DomDocument, add the attribute to the element, and append it back
> into the DOMDocument, and it works :), however, I lose formatting on the
> document root, is there a way i can insert this and keep the formatting?
> And is this the right way to be inserting this.
Yes, this is one of several correct ways to insert content.
Insertions through the DOM APIs don't automatically follow the
formatting preferences, though, and the existing format methods
aren't API. These are issues we hope to address in 1.5, time
permitting.
--
- Nitin
_
Nitin Dahyabhai
Eclipse Web Tools Platform
|
|
|
Powered by
FUDForum. Page generated in 0.02919 seconds