eric6/QScintilla/MarkupProviders/HtmlProvider.py

changeset 7759
51aa6c6b66f7
parent 7360
9190402e4505
child 7781
607a6098cb44
equal deleted inserted replaced
7758:dd54d33d21d2 7759:51aa6c6b66f7
213 if editor is None: 213 if editor is None:
214 return 214 return
215 215
216 from .HyperlinkMarkupDialog import HyperlinkMarkupDialog 216 from .HyperlinkMarkupDialog import HyperlinkMarkupDialog
217 dlg = HyperlinkMarkupDialog(True, False) 217 dlg = HyperlinkMarkupDialog(True, False)
218 if dlg.exec_() == QDialog.Accepted: 218 if dlg.exec() == QDialog.Accepted:
219 text, target, title = dlg.getData() 219 text, target, title = dlg.getData()
220 if not text: 220 if not text:
221 text = target 221 text = target
222 222
223 if title: 223 if title:
295 if editor is None: 295 if editor is None:
296 return 296 return
297 297
298 from .ImageMarkupDialog import ImageMarkupDialog 298 from .ImageMarkupDialog import ImageMarkupDialog
299 dlg = ImageMarkupDialog(ImageMarkupDialog.HtmlMode) 299 dlg = ImageMarkupDialog(ImageMarkupDialog.HtmlMode)
300 if dlg.exec_() == QDialog.Accepted: 300 if dlg.exec() == QDialog.Accepted:
301 address, altText, title, originalSize, width, height = ( 301 address, altText, title, originalSize, width, height = (
302 dlg.getData() 302 dlg.getData()
303 ) 303 )
304 304
305 markup = '<img src="{0}"'.format(address) 305 markup = '<img src="{0}"'.format(address)

eric ide

mercurial