@@ -654,7 +654,7 @@ export default class CodeMirrorEditor extends AbstractEditor {
}
showLinkEditHandler() {
- this.linkEditModal.current.show(mlu.getSelectedTextInEditor(this.getCodeMirror()));
+ this.linkEditModal.current.show(mlu.getMarkdownLink(this.getCodeMirror()));
showHandsonTableHandler() {
@@ -3,6 +3,14 @@
*/
class MarkdownLinkUtil {
+ getMarkdownLink(editor) {
+ const isInLink = true;
+ if (isInLink) {
+ return; // with param
+ }
+ return editor.getDoc().getSelection();
+
getSelectedTextInEditor(editor) {
return editor.getDoc().getSelection();