|
@@ -286,18 +286,18 @@ export default {
|
|
|
window.tinymce.get(this.tinymceId).setContent(newContent);
|
|
|
},
|
|
|
imageSuccessCBK(arr) {
|
|
|
- if (arr) {
|
|
|
- // 获取内容,允许上传图片的线上大小,个数
|
|
|
- let content = window.tinymce.get(this.tinymceId).getContent();
|
|
|
- let img = [];
|
|
|
- content.replace(/<img [^>]*src=['"]([^'"]+)[^>]*>/g, function (match, capture) {
|
|
|
- img.push(capture);
|
|
|
- });
|
|
|
- // if (img.length >= 3) {
|
|
|
- // return this.$message.warning('最多插入三张图片');
|
|
|
- // }
|
|
|
- arr.forEach((v) => window.tinymce.get(this.tinymceId).insertContent(`<img class="wscnph" src="${v.url}" />`));
|
|
|
- }
|
|
|
+ // if (arr) {
|
|
|
+ // // 获取内容,允许上传图片的线上大小,个数
|
|
|
+ // let content = window.tinymce.get(this.tinymceId).getContent();
|
|
|
+ // let img = [];
|
|
|
+ // content.replace(/<img [^>]*src=['"]([^'"]+)[^>]*>/g, function (match, capture) {
|
|
|
+ // img.push(capture);
|
|
|
+ // });
|
|
|
+ // // if (img.length >= 3) {
|
|
|
+ // // return this.$message.warning('最多插入三张图片');
|
|
|
+ // // }
|
|
|
+ // arr.forEach((v) => window.tinymce.get(this.tinymceId).insertContent(`<img class="wscnph" src="${v.url}" />`));
|
|
|
+ // }
|
|
|
}
|
|
|
}
|
|
|
};
|