src/eric7/QScintilla/MarkupProviders/HtmlProvider.py

branch
eric7
changeset 9482
a2bc06a54d9d
parent 9221
bf71ee032bb4
child 9494
0b38ab887b0d
equal deleted inserted replaced
9481:0b936ff1bbb9 9482:a2bc06a54d9d
206 Public method to generate hyperlink text. 206 Public method to generate hyperlink text.
207 207
208 @param editor reference to the editor to work on 208 @param editor reference to the editor to work on
209 @type Editor 209 @type Editor
210 """ 210 """
211 if editor is None:
212 return
213
214 from .HyperlinkMarkupDialog import HyperlinkMarkupDialog 211 from .HyperlinkMarkupDialog import HyperlinkMarkupDialog
212
213 if editor is None:
214 return
215 215
216 dlg = HyperlinkMarkupDialog(True, False) 216 dlg = HyperlinkMarkupDialog(True, False)
217 if dlg.exec() == QDialog.DialogCode.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:
288 Public method to generate image text. 288 Public method to generate image text.
289 289
290 @param editor reference to the editor to work on 290 @param editor reference to the editor to work on
291 @type Editor 291 @type Editor
292 """ 292 """
293 if editor is None:
294 return
295
296 from .ImageMarkupDialog import ImageMarkupDialog 293 from .ImageMarkupDialog import ImageMarkupDialog
294
295 if editor is None:
296 return
297 297
298 dlg = ImageMarkupDialog(ImageMarkupDialog.HtmlMode) 298 dlg = ImageMarkupDialog(ImageMarkupDialog.HtmlMode)
299 if dlg.exec() == QDialog.DialogCode.Accepted: 299 if dlg.exec() == QDialog.DialogCode.Accepted:
300 address, altText, title, originalSize, width, height = dlg.getData() 300 address, altText, title, originalSize, width, height = dlg.getData()
301 301

eric ide

mercurial