Skip to content

Instantly share code, notes, and snippets.

@richardbenson
Created April 19, 2010 14:32
Show Gist options
  • Save richardbenson/371100 to your computer and use it in GitHub Desktop.
Save richardbenson/371100 to your computer and use it in GitHub Desktop.
DTS.control = {
...
init: function() {
if (placeEditor) { DTS.control.defaultEditor(placeEditor) };
if (loadBlocks) { DTS.control.refreshBlocks() };
},
defaultEditor: function(el) {
DTS.control.editor = new YAHOO.widget.Editor(el, {
height: '300px',
width: '100%',
animate: true,
dompath: true,
markup: 'html'
});
DTS.control.editor._defaultToolbar.titlebar = false;
DTS.control.editor.render();
},
...
}
DTS.E.onDOMReady(DTS.control.init);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment