{"action":"created","issue":{"url":"https://api.github.com/repos/quilljs/quill/issues/1146","repository_url":"https://api.github.com/repos/quilljs/quill","labels_url":"https://api.github.com/repos/quilljs/quill/issues/1146/labels{/name}","comments_url":"https://api.github.com/repos/quilljs/quill/issues/1146/comments","events_url":"https://api.github.com/repos/quilljs/quill/issues/1146/events","html_url":"https://github.com/quilljs/quill/issues/1146","id":192180374,"number":1146,"title":"Merge Quill container and editor divs","user":{"login":"bedeoverend","id":594822,"avatar_url":"https://avatars.githubusercontent.com/u/594822?v=3","gravatar_id":"","url":"https://api.github.com/users/bedeoverend","html_url":"https://github.com/bedeoverend","followers_url":"https://api.github.com/users/bedeoverend/followers","following_url":"https://api.github.com/users/bedeoverend/following{/other_user}","gists_url":"https://api.github.com/users/bedeoverend/gists{/gist_id}","starred_url":"https://api.github.com/users/bedeoverend/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bedeoverend/subscriptions","organizations_url":"https://api.github.com/users/bedeoverend/orgs","repos_url":"https://api.github.com/users/bedeoverend/repos","events_url":"https://api.github.com/users/bedeoverend/events{/privacy}","received_events_url":"https://api.github.com/users/bedeoverend/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":11,"created_at":"2016-11-29T03:41:30Z","updated_at":"2016-12-13T02:35:44Z","closed_at":"2016-12-13T00:15:13Z","body":"Essentially I'm after a way to use Quill without adding an extra level of DOM hierachy. Being able to specify the editor element _or_ passing a flag to just use the specified container as the editor would allow this. I realise this would potentially add difficulties around generally adding containers, but would also give more power and flexibility.\r\n\r\nI'm looking at Quill to create an inline editor, rather than a full WYSIWYG - where the HTML as similar as possible between when someone is viewing the content, and editing the content. Or at least the DOM structure remains the same. I'm using Quill inside a Custom Element, so the aim is to make the Custom Element itself a Quill Editor.\r\n\r\nSo far I've made a POC by subclassing Quill - but it seems incredibly hacky, and not at all viable going forward:\r\n\r\nI've essentially done this:\r\n```js\r\nclass Editor extends Quill {\r\n  addContainer(cls) {\r\n    if (cls === 'ql-editor') {\r\n      return this.container;\r\n    }\r\n  }\r\n}\r\n```\r\n\r\nIn my case, I'd be happy to then handle any other containers being added - delegating where they go, or if they're stored elsewhere, rather than placing them all alongside the editor.\r\n\r\nThanks for Quill - fantastic editor!"},"comment":{"url":"https://api.github.com/repos/quilljs/quill/issues/comments/266618714","html_url":"https://github.com/quilljs/quill/issues/1146#issuecomment-266618714","issue_url":"https://api.github.com/repos/quilljs/quill/issues/1146","id":266618714,"user":{"login":"seaneking","id":6374876,"avatar_url":"https://avatars.githubusercontent.com/u/6374876?v=3","gravatar_id":"","url":"https://api.github.com/users/seaneking","html_url":"https://github.com/seaneking","followers_url":"https://api.github.com/users/seaneking/followers","following_url":"https://api.github.com/users/seaneking/following{/other_user}","gists_url":"https://api.github.com/users/seaneking/gists{/gist_id}","starred_url":"https://api.github.com/users/seaneking/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seaneking/subscriptions","organizations_url":"https://api.github.com/users/seaneking/orgs","repos_url":"https://api.github.com/users/seaneking/repos","events_url":"https://api.github.com/users/seaneking/events{/privacy}","received_events_url":"https://api.github.com/users/seaneking/received_events","type":"User","site_admin":false},"created_at":"2016-12-13T02:35:44Z","updated_at":"2016-12-13T02:35:44Z","body":"Yep that's fair, and thanks for pointing all that out. We'll investigate further ourselves and report back - parchment expecting block level nodes in particular could be problematic."}}
{"actor":{"display_login":"seaneking"}}