You can't use server side components directly in a WYSIWYG editor
plugin which is client side code. You need to write a service and call
that service asynchronously from the client. The service can be
implemented as GWT-RPC, REST, wiki page, etc.
I don't understand the second problem.
Hope this helps,
Marius
On Fri, Jun 1, 2012 at 3:26 PM, liujinlong5788 <liujinlong5788(a)gmail.com> wrote:
Hello , I an sorry it's also simple problems about
wysiwyg. The first one .can I use component in wysiwyg plugin. (The component is to get
and save data in database which is not the table created by XWIKI, and not mapped by
hibernate )I hava used it ,but it can't run .So , I wander it is the problem in my
code or XWIKI doesn't support it (I thinke there is something wront with the grammer
.I don't know how to say it correctly ,but I think you can understand it). The
second one is when I use js to operate the wysiwyg, I use
editor.getRichTextArea().contentWindow.document.body to get the document ,but all the
operate to the html do nothing to the source , and {{html}} tag which I think will work
also take no effect. So ,If I append html child to the document ,The change can't be
saved .Is there method to make it or the method to operate the source .I don't think
getSourceText can achieve it .. Thank you!
_______________________________________________
devs mailing list
devs(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/devs