Added rpl::event_stream for firing applied markdown tag to spellchecker.
This commit is contained in:
parent
e6914d4649
commit
983d6be8d4
2 changed files with 8 additions and 0 deletions
|
|
@ -3152,6 +3152,10 @@ bool InputField::commitMarkdownReplacement(
|
||||||
|
|
||||||
cursor.setCharFormat(_defaultCharFormat);
|
cursor.setCharFormat(_defaultCharFormat);
|
||||||
_inner->setTextCursor(cursor);
|
_inner->setTextCursor(cursor);
|
||||||
|
|
||||||
|
// Fire the tag to the spellchecker.
|
||||||
|
_markdownTagApplies.fire({ from, till, -1, -1, false, tag });
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -330,6 +330,9 @@ public:
|
||||||
auto documentContentsChanges() {
|
auto documentContentsChanges() {
|
||||||
return _documentContentsChanges.events();
|
return _documentContentsChanges.events();
|
||||||
}
|
}
|
||||||
|
auto markdownTagApplies() {
|
||||||
|
return _markdownTagApplies.events();
|
||||||
|
}
|
||||||
|
|
||||||
~InputField();
|
~InputField();
|
||||||
|
|
||||||
|
|
@ -535,6 +538,7 @@ private:
|
||||||
bool _instantReplacesEnabled = true;
|
bool _instantReplacesEnabled = true;
|
||||||
|
|
||||||
rpl::event_stream<DocumentChangeInfo> _documentContentsChanges;
|
rpl::event_stream<DocumentChangeInfo> _documentContentsChanges;
|
||||||
|
rpl::event_stream<MarkdownTag> _markdownTagApplies;
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue