The source is by default wiki syntax and thus the HTML is converted to wiki syntax when you save, but since there is no direct equivalent for INPUT HTML element in wiki syntax (nor for any other form elements) this information is lost during save. You need to use the HTML macro but for this you need to check what HTML is generated when you insert a macro. There are macro markers that delimit the macro output and that also have information about the macro content.
Hope this helps, Marius On Sat, Jun 2, 2012 at 6:38 AM, liujinlong5788 <[email protected]> wrote: > Hello , I have sent a similar email yesterday which said I can't append html > button to wysiwyg in js. Just now I have tried in plugin with gwt. It doesn't > work eithor. For example I define a string varirable > String button= "<input type='button' value='xx' />" > and use execute(button) ,and it will add a button to wysiwyg editor ,but it > does nothing to the source ,so ,the things I have done can't be saved.Of > course ,execute(rta.getDocument().createButtonInputElement()) doesn't work > eithor. I see the RichTextArea which is implemented by xwiki and extended > from the RichTextArea of the gwt has a method setHtml() .And it doesn't > work just like execute(). At first ,I think this should be a very easy thing > .but I have been defeat by it - -! > Pleanse ,help me . Thank you . > _______________________________________________ > devs mailing list > [email protected] > http://lists.xwiki.org/mailman/listinfo/devs _______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs

