{"action":"created","issue":{"url":"https://api.github.com/repos/ProseMirror/prosemirror/issues/443","repository_url":"https://api.github.com/repos/ProseMirror/prosemirror","labels_url":"https://api.github.com/repos/ProseMirror/prosemirror/issues/443/labels{/name}","comments_url":"https://api.github.com/repos/ProseMirror/prosemirror/issues/443/comments","events_url":"https://api.github.com/repos/ProseMirror/prosemirror/issues/443/events","html_url":"https://github.com/ProseMirror/prosemirror/issues/443","id":173446502,"number":443,"title":"Cannot insert new list items with more constrained content in schema","user":{"login":"theefer","id":36964,"avatar_url":"https://avatars.githubusercontent.com/u/36964?v=3","gravatar_id":"","url":"https://api.github.com/users/theefer","html_url":"https://github.com/theefer","followers_url":"https://api.github.com/users/theefer/followers","following_url":"https://api.github.com/users/theefer/following{/other_user}","gists_url":"https://api.github.com/users/theefer/gists{/gist_id}","starred_url":"https://api.github.com/users/theefer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/theefer/subscriptions","organizations_url":"https://api.github.com/users/theefer/orgs","repos_url":"https://api.github.com/users/theefer/repos","events_url":"https://api.github.com/users/theefer/events{/privacy}","received_events_url":"https://api.github.com/users/theefer/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-08-26T12:54:03Z","updated_at":"2016-08-26T19:53:40Z","closed_at":null,"body":"Editing lists works fine with a default Schema like:\r\n\r\n``` js\r\nconst schema = new Schema({\r\n  nodes: {\r\n    doc: {type: Doc, content: \"block+\"},\r\n    paragraph: {type: Paragraph, content: \"inline<_>*\", group: \"block\"},\r\n    ordered_list: {type: OrderedList, content: \"list_item+\", group: \"block\"},\r\n    bullet_list: {type: BulletList, content: \"list_item+\", group: \"block\"},\r\n    list_item: {type: ListItem, content: \"paragraph block*\"},\r\n    // ...                                          ^^^^^^\r\n```\r\n\r\nbut when constraining the `content` allowed in a `list_item`:\r\n\r\n``` js\r\n    list_item: {type: ListItem, content: \"paragraph (ordered_list | bullet_list)?\"},\r\n```\r\n\r\ntrying to press enter at the end of a `list_item` throws the following error:\r\n\r\n```\r\ntransform:42 Uncaught Error: Cannot join paragraph onto ordered_list\r\nProseMirrorError\t@\terror:7\r\nTransformError\t@\ttransform:5\r\nstep\t@\ttransform:42\r\nTransform.split\t@\tstructure:180\r\ncommands.splitBlock\t@\tcommands:292\r\n(anonymous function)\t@\tcommands:28\r\nhandle\t@\tinput:60\r\ndispatchKey\t@\tinput:65\r\nhandlers.keydown\t@\tinput:125\r\nInput.pm.content.addEventListener.e\t@\tinput:35\r\n```\r\n\r\nI am able to create a new list (eg by typing `* abc`), just not create subsequent items in it."},"comment":{"url":"https://api.github.com/repos/ProseMirror/prosemirror/issues/comments/242834807","html_url":"https://github.com/ProseMirror/prosemirror/issues/443#issuecomment-242834807","issue_url":"https://api.github.com/repos/ProseMirror/prosemirror/issues/443","id":242834807,"user":{"login":"marijnh","id":144427,"avatar_url":"https://avatars.githubusercontent.com/u/144427?v=3","gravatar_id":"","url":"https://api.github.com/users/marijnh","html_url":"https://github.com/marijnh","followers_url":"https://api.github.com/users/marijnh/followers","following_url":"https://api.github.com/users/marijnh/following{/other_user}","gists_url":"https://api.github.com/users/marijnh/gists{/gist_id}","starred_url":"https://api.github.com/users/marijnh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marijnh/subscriptions","organizations_url":"https://api.github.com/users/marijnh/orgs","repos_url":"https://api.github.com/users/marijnh/repos","events_url":"https://api.github.com/users/marijnh/events{/privacy}","received_events_url":"https://api.github.com/users/marijnh/received_events","type":"User","site_admin":false},"created_at":"2016-08-26T19:53:40Z","updated_at":"2016-08-26T19:53:40Z","body":"Are you binding enter to the `splitListItem` command from the distribution? If so, yes, that makes assumptions about the schema, and is only suitable for a list definition like the one in the base schema."}}
{"actor":{"display_login":"marijnh"}}