Issue #3011 - Part 1: Add As{Text|Html}Editor() and AsEditorBase()

This adds helper functions to get specific types of content editors (if
possible) through the nsIEditor interface, as opposed to doing manual
casting and the ad hoc `GetHTMLEditor()` function.

Helper functions are spread out over multiple headers due to the
circular dependency issues that would be triggered otherwise.
This commit is contained in:
Moonchild
2026-03-20 13:26:18 +01:00
committed by roytam1
parent 3d131186be
commit 2f20100059
11 changed files with 123 additions and 25 deletions
+1
View File
@@ -142,6 +142,7 @@ EditorBase::EditorBase()
, mDispatchInputEvent(true)
, mIsInEditAction(false)
, mHidingCaret(false)
, mIsHTMLEditorClass(false)
{
}