Thread:VisualEditor/Feedback/extend Visual Editor – migrating custom toolbar function made for WikiEditor/reply (5)

"If there is a way to migrate the code without rewriting it from scratch"

Probably not. Though VisualEditor was written by the same people as wrote WikiEditor, it's very different, both because we learnt what things to avoid from the first time around, but also because VisualEditor is a fundamentally richer environment, and so has to do things very differently to a dumb text box. Note BTW that we've completely dumped jQuery.UI in favour of OOjs UI for VisualEditor, and you will need to use this instead.

"How extentions for the visual Editor should be written."

Our documentation for extension developers is not really written yet, but this commit which moves the formula editor into the  extension's repository is a reasonably good way to show the different hooks you can use to add new functionality into VisualEditor.