{"action":"opened","issue":{"url":"https://api.github.com/repos/quilljs/quill/issues/868","repository_url":"https://api.github.com/repos/quilljs/quill","labels_url":"https://api.github.com/repos/quilljs/quill/issues/868/labels{/name}","comments_url":"https://api.github.com/repos/quilljs/quill/issues/868/comments","events_url":"https://api.github.com/repos/quilljs/quill/issues/868/events","html_url":"https://github.com/quilljs/quill/issues/868","id":171888893,"number":868,"title":"Use pasteHTML","user":{"login":"kolesoffac","id":11459507,"avatar_url":"https://avatars.githubusercontent.com/u/11459507?v=3","gravatar_id":"","url":"https://api.github.com/users/kolesoffac","html_url":"https://github.com/kolesoffac","followers_url":"https://api.github.com/users/kolesoffac/followers","following_url":"https://api.github.com/users/kolesoffac/following{/other_user}","gists_url":"https://api.github.com/users/kolesoffac/gists{/gist_id}","starred_url":"https://api.github.com/users/kolesoffac/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kolesoffac/subscriptions","organizations_url":"https://api.github.com/users/kolesoffac/orgs","repos_url":"https://api.github.com/users/kolesoffac/repos","events_url":"https://api.github.com/users/kolesoffac/events{/privacy}","received_events_url":"https://api.github.com/users/kolesoffac/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-08-18T12:26:36Z","updated_at":"2016-08-18T12:26:36Z","closed_at":null,"body":"When i add content use pasteHTML i have wrong.\r\n\r\n```\r\nvar $contents = $('<ul><li>dfgdgfg<li><li class=\"ql-indent-1\">dfgdgfg<li></ul>');\r\nquill.pasteHTML(0, $contents[0].outerHTML);\r\n```\r\n\r\n\r\nresult inserted \"ordered\" instaed \"bullet\" list.\r\n\r\nI looked for code :\r\n```\r\napplyDelta:\r\n....\r\ndelta = normalizeDelta(delta);\r\n```\r\n\r\n```\r\nnormalizeDelta:\r\n....\r\nif (op.attributes != null && (op.attributes.list || op.attributes.bullet)) {\r\n\t      op = (0, _clone2.default)(op);\r\n\t      if (op.attributes.list) {\r\n\t        op.attributes.list = 'ordered';\r\n\t      } else {\r\n\t        op.attributes.list = 'bullet';\r\n\t        delete op.attributes.bullet;\r\n\t      }\r\n\t    }\r\n```\r\n\r\nWhy \r\n```\r\nif (op.attributes.list) {\r\n\t        op.attributes.list = 'ordered';\r\n\t      } \r\n```\r\n?\r\n\r\nIn result \"bullet\" replace \"ordered\"?\r\n\r\n\r\n\r\n\r\n\r\n"}}
{"actor":{"display_login":"kolesoffac"}}