(self, *args, **kwargs)
Apply modified Editor HTML
Apply modified Editor HTML
Apply modified Editor HTML
def onEditorInit(self, *args, **kwargs):
    """Apply modified Editor HTML"""
    nm_state_on = False
    if DISABLE_FOR_NIGHTMODE:
        try:
            from Night_Mode import nm_state_on
        except ImportError:
            pass
    if not mw._styleEditor or nm_state_on:
        editor._html = old_html
    else:
        editor._html = new_html
def onEditorInit ( self , * args , * * kwargs ) : nm_state_on = False if DISABLE_FOR_NIGHTMODE : try : from Night_Mode import nm_state_on except ImportError : pass if not mw . _styleEditor or nm_state_on : editor . _html = old_html else : editor . _html = new_html