fix: the editor clicks the img button for the first time and it does not take effect
This commit is contained in:
@@ -218,9 +218,6 @@ const Image = () => {
|
||||
const addLink = (ctx) => {
|
||||
context = ctx;
|
||||
setEditor(context.editor);
|
||||
if (!editor) {
|
||||
return;
|
||||
}
|
||||
const text = context.editor?.getSelection();
|
||||
|
||||
setImageName({ ...imageName, value: text });
|
||||
|
||||
Reference in New Issue
Block a user