๋ด ํธ์ง๊ธฐ๋ ๋ถ๋ถ HTML ํธ์ง๊ธฐ์ด๋ฏ๋ก ๊ตฌ๋ฌธ ๊ฒ์ฌ๊ธฐ๋ฅผ ๋นํ์ฑํํ๊ณ ์ถ์ต๋๋ค.
์ด๋ฅผ ๋ฌ์ฑํ๋ ๋ ๊ฐ์ง ๋ฐฉ๋ฒ์ ์ฐพ์์ง๋ง ํธ์ง๊ธฐ ์ธ์คํด์ค ๋๋ ๋ชจ๋ ํ๋กํ ํ์
์ ๋ํ ์ก์ธ์ค ๊ถํ์ด ํ์ํฉ๋๋ค.
http://stackoverflow.com/a/13016089/729454
https://groups.google.com/forum/?fromgroups=#!topic/ace -discuss/bOovWtXhtdE
์ด๋ฅผ ๋ฌ์ฑํ๊ธฐ ์ํ ์ ์ ์ฌํญ์ด ์์ต๋๊น?
ํธ์ง๊ธฐ ์ธ์คํด์ค์ ๋ํ ์ฐธ์กฐ๋ฅผ ์ป๋ ๋ฐฉ๋ฒ์ ์ฐพ์์ต๋๋ค.
https://github.com/securingsincity/react-ace/issues/65
์ด๊ฒ์ ์ฐพ๋ ๋ค๋ฅธ ์ฌ๋์ ์ํด ์๋ํ๋ ES6 ์ฝ๋ ์์ ๊ฐ ์์ต๋๋ค.
<AceEditor
mode="css"
theme="github"
onLoad={(editor) => {
editor.getSession().setUseWorker(false)
}}
/>
์ด๊ฒ๋ ์๋ํฉ๋๋ค
setOptions={{useWorker: false}}
๊ฐ์ฅ ์ ์ฉํ ๋๊ธ
168
์ด๊ฒ๋ ์๋ํฉ๋๋ค