equal
deleted
inserted
replaced
557 editor.setContent( postData.content || '' ); |
557 editor.setContent( postData.content || '' ); |
558 editor.nodeChanged(); |
558 editor.nodeChanged(); |
559 }); |
559 }); |
560 } else { |
560 } else { |
561 |
561 |
562 // Make sure the Text editor is selected. |
562 // Make sure the Code editor is selected. |
563 $( '#content-html' ).trigger( 'click' ); |
563 $( '#content-html' ).trigger( 'click' ); |
564 $( '#content' ).trigger( 'focus' ); |
564 $( '#content' ).trigger( 'focus' ); |
565 |
565 |
566 // Using document.execCommand() will let the user undo. |
566 // Using document.execCommand() will let the user undo. |
567 document.execCommand( 'selectAll' ); |
567 document.execCommand( 'selectAll' ); |