src/eric7/QScintilla/MarkupProviders/MarkdownProvider.py

branch
eric7
changeset 10482
72d9b5ea39b4
parent 10439
21c28b0f9e41
child 10692
9becf9ca115c
equal deleted inserted replaced
10481:9aea3575bd16 10482:72d9b5ea39b4
294 Public method to generate image text. 294 Public method to generate image text.
295 295
296 @param editor reference to the editor to work on 296 @param editor reference to the editor to work on
297 @type Editor 297 @type Editor
298 """ 298 """
299 from .ImageMarkupDialog import ImageMarkupDialog 299 from .ImageMarkupDialog import ImageMarkupDialog, ImageMarkupMode
300 300
301 if editor is None: 301 if editor is None:
302 return 302 return
303 303
304 dlg = ImageMarkupDialog(ImageMarkupDialog.MarkDownMode) 304 dlg = ImageMarkupDialog(ImageMarkupMode.MarkDown)
305 if dlg.exec() == QDialog.DialogCode.Accepted: 305 if dlg.exec() == QDialog.DialogCode.Accepted:
306 address, altText, title, originalSize, width, height = dlg.getData() 306 address, altText, title, originalSize, width, height = dlg.getData()
307 307
308 if title: 308 if title:
309 markup = '![{0}]({1} "{2}")'.format(altText, address, title) 309 markup = '![{0}]({1} "{2}")'.format(altText, address, title)

eric ide

mercurial