{"action":"opened","issue":{"url":"https://api.github.com/repos/ProseMirror/prosemirror/issues/385","repository_url":"https://api.github.com/repos/ProseMirror/prosemirror","labels_url":"https://api.github.com/repos/ProseMirror/prosemirror/issues/385/labels{/name}","comments_url":"https://api.github.com/repos/ProseMirror/prosemirror/issues/385/comments","events_url":"https://api.github.com/repos/ProseMirror/prosemirror/issues/385/events","html_url":"https://github.com/ProseMirror/prosemirror/issues/385","id":160734398,"number":385,"title":"schema-basic Doc doesn't have toDOM","user":{"login":"forresto","id":395307,"avatar_url":"https://avatars.githubusercontent.com/u/395307?v=3","gravatar_id":"","url":"https://api.github.com/users/forresto","html_url":"https://github.com/forresto","followers_url":"https://api.github.com/users/forresto/followers","following_url":"https://api.github.com/users/forresto/following{/other_user}","gists_url":"https://api.github.com/users/forresto/gists{/gist_id}","starred_url":"https://api.github.com/users/forresto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/forresto/subscriptions","organizations_url":"https://api.github.com/users/forresto/orgs","repos_url":"https://api.github.com/users/forresto/repos","events_url":"https://api.github.com/users/forresto/events{/privacy}","received_events_url":"https://api.github.com/users/forresto/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-06-16T18:56:37Z","updated_at":"2016-06-16T18:56:37Z","closed_at":null,"body":"This means that calling pm.doc.toDOM() fails with \"Failed to override NodeType.toDOM.\"\r\n\r\nFix is to make your own top-level Doc:\r\n``` js\r\nimport { Doc } from 'prosemirror/dist/schema-basic'\r\n\r\nclass EdDoc extends Doc {\r\n  toDOM () { return ['div', 0] }\r\n}\r\n```\r\n\r\nShould schema-basic Doc toDOM be defined out of the box?"}}
{"actor":{"display_login":"forresto"}}