{"action":"created","issue":{"url":"https://api.github.com/repos/NextStepWebs/simplemde-markdown-editor/issues/151","labels_url":"https://api.github.com/repos/NextStepWebs/simplemde-markdown-editor/issues/151/labels{/name}","comments_url":"https://api.github.com/repos/NextStepWebs/simplemde-markdown-editor/issues/151/comments","events_url":"https://api.github.com/repos/NextStepWebs/simplemde-markdown-editor/issues/151/events","html_url":"https://github.com/NextStepWebs/simplemde-markdown-editor/pull/151","id":114582909,"number":151,"title":"Add the replace selection text to the options.","user":{"login":"alexcanessa","id":1176495,"avatar_url":"https://avatars.githubusercontent.com/u/1176495?v=3","gravatar_id":"","url":"https://api.github.com/users/alexcanessa","html_url":"https://github.com/alexcanessa","followers_url":"https://api.github.com/users/alexcanessa/followers","following_url":"https://api.github.com/users/alexcanessa/following{/other_user}","gists_url":"https://api.github.com/users/alexcanessa/gists{/gist_id}","starred_url":"https://api.github.com/users/alexcanessa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexcanessa/subscriptions","organizations_url":"https://api.github.com/users/alexcanessa/orgs","repos_url":"https://api.github.com/users/alexcanessa/repos","events_url":"https://api.github.com/users/alexcanessa/events{/privacy}","received_events_url":"https://api.github.com/users/alexcanessa/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-02T12:15:58Z","updated_at":"2015-11-03T06:49:33Z","closed_at":"2015-11-03T06:49:33Z","pull_request":{"url":"https://api.github.com/repos/NextStepWebs/simplemde-markdown-editor/pulls/151","html_url":"https://github.com/NextStepWebs/simplemde-markdown-editor/pull/151","diff_url":"https://github.com/NextStepWebs/simplemde-markdown-editor/pull/151.diff","patch_url":"https://github.com/NextStepWebs/simplemde-markdown-editor/pull/151.patch"},"body":"The case I had was to remove the 'http://' from the drawImage function.\r\nSo I've created the ability to add the replace selection text to the options, and merge them with the defaults.\r\n\r\nThe usage will then be:\r\n\r\n``\r\nvar simpleMDE = new SimpleMDE({\r\n      '...': {},\r\n      replaceTexts: {\r\n         image: [\"![](\", \")\"]\r\n      });\r\n``"},"comment":{"url":"https://api.github.com/repos/NextStepWebs/simplemde-markdown-editor/issues/comments/153261531","html_url":"https://github.com/NextStepWebs/simplemde-markdown-editor/pull/151#issuecomment-153261531","issue_url":"https://api.github.com/repos/NextStepWebs/simplemde-markdown-editor/issues/151","id":153261531,"user":{"login":"WesCossick","id":3850064,"avatar_url":"https://avatars.githubusercontent.com/u/3850064?v=3","gravatar_id":"","url":"https://api.github.com/users/WesCossick","html_url":"https://github.com/WesCossick","followers_url":"https://api.github.com/users/WesCossick/followers","following_url":"https://api.github.com/users/WesCossick/following{/other_user}","gists_url":"https://api.github.com/users/WesCossick/gists{/gist_id}","starred_url":"https://api.github.com/users/WesCossick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WesCossick/subscriptions","organizations_url":"https://api.github.com/users/WesCossick/orgs","repos_url":"https://api.github.com/users/WesCossick/repos","events_url":"https://api.github.com/users/WesCossick/events{/privacy}","received_events_url":"https://api.github.com/users/WesCossick/received_events","type":"User","site_admin":false},"created_at":"2015-11-03T06:49:33Z","updated_at":"2015-11-03T06:49:33Z","body":"Thanks for this PR. Can you submit a new one and compare against the development branch, per the [contribution guide](https://github.com/NextStepWebs/simplemde-markdown-editor/blob/master/CONTRIBUTING.md)? That way, I'll be able to merge it."}}