Hi Aaron,
On Tue, Sep 4, 2012 at 6:34 AM, Ashtar Communications
<ashtarcommunications(a)gmail.com> wrote:
Hi,
I'm wondering if it's possible to use the "Import External Content"
tool (triggered by the "paste" button in the WYSIWYG editor) without
loading the entire WYSIWYG editor.
Here's what I'd like to accomplish:
User is filling out an HTML form which includes a standard HTML textarea.
User presses a button, the "Import External Content" popup appears.
User pastes data from the clipboard (very likely from Microsoft Word),
and clicks Import
The wiki-syntax output from the importer is put into the textarea
Any ideas?
I suppose you can manage the client side. On the server side you can
use this code:
----------8<----------
{{groovy}}
import org.xwiki.gwt.wysiwyg.client.plugin.importer.ImportService;
def params = ["namespacesAware": "false", "filterStyles":
"strict"];
def importService = services.component.getInstance(ImportService.class);
print importService.cleanOfficeHTML("pasted HTML", "wysiwyg",
params);
{{/groovy}}
---------->8----------
Hope this helps,
Marius
Thanks much,
Aaron
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users