Hi Leon,
Leon Wang wrote:
Hi Marius,
Thank you for creating the API!
I am still trying to figure out how to display the gwt tree edit panel in
the WYSIWYG editing mode.
Is it correct that I use the new api like last time you told me? Please see
the code below:
native void setBackgroudColor(String color)
/*-{
editorJSReference.execute('backcolor', color);
}-*/;
and
if
(((TreeItem)event.getSelectedItem()).getText().equals("Alternative"))
{
setBackgroudColor("yellow");
}
What do you think? Do you think that will work?
In my previous mail I pointed out a JIRA issue (
http://jira.xwiki.org/jira/browse/XWIKI-4519 ) which has a link to the
documentation (
http://code.xwiki.org/xwiki/bin/view/Modules/WysiwygEditorModule#HCommandMa…
) which gives you an example. Follow that example. I have exposed the
command manager so you can do more than just executing a command.
Also, "editorJSReference" is not defined by default. I wrote it just as
an example. You have to either set its value somewhere or replace it
with what you have, window['content_editor'] for instance.
Hope this helps,
Marius
Thank you! Hope I could get it done before meeting in
the coming week.
Otherwise, my advisors will give me unhappy look again =_=
If there are anything I could help free feel to let me know, like
documenting how to use your new background API. Remember you have to create
the page for me first.
Leon
_______________________________________________
devs mailing list
devs(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/devs