2017-04-30 14 views

答えて

0

私は自分で解決策を見つけました。 最初のiは、index.phpの中で

<script src="components/editor/ace-editor/ext-language_tools.js"></script>

を追加する必要がありました。 [編集] 'コンポーネント/エディタ/ init.js' と下記の '設定を適用' このコメント編集: 旧:

applySettings: function(i) { 
     // Check user-specified settings 
     this.getSettings();` 

     // Apply the current configuration settings: 
     i.setTheme('ace/theme/' + this.settings.theme); 
     i.setFontSize(this.settings.fontSize); 
     i.setPrintMarginColumn(this.settings.printMarginColumn); 
     i.setShowPrintMargin(this.settings.printMargin); 
     i.setHighlightActiveLine(this.settings.highlightLine); 
     i.setDisplayIndentGuides(this.settings.indentGuides); 
     i.getSession().setUseWrapMode(this.settings.wrapMode); 
     this.setTabSize(this.settings.tabSize, i); 
     this.setSoftTabs(this.settings.softTabs, i); 
       i.setOptions({ 
    enableBasicAutocompletion: true, 
    enableSnippets: true, 
    enableLiveAutocompletion: true 
}); 
    }, 

として:

applySettings: function(i) { 
     // Check user-specified settings 
     this.getSettings(); 

     // Apply the current configuration settings: 
     i.setTheme('ace/theme/' + this.settings.theme); 
     i.setFontSize(this.settings.fontSize); 
     i.setPrintMarginColumn(this.settings.printMarginColumn); 
     i.setShowPrintMargin(this.settings.printMargin); 
     i.setHighlightActiveLine(this.settings.highlightLine); 
     i.setDisplayIndentGuides(this.settings.indentGuides); 
     i.getSession().setUseWrapMode(this.settings.wrapMode); 
     this.setTabSize(this.settings.tabSize, i); 
     this.setSoftTabs(this.settings.softTabs, i); 
       i.setOptions({ 
    enableBasicAutocompletion: true, 
    enableSnippets: true, 
    enableLiveAutocompletion: true 
}); 
    }, 
関連する問題