/media/
路径:media/editors/tinymce/plugins/wordpaster
注意:由于直接使用jquery特殊符号$会报错,所以需要将WordPaster.js中的$符号改为jQuery
路径:/plugins/editors/tinymce/tinymce.php
代码如下:
//wordpaster begin
$load .= ‘<link type="text/css" rel="Stylesheet" href="‘ . JUri::root() . ‘media/wordpaster/js/skygqbox.1.3.css" />‘;
$load .= ‘<script type="text/javascript" src="‘ . JUri::root() . ‘media/wordpaster/js/json2.min.js" charset="utf-8"></script>‘;
$load .= ‘<script type="text/javascript" src="‘ . JUri::root() . ‘media/wordpaster/js/jquery-1.4.min.js" charset="utf-8"></script>‘;
$load .= ‘<script type="text/javascript" src="‘ . JUri::root() . ‘media/wordpaster/js/WordPaster.js" charset="utf-8"></script>‘;
$load .= ‘<script type="text/javascript" src="‘ . JUri::root() . ‘media/wordpaster/js/skygqbox.1.3.js" charset="utf-8"></script>‘;
$wordpster_code = "
<script language=\"javascript\" type=\"text/javascript\">
var pasterMgr = new WordPasterManager();
jQuery(function(){
pasterMgr.Load();//加载控件
});
pasterMgr.SetEditor(tinymce.activeEditor);
</script>";
//wordpaster end
注意:由于直接使用jquery特殊符号$会报错,所以需要将WordPaster.js中的$符号改为jQuery
WordPaster-Joomla_3.4.7-tinymce 4.1.7示例发布
原文:http://www.cnblogs.com/xproer/p/5192868.html