--- a/src/eric7/QScintilla/Exporters/ExporterRTF.py Tue Nov 08 11:50:50 2022 +0100 +++ b/src/eric7/QScintilla/Exporters/ExporterRTF.py Tue Nov 08 12:19:25 2022 +0100 @@ -461,3 +461,17 @@ ) return styles, fontsize + + +def createExporter(editor, parent=None): + """ + Function to instantiate an exporter object. + + @param editor reference to the editor object + @type QScintilla.Editor.Editor + @param parent parent object of the exporter (defaults to None) + @type QObject (optional) + @return exporter object + @rtype ExporterRTF + """ + return ExporterRTF(editor, parent=parent)