editor-events.mustache revision 3f2ac16886fbbccf85547608b11143a8795d8db4
10b29d99683d0782b9f9ccbfc2a38afe7288c4d6Ryan Grove<div class="intro">
10b29d99683d0782b9f9ccbfc2a38afe7288c4d6Ryan Grove<p>Use the Editor's Events</p>
10b29d99683d0782b9f9ccbfc2a38afe7288c4d6Ryan Grove<div class="example">
10b29d99683d0782b9f9ccbfc2a38afe7288c4d6Ryan Grove {{>editor-events-source}}
<p>`EditorBase` is not a fully functional Editor, it is simply the base utility that will be used under the hood to create an Editor.</p>
<p>In this step we are going to do the initial render of the Editor, set its content and focus it when it's ready.</p>
var editor = new Y.EditorBase({
content: '<p><b>This is <i class="foo">a test</i></b></p><p><b style="color: red; font-family: Comic Sans MS">This is <span class="foo">a test</span></b></p>',
editor.render('#editor');