當前位置:編程學習大全網 - 網站源碼 - ueditor .net 1.4.3 怎麽把圖片上傳路徑傳給controller.ashx

ueditor .net 1.4.3 怎麽把圖片上傳路徑傳給controller.ashx

首先跟網上很多低版本的例子都壹樣,還有如果只是需要圖片上傳插件可以不用修改源碼!

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。就這樣!

  • 上一篇:顏色索引源代碼
  • 下一篇:js數組添加元素
  • copyright 2024編程學習大全網