import polyfill from './util/poly-fill.js' import Editor from './editor/index.js' // 检验是否浏览器环境 try { document } catch (ex) { throw new Error('请在浏览器环境下运行') } // polyfill polyfill() // 这里的 `inlinecss` 将被替换成 css 代码的内容,详情可去 ./gulpfile.js 中搜索 `inlinecss` 关键字 const inlinecss = '__INLINE_CSS__' // 将 css 代码添加到