eric6/QScintilla/MarkupProviders/HtmlProvider.py

changeset 8143
2c730d5fd177
parent 7923
91e843545d9a
child 8218
7c09585bd960
equal deleted inserted replaced
8141:27f636beebad 8143:2c730d5fd177
212 if editor is None: 212 if editor is None:
213 return 213 return
214 214
215 from .HyperlinkMarkupDialog import HyperlinkMarkupDialog 215 from .HyperlinkMarkupDialog import HyperlinkMarkupDialog
216 dlg = HyperlinkMarkupDialog(True, False) 216 dlg = HyperlinkMarkupDialog(True, False)
217 if dlg.exec() == QDialog.Accepted: 217 if dlg.exec() == QDialog.DialogCode.Accepted:
218 text, target, title = dlg.getData() 218 text, target, title = dlg.getData()
219 if not text: 219 if not text:
220 text = target 220 text = target
221 221
222 if title: 222 if title:
294 if editor is None: 294 if editor is None:
295 return 295 return
296 296
297 from .ImageMarkupDialog import ImageMarkupDialog 297 from .ImageMarkupDialog import ImageMarkupDialog
298 dlg = ImageMarkupDialog(ImageMarkupDialog.HtmlMode) 298 dlg = ImageMarkupDialog(ImageMarkupDialog.HtmlMode)
299 if dlg.exec() == QDialog.Accepted: 299 if dlg.exec() == QDialog.DialogCode.Accepted:
300 address, altText, title, originalSize, width, height = ( 300 address, altText, title, originalSize, width, height = (
301 dlg.getData() 301 dlg.getData()
302 ) 302 )
303 303
304 markup = '<img src="{0}"'.format(address) 304 markup = '<img src="{0}"'.format(address)

eric ide

mercurial