2017-04-30 8 views

답변

0

해결책을 직접 찾았습니다. 처음 난의 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 
}); 
    },