I'm not sure if this should be a bug report or a support request, because I'm the first to report this.
When I make changes using the editor, these changes don't get saved unless I change to the plain text editor first. (Which I can only do if I remove the Drupal.t() function calls, see http://drupal.org/node/252087 )

Comments

Anonymous’s picture

Same in 6.x-1.2-9

Anonymous’s picture

Status: Active » Needs review

I added a form submit handler to yui_editor.js to be sure the changes get saved:

Just after the first 2 lines in render_editor add the following line:

    addEvent(document.getElementById(id).form, 'submit', function(ev) {myEditor.saveHTML() });

The addEvent function makes sure the event works in all recent browsers.
Add the function at the end of the file:

/**
 * function addEvent
 * Also works on browsers that don't support addEventListener (IE) 
 */
function addEvent( obj, type, fn ) {
  if ( obj.attachEvent ) {
    obj.attachEvent( 'on'+type, fn );
  } 
  else
    obj.addEventListener( type, fn, false );
}
jeffcd’s picture

Status: Needs review » Closed (fixed)

Fixed.