2
我通過bower加載ace,我可以創建一個編輯器。但是,我似乎無法設置主題和語言模式。這些都是我的包括線:設置語言模式和主題的Ace編輯器錯誤
script(src='components/ace-builds/src/ace.js')
script(src='components/ace-builds/src/mode-xml.js')
script(src='components/ace-builds/src/theme-solarized_light.js')
這是我的錯誤:
Uncaught TypeError: Cannot read property 'cssText' of null ace.js:12316
afterLoad ace.js:12316
(anonymous function) ace.js:12307
_require ace.js:94
req ace.js:152
(anonymous function) ace.js:12303
Uncaught TypeError: Cannot read property 'Mode' of null ace.js:5309
done ace.js:5309
_require ace.js:94
req ace.js:152
(anonymous function) ace.js:5302