Javascript frameworks within FCKeditor

Description

Being able to benefit from javascript frameworks within FCKeditor would be nice. But with everyone having his favorite one it should be possible to use multiple frameworks without having them collide with each other, or with the FCKeditor itself.

Perhaps this can be done by running each one in its iFrame and providing Objects through which each framework its method can be used? Not sure if there something available like this already, but maybe ​Mootools' slickspeed of which ​the source is available, can be used as a guide?