nl_tokens: 编辑器全屏显示 Fullscreen show
pl_tokens: function ( ) { var _this = this ; var state = this . state ; var editor = this . editor ; var preview = this . preview ; var toolbar = this . toolbar ; var settings = this . settings ; var fullscreenClass = this . classPrefix + "fullscreen" ; if ( toolbar ) { toolbar . find ( ".fa[name=fullscreen]" ) . parent ( ) . toggleClass ( "active" ) ; } var escHandle = function ( <mask> ) { if ( ! event . shiftKey && event . keyCode === 27 ) { if ( state . fullscreen ) { _this . fullscreenExit ( ) ; } } } ; if ( ! editor . hasClass ( fullscreenClass ) ) { state . fullscreen = true ; $ ( "html,body" ) . css ( "overflow" , "hidden" ) ; editor . css ( { width : $ ( window ) . width ( ) , height : $ ( window ) . height ( ) } ) . addClass ( fullscreenClass ) ; this . resize ( ) ; $ . proxy ( settings . onfullscreen , this ) ( ) ; $ ( window ) . bind ( "keyup" , escHandle ) ; } else { $ ( window ) . unbind ( "keyup" , escHandle ) ; this . fullscreenExit ( ) ; } return this ; }