/* Copyright (c) 2004-2012, The Dojo Foundation All Rights Reserved. Available via Academic Free License >= 2.1 OR the modified BSD license. see: http://dojotoolkit.org/license for details */ if(!dojo._hasResource["dojox.editor.plugins.PasteFromWord"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code. dojo._hasResource["dojox.editor.plugins.PasteFromWord"] = true; dojo.provide("dojox.editor.plugins.PasteFromWord"); dojo.require("dojo.string"); dojo.require("dijit._editor._Plugin"); dojo.require("dijit.form.Button"); dojo.require("dijit.Dialog"); dojo.require("dojo.i18n"); dojo.require("dojox.html.format"); dojo.requireLocalization("dojox.editor.plugins", "PasteFromWord", null, "ROOT,ar,bg,ca,cs,da,de,el,es,fi,fr,he,hr,hu,it,ja,kk,ko,nb,nl,pl,pt,pt-pt,ro,ru,sk,sl,sv,th,tr,zh,zh-tw"); dojo.declare("dojox.editor.plugins.PasteFromWord",dijit._editor._Plugin,{ // summary: // This plugin provides PasteFromWord cabability to the editor. When // clicked, a dialog opens with a spartan RichText instance to paste // word content into via the keyboard commands. The contents are // then filtered to remove word style classes and other meta-junk // that tends to cause issues. // iconClassPrefix: [const] String // The CSS class name for the button node is formed from `iconClassPrefix` // and `command` iconClassPrefix: "dijitAdditionalEditorIcon", // width: [public] String // The width to use for the rich text area in the copy/pate dialog, in px. Default is 400px. width: "400px", // height: [public] String // The height to use for the rich text area in the copy/pate dialog, in px. Default is 300px. height: "300px", _template: ["
", "", " ", "", " | ", "