Skip to content

Instantly share code, notes, and snippets.

@richardbenson
Created April 19, 2010 12:53
Show Gist options
  • Save richardbenson/371012 to your computer and use it in GitHub Desktop.
Save richardbenson/371012 to your computer and use it in GitHub Desktop.
function nextSlide() {
myEditor.saveHTML();
window.setTimeout(function() {
var current = YAHOO.util.Dom.get('currentslide').value;
YAHOO.util.Dom.get(current).value = myEditor.get('textarea').value;
myEditor.setEditorHTML(YAHOO.util.Dom.get('nextslideid').value);
YAHOO.util.Dom.get('currentslide').value = 'nextslideid';
}, 200); // So that saveHTML has had time to run
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment