On Sat, Jan 12, 2013 at 12:11 AM, Boudjelda Mohamed Said
<[email protected]> wrote:
> Hi
>
>   I want to get instantly the html content of Wysiwyg in javascript , I am
> using it that way
>
>   ....
>     <textarea id="content" name="content" width="100%" height="300px" >
>  ....
>
>
>    Wysiwyg.onModuleLoad(function() {
>     editor = new WysiwygEditor({
>                         hookId: 'content',
> syntax: 'xwiki/2.0'
> });
>   });
>
>
>  I could not get HTML content of editor instantly

editor.getRichTextArea().contentWindow.document.body.innerHTML

See 
http://extensions.xwiki.org/xwiki/bin/view/Extension/WYSIWYG+Editor+Module#HJavaScriptAPI
also.

Hope this helps,
Marius

>
>  Thanks
> _______________________________________________
> users mailing list
> [email protected]
> http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________
users mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/users

Reply via email to