--- a/src/eric7/QScintilla/MarkupProviders/MarkdownProvider.py Sun Nov 06 11:22:39 2022 +0100 +++ b/src/eric7/QScintilla/MarkupProviders/MarkdownProvider.py Mon Nov 07 17:19:58 2022 +0100 @@ -204,11 +204,11 @@ @param editor reference to the editor to work on @type Editor """ + from .HyperlinkMarkupDialog import HyperlinkMarkupDialog + if editor is None: return - from .HyperlinkMarkupDialog import HyperlinkMarkupDialog - dlg = HyperlinkMarkupDialog(False, True) if dlg.exec() == QDialog.DialogCode.Accepted: text, target, title = dlg.getData() @@ -296,11 +296,11 @@ @param editor reference to the editor to work on @type Editor """ + from .ImageMarkupDialog import ImageMarkupDialog + if editor is None: return - from .ImageMarkupDialog import ImageMarkupDialog - dlg = ImageMarkupDialog(ImageMarkupDialog.MarkDownMode) if dlg.exec() == QDialog.DialogCode.Accepted: address, altText, title, originalSize, width, height = dlg.getData()