|
146 | 146 | }
|
147 | 147 | });
|
148 | 148 | },
|
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 |
| - }, |
198 | 149 | destroyed() {
|
199 | 150 | tinymce.get(this.id).destroy();
|
200 | 151 | }
|
|
214 | 165 | .editor-custom-btn-container {
|
215 | 166 | position: absolute;
|
216 | 167 | right: 15px;
|
217 |
| - /*z-index: 2005;*/ |
218 | 168 | top: 18px;
|
219 | 169 | }
|
220 | 170 |
|
|
0 commit comments