|
|
@ -4,7 +4,7 @@
|
|
|
|
* @Github:
|
|
|
|
* @Github:
|
|
|
|
* @Date: 2019-12-16 15:50:45
|
|
|
|
* @Date: 2019-12-16 15:50:45
|
|
|
|
* @LastEditors : tangjiang
|
|
|
|
* @LastEditors : tangjiang
|
|
|
|
* @LastEditTime : 2019-12-27 08:57:37
|
|
|
|
* @LastEditTime : 2019-12-27 11:04:43
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
import Quill from "quill";
|
|
|
|
import Quill from "quill";
|
|
|
|
|
|
|
|
|
|
|
@ -17,7 +17,7 @@ export default class ImageBlot extends BlockEmbed {
|
|
|
|
const node = super.create();
|
|
|
|
const node = super.create();
|
|
|
|
node.setAttribute('alt', value.alt);
|
|
|
|
node.setAttribute('alt', value.alt);
|
|
|
|
node.setAttribute('src', value.url);
|
|
|
|
node.setAttribute('src', value.url);
|
|
|
|
console.log('~~~~~~~~~~~', node, value);
|
|
|
|
// console.log('~~~~~~~~~~~', node, value);
|
|
|
|
node.addEventListener('click', function () {
|
|
|
|
node.addEventListener('click', function () {
|
|
|
|
value.onclick(value.url);
|
|
|
|
value.onclick(value.url);
|
|
|
|
}, false);
|
|
|
|
}, false);
|
|
|
|