Commit e6cde1d6 by Яков

выравнивание картинки, обтекание текста, ресайз

parent 5b504659
{ {
"name": "react-ag-qeditor", "name": "react-ag-qeditor",
"version": "1.0.87", "version": "1.0.88",
"description": "WYSIWYG html editor", "description": "WYSIWYG html editor",
"author": "atma", "author": "atma",
"license": "MIT", "license": "MIT",
......
...@@ -233,7 +233,7 @@ const ResizableImageTemplate = ({ node, updateAttributes, editor, getPos }) => { ...@@ -233,7 +233,7 @@ const ResizableImageTemplate = ({ node, updateAttributes, editor, getPos }) => {
onClick={() => handleAlign(align)} onClick={() => handleAlign(align)}
style={{ style={{
margin: '0 2px', margin: '0 2px',
padding: '4px 8px', padding: '10px 8px',
background: node.attrs.align === align ? '#e6f7ff' : 'transparent', background: node.attrs.align === align ? '#e6f7ff' : 'transparent',
border: '1px solid #d9d9d9', border: '1px solid #d9d9d9',
borderRadius: 2, borderRadius: 2,
...@@ -259,7 +259,7 @@ const ResizableImageTemplate = ({ node, updateAttributes, editor, getPos }) => { ...@@ -259,7 +259,7 @@ const ResizableImageTemplate = ({ node, updateAttributes, editor, getPos }) => {
backgroundColor: 'white', backgroundColor: 'white',
border: `1px solid ${BORDER_COLOR}`, border: `1px solid ${BORDER_COLOR}`,
borderRadius: 4, borderRadius: 4,
padding: '2px 8px', padding: '8px 8px',
cursor: 'pointer', cursor: 'pointer',
fontSize: 12, fontSize: 12,
zIndex: 10 zIndex: 10
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment