Skip to content

Commit f82ec2d

Browse files
committed
rm redundant code
1 parent c412d17 commit f82ec2d

File tree

1 file changed

+0
-50
lines changed

1 file changed

+0
-50
lines changed

src/components/Tinymce/index.vue

Lines changed: 0 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -146,55 +146,6 @@
146146
}
147147
});
148148
},
149-
methods: {
150-
/* 业务代码可删除 start*/
151-
imageSuccessCBK(arr) {
152-
console.log(arr)
153-
const _this = this;
154-
arr.forEach(v => {
155-
const node = document.createElement('img');
156-
node.setAttribute('src', v);
157-
node.onload = function() {
158-
$(this).addClass('wscnph');
159-
$(this).attr('data-wscntype', 'image');
160-
$(this).attr('data-wscnh', this.height);
161-
$(this).attr('data-wscnw', this.width);
162-
tinymce.get(_this.id).insertContent(node.outerHTML)
163-
}
164-
})
165-
},
166-
slideSuccessCBK(arr) {
167-
const node = document.createElement('img');
168-
node.setAttribute('data-wscntype', 'slide');
169-
node.setAttribute('data-uri', arr.toString());
170-
node.setAttribute('data-wscnh', '190');
171-
node.setAttribute('data-wscnw', '200');
172-
node.setAttribute('src', ' https://wdl.wallstreetcn.com/6410b47d-a54c-4826-9bc1-c3e5df31280c');
173-
node.className = 'wscnph editor-placeholder';
174-
tinymce.get(this.id).insertContent(node.outerHTML)
175-
},
176-
videoSuccessCBK(form) {
177-
const node = document.createElement('img');
178-
node.setAttribute('data-wscntype', 'video');
179-
node.setAttribute('data-uri', form.url);
180-
node.setAttribute('data-cover-img-uri', form.image);
181-
node.setAttribute('data-title', form.title);
182-
node.setAttribute('src', 'https://wdl.wallstreetcn.com/07aeb3e7-f4ca-4207-befb-c987b3dc7011');
183-
node.className = 'wscnph editor-placeholder';
184-
tinymce.get(this.id).insertContent(node.outerHTML)
185-
},
186-
aduioSuccessCBK(form) {
187-
const node = document.createElement('img');
188-
node.setAttribute('data-wscntype', 'audio');
189-
node.setAttribute('data-uri', form.url);
190-
node.setAttribute('data-title', form.title);
191-
node.setAttribute('data-text', form.text);
192-
node.setAttribute('src', 'https://wdl.wallstreetcn.com/2ed0c8c8-fb82-499d-b81c-3fd1de114eae');
193-
node.className = 'wscnph editor-placeholder';
194-
tinymce.get(this.id).insertContent(node.outerHTML)
195-
}
196-
/* 业务代码可删除 end*/
197-
},
198149
destroyed() {
199150
tinymce.get(this.id).destroy();
200151
}
@@ -214,7 +165,6 @@
214165
.editor-custom-btn-container {
215166
position: absolute;
216167
right: 15px;
217-
/*z-index: 2005;*/
218168
top: 18px;
219169
}
220170

0 commit comments

Comments
 (0)