I don't understand what you are asking I'm afraid. DataTables, including its Javascript file (since it is a Javascript library) can be downloaded from the download page.
editor.fieldTypes.imgUpload = $.extend( true, {}, editor.models.fieldType, {
// Create the HTML mark-up needed for input and add any event handlers needed
create: function ( field, id ) {
var that = this;
field._enabled = true;
field._input = $(
"<div class='col-lg-8'>"+
"<div class='fileupload fileupload-new' data-provides='fileupload'>"+
"<div class='fileupload-preview thumbnail' style='width: 200px; height: 150px;'></div>"+
"<div> <span class='btn btn-file btn-success'><span class='fileupload-new'> 选择图片 </span><span class='fileupload-exists'> 替换 </span>"+
"<input type='file' id='DTE_Field_six'/>"+
"</span> <a href='#' class='btn btn-danger fileupload-exists' data-dismiss='fileupload'> 删除 </a> </div></div></div>");
return field._input;
},
// 提交表单时获取图片数据
get: function ( field ) {
//return $('button.selected', field._input).attr('value');
console.log($("img",field._imput).attr("src"));
return $("img",field._imput).attr("src");
},
....其他省略
i manually finished,so tired.
And why '''dataTables.editor.js''' as same as '''dataTables.editor.min.js''', mix not good by my mean.
my english not good, don't smile,i am trying.
Thanks
Replies
anybody here?
can a way to write it with Plug-in interface?
I don't understand what you are asking I'm afraid. DataTables, including its Javascript file (since it is a Javascript library) can be downloaded from the download page.
Allan
I finish it with Plug-ins iterface,it like that:
i manually finished,so tired.
And why '''dataTables.editor.js''' as same as '''dataTables.editor.min.js''', mix not good by my mean.
my english not good, don't smile,i am trying.
Thanks
They are identical in the trial. In the licensed version the
min
version is minified using Google's Closure Compiler.Allan