1ace.define('ace/ext/ceasy', ['require', 'exports', 'module', 'ace/ext/settings_menu'], function(require, exports, module) { 2 "use strict"; 3 4 var originalContainerStyles = null; 5 var swithFullScreenCommand = { 6 name: 'switchFullScreen', 7 exec: function (editor) { 8 var container = editor.renderer.getContainerElement(); 9 if (originalContainerStyles) { 10 for (var styleName in originalContainerStyles) { 11 container.style[styleName] = originalContainerStyles[styleName]; 12 } 13 originalContainerStyles = false; 14 } else { 15 originalContainerStyles = { 16 'position': container.style.position, 17 'top': container.style.top, 18 'right': container.style.right, 19 'bottom': container.style.bottom, 20 'left': container.style.left, 21 'zIndex': container.style.zIndex 22 }; 23 container.style.position = 'fixed'; 24 container.style.top = 0; 25 container.style.right = 0; 26 container.style.bottom = 0; 27 container.style.left = 0; 28 container.style.zIndex = 9980; 29 } 30 editor.resize(); 31 }, 32 bindKey: {win: 'Esc', mac: 'Esc'} 33 }; 34 35 var Editor = require('ace/editor').Editor; 36 require('ace/config').defineOptions(Editor.prototype, 'editor', { 37 enableFullScreen: { 38 set: function(val) { 39 if (val) { 40 this.commands.addCommand(swithFullScreenCommand); 41 } else { 42 this.commands.removeCommand(swithFullScreenCommand); 43 } 44 }, 45 value: true 46 }, 47 enableKeybindingMenu: { 48 set: function(val) { 49 if (val) { 50 var editor = this; 51 require('ace/ext/keybinding_menu').init(editor); 52 this.commands.addCommand({ 53 name: 'showKeyboardShortcuts', 54 exec: function (editor) { 55 editor.showKeyboardShortcuts(); 56 }, 57 bindKey: {win: 'F1', mac: 'F1'} 58 }); 59 } 60 }, 61 value: true 62 }, 63 replaceTextArea: { 64 set: function(aceTextarea) { 65 if (aceTextarea) { 66 var editor = this; 67 aceTextarea.style.display = 'none'; 68 editor.renderer.getContainerElement().style.display = 'block'; 69 editor.getSession().setValue(aceTextarea.value); 70 editor.getSession().on('change', function() { 71 aceTextarea.value = editor.getSession().getValue(); 72 }); 73 } 74 }, 75 value: false 76 }, 77 fixCKEditorCss: { 78 set: function (val) { 79 if (val) { 80 var dom = require('ace/lib/dom', function () {}); 81 dom.importCssString(".cke_reset_all, .cke_reset_all * {font: inherit;}" + 82 ".cke_reset_all, .cke_reset_all * {text-align: inherit;}" + 83 ".ace_editor {font: 12px/normal 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'source-code-pro', monospace !important;}" + 84 ".ace_gutter-cell {text-align: right; !important}" 85 ); 86 } 87 }, 88 value: false 89 } 90 }); 91 92 var modelist = require('./modelist', function () {}); 93 modelist.modes = [ // reduce modes 94 modelist.getModeForPath('.css'), 95 modelist.getModeForPath('.html'), 96 modelist.getModeForPath('.js'), 97 modelist.getModeForPath('.json'), 98 modelist.getModeForPath('.xml') 99 ]; 100 var themelist = require('ace/ext/themelist', function () {}); 101 themelist.themes = [ // reduce themes 102 themelist.themesByName.chrome, 103 themelist.themesByName.ambiance, 104 ]; 105 106}); 107(function() { 108 ace.require('ace/ext/ceasy', function() {}); 109})();
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.