14#include <QRegularExpression>
160 virtual void ExecJS (
const QString& js) = 0;
Interface for HTML/WYSIWYG editors with some advanced functionality.
virtual void InsertHTML(const QString &html)=0
Inserts the given HTML at the current cursor position.
virtual QAction * AddInlineTagInserter(const QString &tagName, const QVariantMap ¶ms)=0
Adds a custom action to wrap selected text into given tag.
QPair< QRegularExpression, QString > Replacement_t
virtual ~IAdvancedHTMLEditor()
virtual void ExecJS(const QString &js)=0
Executes the given js in the context of the content.
QList< Replacement_t > Replacements_t
QList< CustomTag > CustomTags_t
virtual void SetCustomTags(const CustomTags_t &tags)=0
Adds support for custom tags not present in HTML standard.
Describes a single custom tag.
std::function< bool(QDomElement &)> FromKnown_
The converter of an instance of the tag from HTML.
QString TagName_
The name of the custom tag, like lj.
std::function< void(QDomElement &)> ToKnown_
The converter of an instance of the tag to HTML.