src/eric7/QScintilla/MarkupProviders/HtmlProvider.py

branch
eric7
changeset 11006
a671918232f3
parent 10692
9becf9ca115c
child 11090
f5f5f5803935
equal deleted inserted replaced
11005:b918c6c2736b 11006:a671918232f3
229 from .HyperlinkMarkupDialog import HyperlinkMarkupDialog 229 from .HyperlinkMarkupDialog import HyperlinkMarkupDialog
230 230
231 if editor is None: 231 if editor is None:
232 return 232 return
233 233
234 dlg = HyperlinkMarkupDialog(True, False) 234 dlg = HyperlinkMarkupDialog(True, False, parent=editor)
235 if dlg.exec() == QDialog.DialogCode.Accepted: 235 if dlg.exec() == QDialog.DialogCode.Accepted:
236 text, target, title = dlg.getData() 236 text, target, title = dlg.getData()
237 if not text: 237 if not text:
238 text = target 238 text = target
239 239
311 from .ImageMarkupDialog import ImageMarkupDialog, ImageMarkupMode 311 from .ImageMarkupDialog import ImageMarkupDialog, ImageMarkupMode
312 312
313 if editor is None: 313 if editor is None:
314 return 314 return
315 315
316 dlg = ImageMarkupDialog(ImageMarkupMode.Html) 316 dlg = ImageMarkupDialog(ImageMarkupMode.Html, parent=editor)
317 if dlg.exec() == QDialog.DialogCode.Accepted: 317 if dlg.exec() == QDialog.DialogCode.Accepted:
318 address, altText, title, originalSize, width, height = dlg.getData() 318 address, altText, title, originalSize, width, height = dlg.getData()
319 319
320 markup = '<img src="{0}"'.format(address) 320 markup = '<img src="{0}"'.format(address)
321 if altText: 321 if altText:

eric ide

mercurial