{"action":"created","issue":{"url":"https://api.github.com/repos/GlotPress/GlotPress-WP/issues/166","repository_url":"https://api.github.com/repos/GlotPress/GlotPress-WP","labels_url":"https://api.github.com/repos/GlotPress/GlotPress-WP/issues/166/labels{/name}","comments_url":"https://api.github.com/repos/GlotPress/GlotPress-WP/issues/166/comments","events_url":"https://api.github.com/repos/GlotPress/GlotPress-WP/issues/166/events","html_url":"https://github.com/GlotPress/GlotPress-WP/issues/166","id":119243917,"number":166,"title":"Enhance editor for translations with `contenteditable`","user":{"login":"ocean90","id":617637,"avatar_url":"https://avatars.githubusercontent.com/u/617637?v=3","gravatar_id":"","url":"https://api.github.com/users/ocean90","html_url":"https://github.com/ocean90","followers_url":"https://api.github.com/users/ocean90/followers","following_url":"https://api.github.com/users/ocean90/following{/other_user}","gists_url":"https://api.github.com/users/ocean90/gists{/gist_id}","starred_url":"https://api.github.com/users/ocean90/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ocean90/subscriptions","organizations_url":"https://api.github.com/users/ocean90/orgs","repos_url":"https://api.github.com/users/ocean90/repos","events_url":"https://api.github.com/users/ocean90/events{/privacy}","received_events_url":"https://api.github.com/users/ocean90/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/GlotPress/GlotPress-WP/labels/question/discussion","name":"question/discussion","color":"cc317c"},{"url":"https://api.github.com/repos/GlotPress/GlotPress-WP/labels/_design","name":"_design","color":"ffffff"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/GlotPress/GlotPress-WP/milestones/2","html_url":"https://github.com/GlotPress/GlotPress-WP/milestones/Future","labels_url":"https://api.github.com/repos/GlotPress/GlotPress-WP/milestones/2/labels","id":1322119,"number":2,"title":"Future","description":"","creator":{"login":"bradt","id":190095,"avatar_url":"https://avatars.githubusercontent.com/u/190095?v=3","gravatar_id":"","url":"https://api.github.com/users/bradt","html_url":"https://github.com/bradt","followers_url":"https://api.github.com/users/bradt/followers","following_url":"https://api.github.com/users/bradt/following{/other_user}","gists_url":"https://api.github.com/users/bradt/gists{/gist_id}","starred_url":"https://api.github.com/users/bradt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bradt/subscriptions","organizations_url":"https://api.github.com/users/bradt/orgs","repos_url":"https://api.github.com/users/bradt/repos","events_url":"https://api.github.com/users/bradt/events{/privacy}","received_events_url":"https://api.github.com/users/bradt/received_events","type":"User","site_admin":false},"open_issues":23,"closed_issues":3,"state":"open","created_at":"2015-09-24T13:18:57Z","updated_at":"2016-03-13T14:51:25Z","due_on":null,"closed_at":null},"comments":6,"created_at":"2015-11-27T20:34:09Z","updated_at":"2016-03-14T12:44:12Z","closed_at":null,"body":"**Current editor:**\r\n\r\n<img width=\"736\" alt=\"\" src=\"https://cloud.githubusercontent.com/assets/617637/11447599/e89b9f1c-9548-11e5-8991-ce1290801cc2.png\">\r\n`<textarea>`\r\n\r\n**Enhanced editor:**\r\n\r\n![editor](https://cloud.githubusercontent.com/assets/617637/11447672/8c0e8ed8-954a-11e5-99b7-1a2783acd2da.jpg)\r\n`<div contenteditable=\"true\">`\r\n\r\n\r\n`contenteditable` would give use more flexibility to:\r\n* replace PHP placeholders with little \"easy placeholders\" which can be inserted with a shortcut. This should prevent typos when inserting stuff like `%3$s`\r\n* highlight validation errors inline. Example from Twitter: https://cloudup.com/cmhvhvIawhc\r\n* highlight trailing whitespaces/new lines. Example from Poedit: https://cloudup.com/c46AuNRxJoM\r\n* (format strings. `<strong>ERROR</strong>` could be displayed as **ERROR**.)\r\n\r\nWhat do you think about this idea? Good? Bad? Why? Do you have another idea?"},"comment":{"url":"https://api.github.com/repos/GlotPress/GlotPress-WP/issues/comments/196294663","html_url":"https://github.com/GlotPress/GlotPress-WP/issues/166#issuecomment-196294663","issue_url":"https://api.github.com/repos/GlotPress/GlotPress-WP/issues/166","id":196294663,"user":{"login":"ocean90","id":617637,"avatar_url":"https://avatars.githubusercontent.com/u/617637?v=3","gravatar_id":"","url":"https://api.github.com/users/ocean90","html_url":"https://github.com/ocean90","followers_url":"https://api.github.com/users/ocean90/followers","following_url":"https://api.github.com/users/ocean90/following{/other_user}","gists_url":"https://api.github.com/users/ocean90/gists{/gist_id}","starred_url":"https://api.github.com/users/ocean90/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ocean90/subscriptions","organizations_url":"https://api.github.com/users/ocean90/orgs","repos_url":"https://api.github.com/users/ocean90/repos","events_url":"https://api.github.com/users/ocean90/events{/privacy}","received_events_url":"https://api.github.com/users/ocean90/received_events","type":"User","site_admin":false},"created_at":"2016-03-14T12:44:11Z","updated_at":"2016-03-14T12:44:11Z","body":"How Crowdin uses placeholders in the editor:\r\n<img width=\"538\" alt=\"crowdin-placeholders\" src=\"https://cloud.githubusercontent.com/assets/617637/13744792/80c3fe56-e9ea-11e5-8680-42d6170f5126.png\">\r\n\r\n<img width=\"618\" alt=\"crowdin-placeholders-2\" src=\"https://cloud.githubusercontent.com/assets/617637/13744827/d0011544-e9ea-11e5-9b9a-f8d84e8bb24b.png\">\r\n"}}