|
|
@ -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 11:04:43
|
|
|
|
* @LastEditTime : 2019-12-27 15:07:11
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
import Quill from "quill";
|
|
|
|
import Quill from "quill";
|
|
|
|
|
|
|
|
|
|
|
@ -37,7 +37,7 @@ export default class ImageBlot extends BlockEmbed {
|
|
|
|
node.setAttribute('width', '100%');
|
|
|
|
node.setAttribute('width', '100%');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
node.setAttribute('style', { cursor: 'pointer' });
|
|
|
|
// node.setAttribute('style', { cursor: 'pointer' });
|
|
|
|
|
|
|
|
|
|
|
|
// if (node.onclick) {
|
|
|
|
// if (node.onclick) {
|
|
|
|
// console.log('image 有图片点击事件======》》》》》》');
|
|
|
|
// console.log('image 有图片点击事件======》》》》》》');
|
|
|
@ -60,7 +60,7 @@ export default class ImageBlot extends BlockEmbed {
|
|
|
|
height: node.height,
|
|
|
|
height: node.height,
|
|
|
|
display: node.getAttribute('display'),
|
|
|
|
display: node.getAttribute('display'),
|
|
|
|
id: node.id,
|
|
|
|
id: node.id,
|
|
|
|
style: node.style
|
|
|
|
// style: node.style
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|