You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
650 B
JavaScript
18 lines
650 B
JavaScript
//插入多媒体中心图片
|
|
KindEditor.plugin('mediacits', function(K) {
|
|
var editor = this, name = 'mediacits',clickcount=0;
|
|
editor.clickToolbar(name, function(){
|
|
openKCFinder_Content();
|
|
});
|
|
});
|
|
|
|
//图片插到P标签外面
|
|
function insertoutP(){
|
|
var yonglaidingweitupian=$("iframe.ke-edit-iframe").contents().find("#yonglaidingweitupian");
|
|
if (yonglaidingweitupian.parents('p').length>0) {
|
|
yonglaidingweitupian.parents('p').before('<div class="photoBlock300 autowidht">'+yonglaidingweitupian.html()+'</div>');
|
|
yonglaidingweitupian.remove();
|
|
}else{
|
|
yonglaidingweitupian.removeAttr("id");
|
|
}
|
|
} |