Update TinyMCE to 3.5.3, enable stripping of Word styles on paste
This commit is contained in:
parent
83404c2c80
commit
48790b7525
274 changed files with 25268 additions and 14504 deletions
2
webapp/web/js/tiny_mce/plugins/preview/editor_plugin.js
vendored
Executable file → Normal file
2
webapp/web/js/tiny_mce/plugins/preview/editor_plugin.js
vendored
Executable file → Normal file
|
@ -1 +1 @@
|
|||
(function(){tinymce.create('tinymce.plugins.Preview',{init:function(ed,url){var t=this,css=tinymce.explode(ed.settings.content_css);t.editor=ed;tinymce.each(css,function(u,k){css[k]=ed.documentBaseURI.toAbsolute(u);});ed.addCommand('mcePreview',function(){ed.windowManager.open({file:ed.getParam("plugin_preview_pageurl",url+"/preview.html"),width:parseInt(ed.getParam("plugin_preview_width","550")),height:parseInt(ed.getParam("plugin_preview_height","600")),resizable:"yes",scrollbars:"yes",popup_css:css.join(','),inline:ed.getParam("plugin_preview_inline",1)},{base:ed.documentBaseURI.getURI()});});ed.addButton('preview',{title:'preview.preview_desc',cmd:'mcePreview'});},getInfo:function(){return{longname:'Preview',author:'Moxiecode Systems AB',authorurl:'http://tinymce.moxiecode.com',infourl:'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/preview',version:tinymce.majorVersion+"."+tinymce.minorVersion};}});tinymce.PluginManager.add('preview',tinymce.plugins.Preview);})();
|
||||
(function(){tinymce.create("tinymce.plugins.Preview",{init:function(a,b){var d=this,c=tinymce.explode(a.settings.content_css);d.editor=a;tinymce.each(c,function(f,e){c[e]=a.documentBaseURI.toAbsolute(f)});a.addCommand("mcePreview",function(){a.windowManager.open({file:a.getParam("plugin_preview_pageurl",b+"/preview.html"),width:parseInt(a.getParam("plugin_preview_width","550")),height:parseInt(a.getParam("plugin_preview_height","600")),resizable:"yes",scrollbars:"yes",popup_css:c?c.join(","):a.baseURI.toAbsolute("themes/"+a.settings.theme+"/skins/"+a.settings.skin+"/content.css"),inline:a.getParam("plugin_preview_inline",1)},{base:a.documentBaseURI.getURI()})});a.addButton("preview",{title:"preview.preview_desc",cmd:"mcePreview"})},getInfo:function(){return{longname:"Preview",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/preview",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.PluginManager.add("preview",tinymce.plugins.Preview)})();
|
11
webapp/web/js/tiny_mce/plugins/preview/editor_plugin_src.js
vendored
Executable file → Normal file
11
webapp/web/js/tiny_mce/plugins/preview/editor_plugin_src.js
vendored
Executable file → Normal file
|
@ -1,8 +1,11 @@
|
|||
/**
|
||||
* $Id: editor_plugin_src.js 895 2008-07-10 14:34:23Z spocke $
|
||||
* editor_plugin_src.js
|
||||
*
|
||||
* @author Moxiecode
|
||||
* @copyright Copyright © 2004-2008, Moxiecode Systems AB, All rights reserved.
|
||||
* Copyright 2009, Moxiecode Systems AB
|
||||
* Released under LGPL License.
|
||||
*
|
||||
* License: http://tinymce.moxiecode.com/license
|
||||
* Contributing: http://tinymce.moxiecode.com/contributing
|
||||
*/
|
||||
|
||||
(function() {
|
||||
|
@ -24,7 +27,7 @@
|
|||
height : parseInt(ed.getParam("plugin_preview_height", "600")),
|
||||
resizable : "yes",
|
||||
scrollbars : "yes",
|
||||
popup_css : css.join(','),
|
||||
popup_css : css ? css.join(',') : ed.baseURI.toAbsolute("themes/" + ed.settings.theme + "/skins/" + ed.settings.skin + "/content.css"),
|
||||
inline : ed.getParam("plugin_preview_inline", 1)
|
||||
}, {
|
||||
base : ed.documentBaseURI.getURI()
|
||||
|
|
0
webapp/web/js/tiny_mce/plugins/preview/example.html
vendored
Executable file → Normal file
0
webapp/web/js/tiny_mce/plugins/preview/example.html
vendored
Executable file → Normal file
0
webapp/web/js/tiny_mce/plugins/preview/jscripts/embed.js
vendored
Executable file → Normal file
0
webapp/web/js/tiny_mce/plugins/preview/jscripts/embed.js
vendored
Executable file → Normal file
16
webapp/web/js/tiny_mce/plugins/preview/preview.html
vendored
Executable file → Normal file
16
webapp/web/js/tiny_mce/plugins/preview/preview.html
vendored
Executable file → Normal file
|
@ -1,19 +1,17 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<script language="javascript" src="../../tiny_mce_popup.js"></script>
|
||||
<script type="text/javascript" src="../../tiny_mce_popup.js"></script>
|
||||
<script type="text/javascript" src="jscripts/embed.js"></script>
|
||||
<script type="text/javascript">
|
||||
tinyMCEPopup.onInit.add(function(ed) {
|
||||
var dom = tinyMCEPopup.dom;
|
||||
|
||||
dom.setHTML('content', ed.getContent());
|
||||
});
|
||||
|
||||
<script type="text/javascript"><!--
|
||||
document.write('<base href="' + tinyMCEPopup.getWindowArg("base") + '">');
|
||||
// -->
|
||||
</script>
|
||||
<title>{#preview.preview_desc}</title>
|
||||
</head>
|
||||
<body id="content">
|
||||
<!-- Gets filled with editor contents -->
|
||||
<script type="text/javascript">
|
||||
document.write(tinyMCEPopup.editor.getContent());
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue