var _editor = UE.getEditor(*myeditor*);
_editor.ready(function () {
//_editor.setDisabled();
_editor.hide();
_editor.addListener(*beforeInsertImage*, function (t, arg) {
$("#image_").attr("value", arg[0].src);
//$("#preview").attr("src", arg[0].src);
$(*#up*).text(*重新上傳*);
});
});
function upImage() {
var myImage = _editor.getDialog("insertimage");
myImage.open();
}
然後這個是代碼,引入所需要的js文件,定義壹個textarea或者官方給出的script。就這樣!