fullscreen.js 718 B

12345678910111213141516171819202122232425262728293031323334353637
  1. (function(){
  2. TrexConfig.addTool(
  3. "fullscreen", {
  4. wysiwygonly: _FALSE,
  5. status: _FALSE,
  6. switched: _FALSE,
  7. minHeight: 200,
  8. minWidth: 766,
  9. asyncUrl: "trex/tool/async/fullscreen.js"
  10. }
  11. );
  12. Trex.Tool.FullScreen = Trex.Class.create({
  13. $const: {
  14. __Identity: 'fullscreen'
  15. },
  16. $extend: Trex.AsyncTool,
  17. oninitialized: function(config) {
  18. this.weave.bind(this)(
  19. new Trex.Button(this.buttonCfg),
  20. _NULL,
  21. this.onLoadModule // define in Trex.AsyncTool
  22. );
  23. var self = this;
  24. // #FTDUEDTR-150
  25. this.bindKeyboard({ // ctrl + m - 넓게쓰기
  26. ctrlKey: _TRUE,
  27. keyCode: 77
  28. }, function () {
  29. if (!self.loaded) {
  30. self.onLoadModule();
  31. }
  32. });
  33. }
  34. });
  35. })();