|
@@ -1447,6 +1447,10 @@ export const paste = async (vditor: IVditor, event: (ClipboardEvent | DragEvent)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
} else if (textPlain.trim() !== "" && files.length === 0) {
|
|
} else if (textPlain.trim() !== "" && files.length === 0) {
|
|
|
|
+ const range = getEditorRange(vditor);
|
|
|
|
+ if (range.toString() !== "" && vditor.lute.IsValidLinkDest(textPlain)) {
|
|
|
|
+ textPlain = `[${range.toString()}](${textPlain})`;
|
|
|
|
+ }
|
|
if (vditor.currentMode === "ir") {
|
|
if (vditor.currentMode === "ir") {
|
|
renderers.Md2VditorIRDOM = {renderLinkDest};
|
|
renderers.Md2VditorIRDOM = {renderLinkDest};
|
|
vditor.lute.SetJSRenderers({renderers});
|
|
vditor.lute.SetJSRenderers({renderers});
|