src="'.JS_PATH.'ueditor/ueditor.config.js">';
$str.=
'
src="'.JS_PATH.'ueditor/ueditor.all.js">';
$str.=
'
rel="stylesheet"
href="'.JS_PATH.'ueditor/themes/default/ueditor.css"/>';
define('EDITOR_INIT',
1);
}
$str.=
"
$str.=
"var
editor
=
new
baidu.editor.ui.Editor();editor.render('$textareaid');";
$str.=
'';
四、
修改
/statics/js/ueditor/
下的
ueditor_config
文件中的路径
*
window.UEDITOR_HOME_URL
=
"/xxxx/xxxx/";
提出注释项,修改为:
window.UEDITOR_HOME_URL
=
"/statics/js/ueditor/";