This task can't be done without changing several functions in Stud.IP's core, specifically in lib/visual.in.php. The easiest way to do this is integrating the visual editor in Stud.IP instead of providing it as a plugin. Another way might be monkey patching, by using Runkit (http://ca.php.net/runkit), Patchwork - http://antecedent.github.io/patchwork/ or a similar library.
This task can't be done without changing several functions in Stud.IP's core, specifically in lib/visual.in.php. The easiest way to do this is integrating the visual editor in Stud.IP instead of providing it as a plugin. Another way might be monkey patching, by using Runkit (http://ca.php.net/runkit), Patchwork - http://antecedent.github.io/patchwork/ or a similar library.