{"action":"created","issue":{"url":"https://api.github.com/repos/letterpad/letterpad/issues/73","repository_url":"https://api.github.com/repos/letterpad/letterpad","labels_url":"https://api.github.com/repos/letterpad/letterpad/issues/73/labels{/name}","comments_url":"https://api.github.com/repos/letterpad/letterpad/issues/73/comments","events_url":"https://api.github.com/repos/letterpad/letterpad/issues/73/events","html_url":"https://github.com/letterpad/letterpad/pull/73","id":341003504,"node_id":"MDExOlB1bGxSZXF1ZXN0MjAxMjc5MDEy","number":73,"title":"Slate editor and plugins","user":{"login":"ajaxtown","id":1502352,"node_id":"MDQ6VXNlcjE1MDIzNTI=","avatar_url":"https://avatars0.githubusercontent.com/u/1502352?v=4","gravatar_id":"","url":"https://api.github.com/users/ajaxtown","html_url":"https://github.com/ajaxtown","followers_url":"https://api.github.com/users/ajaxtown/followers","following_url":"https://api.github.com/users/ajaxtown/following{/other_user}","gists_url":"https://api.github.com/users/ajaxtown/gists{/gist_id}","starred_url":"https://api.github.com/users/ajaxtown/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ajaxtown/subscriptions","organizations_url":"https://api.github.com/users/ajaxtown/orgs","repos_url":"https://api.github.com/users/ajaxtown/repos","events_url":"https://api.github.com/users/ajaxtown/events{/privacy}","received_events_url":"https://api.github.com/users/ajaxtown/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"alder","id":199887,"node_id":"MDQ6VXNlcjE5OTg4Nw==","avatar_url":"https://avatars3.githubusercontent.com/u/199887?v=4","gravatar_id":"","url":"https://api.github.com/users/alder","html_url":"https://github.com/alder","followers_url":"https://api.github.com/users/alder/followers","following_url":"https://api.github.com/users/alder/following{/other_user}","gists_url":"https://api.github.com/users/alder/gists{/gist_id}","starred_url":"https://api.github.com/users/alder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alder/subscriptions","organizations_url":"https://api.github.com/users/alder/orgs","repos_url":"https://api.github.com/users/alder/repos","events_url":"https://api.github.com/users/alder/events{/privacy}","received_events_url":"https://api.github.com/users/alder/received_events","type":"User","site_admin":false},"assignees":[{"login":"alder","id":199887,"node_id":"MDQ6VXNlcjE5OTg4Nw==","avatar_url":"https://avatars3.githubusercontent.com/u/199887?v=4","gravatar_id":"","url":"https://api.github.com/users/alder","html_url":"https://github.com/alder","followers_url":"https://api.github.com/users/alder/followers","following_url":"https://api.github.com/users/alder/following{/other_user}","gists_url":"https://api.github.com/users/alder/gists{/gist_id}","starred_url":"https://api.github.com/users/alder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alder/subscriptions","organizations_url":"https://api.github.com/users/alder/orgs","repos_url":"https://api.github.com/users/alder/repos","events_url":"https://api.github.com/users/alder/events{/privacy}","received_events_url":"https://api.github.com/users/alder/received_events","type":"User","site_admin":false},{"login":"boopathi","id":294474,"node_id":"MDQ6VXNlcjI5NDQ3NA==","avatar_url":"https://avatars0.githubusercontent.com/u/294474?v=4","gravatar_id":"","url":"https://api.github.com/users/boopathi","html_url":"https://github.com/boopathi","followers_url":"https://api.github.com/users/boopathi/followers","following_url":"https://api.github.com/users/boopathi/following{/other_user}","gists_url":"https://api.github.com/users/boopathi/gists{/gist_id}","starred_url":"https://api.github.com/users/boopathi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/boopathi/subscriptions","organizations_url":"https://api.github.com/users/boopathi/orgs","repos_url":"https://api.github.com/users/boopathi/repos","events_url":"https://api.github.com/users/boopathi/events{/privacy}","received_events_url":"https://api.github.com/users/boopathi/received_events","type":"User","site_admin":false},{"login":"tienpham94","id":25751050,"node_id":"MDQ6VXNlcjI1NzUxMDUw","avatar_url":"https://avatars2.githubusercontent.com/u/25751050?v=4","gravatar_id":"","url":"https://api.github.com/users/tienpham94","html_url":"https://github.com/tienpham94","followers_url":"https://api.github.com/users/tienpham94/followers","following_url":"https://api.github.com/users/tienpham94/following{/other_user}","gists_url":"https://api.github.com/users/tienpham94/gists{/gist_id}","starred_url":"https://api.github.com/users/tienpham94/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tienpham94/subscriptions","organizations_url":"https://api.github.com/users/tienpham94/orgs","repos_url":"https://api.github.com/users/tienpham94/repos","events_url":"https://api.github.com/users/tienpham94/events{/privacy}","received_events_url":"https://api.github.com/users/tienpham94/received_events","type":"User","site_admin":false}],"milestone":null,"comments":9,"created_at":"2018-07-13T12:38:53Z","updated_at":"2018-07-15T11:12:23Z","closed_at":null,"author_association":"MEMBER","pull_request":{"url":"https://api.github.com/repos/letterpad/letterpad/pulls/73","html_url":"https://github.com/letterpad/letterpad/pull/73","diff_url":"https://github.com/letterpad/letterpad/pull/73.diff","patch_url":"https://github.com/letterpad/letterpad/pull/73.patch"},"body":"Earlier we were using Quill Editor for writing stories. We have now replaced this with `Slate` editor. The UI has a big improvement in this PR. A lot of elements has been removed to make it more clean. \r\n\r\nWe are currently supporting the below plugins:\r\n- Bold\r\n- Itallic\r\n- Underline\r\n- Image\r\n- Headings\r\n- CodeBlock\r\n- Highlight\r\n- Markdown\r\n- Lists (Ordered and Unordered)\r\n- LineBreak\r\n- Quote\r\n- Link\r\n\r\n### Testing Procedures\r\nThe default theme `hugo` will break for Codeblocks. Earlier we used `highlight.js` and now we are using `Prism.js`. This change will be done in the theme but I will wait for the QA to approve this.\r\n\r\nThe markdown is inbuilt along with the rich text editor. So you will be able to use the rich text as well the markdown on the fly. All features of markdown should be in sync with rich text, meaning everything that works in markdown should work with rich text and vice versa.\r\n\r\nAlso, after saving the post and then reloading the browser should persist the formatting.\r\n\r\nThanks to @boopathi for helping me out with enhancements. The branch had a problem with merging and I had to create a new branch to resolve this, so your commits got missed out.\r\n\r\n\r\n#### Markdown cheatsheet:\r\n```\r\n\r\n# H1\r\n## H2\r\n### H3\r\n#### H4\r\n##### H5\r\n###### H6\r\n\r\n*italic*\r\n**bold**\r\n_underlined_\r\n\r\n- UnorderedList (followed by space)\r\n* UnorderedList (followed by space)\r\n\r\n1. OrderedList (followed by space)\r\n\r\nTo create nested list, hit tab.\r\n\r\nLinks:\r\n[I'm an inline-style link](https://www.google.com)\r\n\r\nImage:\r\n\r\n![I'm an image](https://img00.deviantart.net/95e7/i/2014/007/d/3/google_abstract_by_dynamicz34-d718hzj.png)\r\n\r\n\r\nInline `code` has `back-ticks around` it.\r\n\r\n> Blockquotes can be added like this.\r\n\r\n--- (followed by a space) will add a line break.\r\n```\r\n>  Codeblocks has been disabled in markdown for now.\r\n"},"comment":{"url":"https://api.github.com/repos/letterpad/letterpad/issues/comments/405083935","html_url":"https://github.com/letterpad/letterpad/pull/73#issuecomment-405083935","issue_url":"https://api.github.com/repos/letterpad/letterpad/issues/73","id":405083935,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNTA4MzkzNQ==","user":{"login":"alder","id":199887,"node_id":"MDQ6VXNlcjE5OTg4Nw==","avatar_url":"https://avatars3.githubusercontent.com/u/199887?v=4","gravatar_id":"","url":"https://api.github.com/users/alder","html_url":"https://github.com/alder","followers_url":"https://api.github.com/users/alder/followers","following_url":"https://api.github.com/users/alder/following{/other_user}","gists_url":"https://api.github.com/users/alder/gists{/gist_id}","starred_url":"https://api.github.com/users/alder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alder/subscriptions","organizations_url":"https://api.github.com/users/alder/orgs","repos_url":"https://api.github.com/users/alder/repos","events_url":"https://api.github.com/users/alder/events{/privacy}","received_events_url":"https://api.github.com/users/alder/received_events","type":"User","site_admin":false},"created_at":"2018-07-15T11:12:23Z","updated_at":"2018-07-15T11:12:23Z","author_association":"COLLABORATOR","body":"@ajaxtown yes, if text fragment or word will remain in the selected state this will be better than current situation. Agree with this solution.\r\n\r\nPlease also check issue with autoscroll. This problem is still present.\r\n\r\nI will add some new issues in 3-4 hours. They need to be discussed.\r\n\r\nAnd I want to say - new editor is really cool! I think this is a right direction for Letterpad :) "}}
{"actor":{"display_login":"alder"}}