Menubar.Status.js 426 B

12345678910111213141516171819202122232425
  1. Menubar.Status = function ( editor ) {
  2. var container = new UI.Panel();
  3. container.setClass( 'menu right' );
  4. var title = new UI.Panel();
  5. title.setClass( 'title' );
  6. title.setTextContent( '' );
  7. container.add( title );
  8. editor.signals.savingStarted.add( function () {
  9. title.setTextContent( '...' );
  10. } );
  11. editor.signals.savingFinished.add( function () {
  12. title.setTextContent( '' );
  13. } );
  14. return container;
  15. };