silverstripe/sapphire — pull request #960 by mateusz (2012-11-21 01:10:52+00:00)
Title: API Forward the editor events to underlying textarea.

Makes the editor API more flexible by triggering generic JS events that
can be used from entwine. This makes it easier to add event handlers to
the editor and cleans up the initialisation call from unrelated code.

The patching code also forwards editor changes to the textarea field,
which in perspective will allow the changetracker to react to changes in
this field as they happen.