{"action":"created","issue":{"url":"https://api.github.com/repos/quilljs/quill/issues/228","labels_url":"https://api.github.com/repos/quilljs/quill/issues/228/labels{/name}","comments_url":"https://api.github.com/repos/quilljs/quill/issues/228/comments","events_url":"https://api.github.com/repos/quilljs/quill/issues/228/events","html_url":"https://github.com/quilljs/quill/issues/228","id":46048080,"number":228,"title":"Configurable block tag (div, paragraph)","user":{"login":"alexeckermann","id":92813,"avatar_url":"https://avatars.githubusercontent.com/u/92813?v=3","gravatar_id":"","url":"https://api.github.com/users/alexeckermann","html_url":"https://github.com/alexeckermann","followers_url":"https://api.github.com/users/alexeckermann/followers","following_url":"https://api.github.com/users/alexeckermann/following{/other_user}","gists_url":"https://api.github.com/users/alexeckermann/gists{/gist_id}","starred_url":"https://api.github.com/users/alexeckermann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexeckermann/subscriptions","organizations_url":"https://api.github.com/users/alexeckermann/orgs","repos_url":"https://api.github.com/users/alexeckermann/repos","events_url":"https://api.github.com/users/alexeckermann/events{/privacy}","received_events_url":"https://api.github.com/users/alexeckermann/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/quilljs/quill/labels/enhancement","name":"enhancement","color":"207de5"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/quilljs/quill/milestones/2","html_url":"https://github.com/quilljs/quill/milestones/Customizable%20Formats","labels_url":"https://api.github.com/repos/quilljs/quill/milestones/2/labels","id":880649,"number":2,"title":"Customizable Formats","description":"The goal is to redesign formats to better support customization. Some tasks include:\r\n\r\n- Interaction with the normalizer to add or remove tags, attributes, etc to preserve or remove\r\n- Ability to safely overwrite default format behavior\r\n  - Ex. Use `<strong>` tags for bolding instead of `<b>`, using classes for styling instead of style attributes\r\n- Add custom behavior in addition to default behavior for default formats\r\n  - Ex. Adding header support that dynamically set an id based on header's text contents\r\n\r\nProgress can be tracked on the [format](https://github.com/quilljs/quill/tree/format) branch.","creator":{"login":"jhchen","id":192974,"avatar_url":"https://avatars.githubusercontent.com/u/192974?v=3","gravatar_id":"","url":"https://api.github.com/users/jhchen","html_url":"https://github.com/jhchen","followers_url":"https://api.github.com/users/jhchen/followers","following_url":"https://api.github.com/users/jhchen/following{/other_user}","gists_url":"https://api.github.com/users/jhchen/gists{/gist_id}","starred_url":"https://api.github.com/users/jhchen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jhchen/subscriptions","organizations_url":"https://api.github.com/users/jhchen/orgs","repos_url":"https://api.github.com/users/jhchen/repos","events_url":"https://api.github.com/users/jhchen/events{/privacy}","received_events_url":"https://api.github.com/users/jhchen/received_events","type":"User","site_admin":false},"open_issues":6,"closed_issues":0,"state":"open","created_at":"2014-11-26T00:25:01Z","updated_at":"2015-04-25T22:42:52Z","due_on":null,"closed_at":null},"comments":7,"created_at":"2014-10-16T23:34:49Z","updated_at":"2015-06-08T22:03:46Z","closed_at":null,"body":"Whilst div tags are quite acceptable for most cases, there are some uses where paragraph tags are necessary over div's.\r\n\r\nAs an example: I work on an application that allows authors to write content for ePubs. For both logical structure and ePub rendering reasons we like to use paragraph tags. \r\n\r\nFrom a very shallow inspection of the source it would appear this would involve changing references to the `dom.DEFAULT_BLOCK_TAG` variable with an option defined at initialisation.\r\n\r\n- Is there enough reason to warrant this change?\r\n- Are there any unintended consequences of implementing a change like this? @jhchen\r\n- How should configuration be handled? Define in the constructor options hash as `block_tag: 'p'`?"},"comment":{"url":"https://api.github.com/repos/quilljs/quill/issues/comments/110155754","html_url":"https://github.com/quilljs/quill/issues/228#issuecomment-110155754","issue_url":"https://api.github.com/repos/quilljs/quill/issues/228","id":110155754,"user":{"login":"antonholmquist","id":505089,"avatar_url":"https://avatars.githubusercontent.com/u/505089?v=3","gravatar_id":"","url":"https://api.github.com/users/antonholmquist","html_url":"https://github.com/antonholmquist","followers_url":"https://api.github.com/users/antonholmquist/followers","following_url":"https://api.github.com/users/antonholmquist/following{/other_user}","gists_url":"https://api.github.com/users/antonholmquist/gists{/gist_id}","starred_url":"https://api.github.com/users/antonholmquist/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/antonholmquist/subscriptions","organizations_url":"https://api.github.com/users/antonholmquist/orgs","repos_url":"https://api.github.com/users/antonholmquist/repos","events_url":"https://api.github.com/users/antonholmquist/events{/privacy}","received_events_url":"https://api.github.com/users/antonholmquist/received_events","type":"User","site_admin":false},"created_at":"2015-06-08T22:03:46Z","updated_at":"2015-06-08T22:03:46Z","body":"+1 for being able to use paragraphs instead of divs.\r\n\r\nBy the way, thanks for a great editor!"}}