print.js 331 B

1234567891011121314151617181920212223
  1. /**
  2. * 打印
  3. * @file
  4. * @since 1.2.6.1
  5. */
  6. /**
  7. * 打印
  8. * @command print
  9. * @method execCommand
  10. * @param { String } cmd 命令字符串
  11. * @example
  12. * ```javascript
  13. * editor.execCommand( 'print' );
  14. * ```
  15. */
  16. UE.commands['print'] = {
  17. execCommand : function(){
  18. this.window.print();
  19. },
  20. notNeedUndo : 1
  21. };