Topic on VisualEditor/Feedback

Rendering custom Annotations in VE

1
195.200.254.142 (talkcontribs)

Hey folks,

I'm adding custom annotaitons to VE (currently Text/Background-Color). I've been quite successfull, as everything except one thing works.

When I add a color, it doesn't get rendered in VE. When I safe the page, it shows correctly, and when I then open VE, it also shows correctly (as it now gets the data from HTML). May someone tell me what I have to add to make it work? I've debugged the process of rendering in VE until the ve.ce.ContentBranchNode class, where everything seems to be okay (compared to the rendering the of LanguageAnnotation). But in appendRenderedContents() in ve.ce.ContentBranchNode the un-changed text get's appended.

Reply to "Rendering custom Annotations in VE"