{"action":"created","issue":{"url":"https://api.github.com/repos/ThaddeusJiang/notes/issues/1","repository_url":"https://api.github.com/repos/ThaddeusJiang/notes","labels_url":"https://api.github.com/repos/ThaddeusJiang/notes/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/ThaddeusJiang/notes/issues/1/comments","events_url":"https://api.github.com/repos/ThaddeusJiang/notes/issues/1/events","html_url":"https://github.com/ThaddeusJiang/notes/issues/1","id":336826279,"node_id":"MDU6SXNzdWUzMzY4MjYyNzk=","number":1,"title":"使用 CKEditor5 自定义富文本编辑器时，遇到的问题。","user":{"login":"ThaddeusJiang","id":17308201,"node_id":"MDQ6VXNlcjE3MzA4MjAx","avatar_url":"https://avatars3.githubusercontent.com/u/17308201?v=4","gravatar_id":"","url":"https://api.github.com/users/ThaddeusJiang","html_url":"https://github.com/ThaddeusJiang","followers_url":"https://api.github.com/users/ThaddeusJiang/followers","following_url":"https://api.github.com/users/ThaddeusJiang/following{/other_user}","gists_url":"https://api.github.com/users/ThaddeusJiang/gists{/gist_id}","starred_url":"https://api.github.com/users/ThaddeusJiang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ThaddeusJiang/subscriptions","organizations_url":"https://api.github.com/users/ThaddeusJiang/orgs","repos_url":"https://api.github.com/users/ThaddeusJiang/repos","events_url":"https://api.github.com/users/ThaddeusJiang/events{/privacy}","received_events_url":"https://api.github.com/users/ThaddeusJiang/received_events","type":"User","site_admin":false},"labels":[{"id":978648822,"node_id":"MDU6TGFiZWw5Nzg2NDg4MjI=","url":"https://api.github.com/repos/ThaddeusJiang/notes/labels/Done","name":"Done","color":"b31cea","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2018-06-29T00:46:56Z","updated_at":"2018-06-29T11:31:16Z","closed_at":null,"author_association":"OWNER","body":"## 问题\r\nckeditor5 无法在 parcel 项目中工作。\r\nref: \r\nhttps://github.com/ckeditor/ckeditor5/issues/986\r\nhttps://github.com/parcel-bundler/parcel/issues/1269\r\n\r\n## 原因\r\nckeditor5 代码中使用了 [parcel-bundler](https://github.com/parcel-bundler/parcel/issues/1269) 不能处理的语法。\r\n\r\n## 解决办法\r\n\r\n可以自己打包 ckeditor5 代码，使用 babel 、webpack 等等，使其不包含`特殊语法`。\r\nckeditor5 也提供了[相关文档](https://docs.ckeditor.com/ckeditor5/latest/builds/guides/integration/advanced-setup.html#option-building-to-es5-target)。\r\n\r\n## 具体解决方案\r\nhttps://github.com/ThaddeusJiang/ckeditor5-build-blueberry\r\n"},"comment":{"url":"https://api.github.com/repos/ThaddeusJiang/notes/issues/comments/401327703","html_url":"https://github.com/ThaddeusJiang/notes/issues/1#issuecomment-401327703","issue_url":"https://api.github.com/repos/ThaddeusJiang/notes/issues/1","id":401327703,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMTMyNzcwMw==","user":{"login":"ocavue","id":24715727,"node_id":"MDQ6VXNlcjI0NzE1NzI3","avatar_url":"https://avatars2.githubusercontent.com/u/24715727?v=4","gravatar_id":"","url":"https://api.github.com/users/ocavue","html_url":"https://github.com/ocavue","followers_url":"https://api.github.com/users/ocavue/followers","following_url":"https://api.github.com/users/ocavue/following{/other_user}","gists_url":"https://api.github.com/users/ocavue/gists{/gist_id}","starred_url":"https://api.github.com/users/ocavue/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ocavue/subscriptions","organizations_url":"https://api.github.com/users/ocavue/orgs","repos_url":"https://api.github.com/users/ocavue/repos","events_url":"https://api.github.com/users/ocavue/events{/privacy}","received_events_url":"https://api.github.com/users/ocavue/received_events","type":"User","site_admin":false},"created_at":"2018-06-29T11:31:15Z","updated_at":"2018-06-29T11:31:15Z","author_association":"NONE","body":"ckeditor 是基于 postcss 的，[官方文档](https://docs.ckeditor.com/ckeditor5/latest/framework/guides/quick-start.html)写了需要安装 webpack 的 postcss-loader。我当时卡在如何让 parcel 兼容 ckeditor 的 postcss"}}
{"actor":{"display_login":"ocavue"}}