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

update fix issue

parent 5e84f9a6
{ {
"name": "react-ag-qeditor", "name": "react-ag-qeditor",
"version": "1.1.53", "version": "1.1.54",
"description": "WYSIWYG html editor", "description": "WYSIWYG html editor",
"author": "atma", "author": "atma",
"license": "MIT", "license": "MIT",
......
...@@ -652,7 +652,16 @@ const ResizableImageTemplate = ({ node, updateAttributes, editor, getPos, select ...@@ -652,7 +652,16 @@ const ResizableImageTemplate = ({ node, updateAttributes, editor, getPos, select
ref={wrapperRef} ref={wrapperRef}
style={getInnerStyle()} style={getInnerStyle()}
onClick={handleNodeClick} 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} {imageContent}
</div> </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