Commit f34c4c37 by Яков

fix

parent 83e51387
{ {
"name": "react-ag-qeditor", "name": "react-ag-qeditor",
"version": "1.0.91", "version": "1.0.92",
"description": "WYSIWYG html editor", "description": "WYSIWYG html editor",
"author": "atma", "author": "atma",
"license": "MIT", "license": "MIT",
......
...@@ -173,8 +173,7 @@ const ResizableImageTemplate = ({ node, updateAttributes, editor, getPos }) => { ...@@ -173,8 +173,7 @@ const ResizableImageTemplate = ({ node, updateAttributes, editor, getPos }) => {
margin: '0.5rem 0', margin: '0.5rem 0',
position: 'relative', position: 'relative',
outline: editing ? `1px dashed ${BORDER_COLOR}` : 'none', outline: editing ? `1px dashed ${BORDER_COLOR}` : 'none',
verticalAlign: 'top', verticalAlign: 'top'
zIndex: 1
}; };
switch(node.attrs.align) { switch(node.attrs.align) {
...@@ -396,7 +395,6 @@ const ResizableImageExtension = TipTapImage.extend({ ...@@ -396,7 +395,6 @@ const ResizableImageExtension = TipTapImage.extend({
shape-outside: ${align.startsWith('wrap-') ? 'margin-box' : 'none'}; shape-outside: ${align.startsWith('wrap-') ? 'margin-box' : 'none'};
vertical-align: top; vertical-align: top;
position: relative; position: relative;
z-index: 1;
${align === 'center' ? 'width: 100%; text-align: center;' : ''} ${align === 'center' ? 'width: 100%; text-align: center;' : ''}
` `
}, ['img', { }, ['img', {
......
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