我無法找到一種方法來更改內置於AllouUI Widget中的Ace-Editor。下面的例子是我想用主題屬性實現的。AlloyUI Ace-Editor主題變更
YUI().use( 'aui-ace-autocomplete-base', function(Y) { var editor = new Y.AceEditor( { boundingBox: '#myEditor', height: '200', mode: 'python', value: 'print("Hello there!!!")', width: '700', theme: 'chaos' } ).render();
不幸的是,在代碼中沒有預定義的方式,我看到改變主題。
有沒有辦法將主題更改爲alloyui的widget的ace編輯器?