Commit fe688702 authored by Яков's avatar Яков
Browse files

update fix issue

parent 5e84f9a6
{
"name": "react-ag-qeditor",
"version": "1.1.53",
"version": "1.1.54",
"description": "WYSIWYG html editor",
"author": "atma",
"license": "MIT",
......
......@@ -652,7 +652,16 @@ const ResizableImageTemplate = ({ node, updateAttributes, editor, getPos, select
ref={wrapperRef}
style={getInnerStyle()}
onClick={handleNodeClick}
onTouchEnd={(e) => { e.preventDefault(); handleNodeClick(e); }}
onTouchEnd={(e) => {
e.preventDefault();
try {
const pos = getPos?.();
if (typeof pos === 'number') {
editor.view.focus();
editor.commands.setNodeSelection(pos);
}
} catch (err) {}
}}
>
{imageContent}
</div>
......
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