From 9bc3798bcde68928af5cd5c77e0e6670728fa48c Mon Sep 17 00:00:00 2001 From: tangjiang <465264938@qq.com> Date: Fri, 27 Dec 2019 15:08:27 +0800 Subject: [PATCH] update style --- public/react/src/common/quillForEditor/ImageBlot.js | 6 +++--- public/react/src/common/quillForEditor/index.scss | 5 +++++ 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/public/react/src/common/quillForEditor/ImageBlot.js b/public/react/src/common/quillForEditor/ImageBlot.js index 85f176aff..d00f2bafd 100644 --- a/public/react/src/common/quillForEditor/ImageBlot.js +++ b/public/react/src/common/quillForEditor/ImageBlot.js @@ -4,7 +4,7 @@ * @Github: * @Date: 2019-12-16 15:50:45 * @LastEditors : tangjiang - * @LastEditTime : 2019-12-27 11:04:43 + * @LastEditTime : 2019-12-27 15:07:11 */ import Quill from "quill"; @@ -37,7 +37,7 @@ export default class ImageBlot extends BlockEmbed { node.setAttribute('width', '100%'); } - node.setAttribute('style', { cursor: 'pointer' }); + // node.setAttribute('style', { cursor: 'pointer' }); // if (node.onclick) { // console.log('image 有图片点击事件======》》》》》》'); @@ -60,7 +60,7 @@ export default class ImageBlot extends BlockEmbed { height: node.height, display: node.getAttribute('display'), id: node.id, - style: node.style + // style: node.style }; } } diff --git a/public/react/src/common/quillForEditor/index.scss b/public/react/src/common/quillForEditor/index.scss index ca3071b58..3e951e2b6 100644 --- a/public/react/src/common/quillForEditor/index.scss +++ b/public/react/src/common/quillForEditor/index.scss @@ -2,4 +2,9 @@ .ql-editing{ left: 0 !important; } + .ql-editor{ + img{ + cursor: pointer; + } + } } \ No newline at end of file