{"action":"created","issue":{"url":"https://api.github.com/repos/GetmeUK/ContentTools/issues/173","repository_url":"https://api.github.com/repos/GetmeUK/ContentTools","labels_url":"https://api.github.com/repos/GetmeUK/ContentTools/issues/173/labels{/name}","comments_url":"https://api.github.com/repos/GetmeUK/ContentTools/issues/173/comments","events_url":"https://api.github.com/repos/GetmeUK/ContentTools/issues/173/events","html_url":"https://github.com/GetmeUK/ContentTools/issues/173","id":143773607,"number":173,"title":"How to create just an input for plain text?","user":{"login":"SimBioT1954","id":11522338,"avatar_url":"https://avatars.githubusercontent.com/u/11522338?v=3","gravatar_id":"","url":"https://api.github.com/users/SimBioT1954","html_url":"https://github.com/SimBioT1954","followers_url":"https://api.github.com/users/SimBioT1954/followers","following_url":"https://api.github.com/users/SimBioT1954/following{/other_user}","gists_url":"https://api.github.com/users/SimBioT1954/gists{/gist_id}","starred_url":"https://api.github.com/users/SimBioT1954/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SimBioT1954/subscriptions","organizations_url":"https://api.github.com/users/SimBioT1954/orgs","repos_url":"https://api.github.com/users/SimBioT1954/repos","events_url":"https://api.github.com/users/SimBioT1954/events{/privacy}","received_events_url":"https://api.github.com/users/SimBioT1954/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/GetmeUK/ContentTools/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-03-27T03:56:01Z","updated_at":"2016-03-30T11:16:28Z","closed_at":null,"body":"How to forbid any insert of images/tables etc in editable area? \r\nCan I create editable input for only plain text?\r\nThanks a lot!"},"comment":{"url":"https://api.github.com/repos/GetmeUK/ContentTools/issues/comments/203383281","html_url":"https://github.com/GetmeUK/ContentTools/issues/173#issuecomment-203383281","issue_url":"https://api.github.com/repos/GetmeUK/ContentTools/issues/173","id":203383281,"user":{"login":"SimBioT1954","id":11522338,"avatar_url":"https://avatars.githubusercontent.com/u/11522338?v=3","gravatar_id":"","url":"https://api.github.com/users/SimBioT1954","html_url":"https://github.com/SimBioT1954","followers_url":"https://api.github.com/users/SimBioT1954/followers","following_url":"https://api.github.com/users/SimBioT1954/following{/other_user}","gists_url":"https://api.github.com/users/SimBioT1954/gists{/gist_id}","starred_url":"https://api.github.com/users/SimBioT1954/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SimBioT1954/subscriptions","organizations_url":"https://api.github.com/users/SimBioT1954/orgs","repos_url":"https://api.github.com/users/SimBioT1954/repos","events_url":"https://api.github.com/users/SimBioT1954/events{/privacy}","received_events_url":"https://api.github.com/users/SimBioT1954/received_events","type":"User","site_admin":false},"created_at":"2016-03-30T11:16:28Z","updated_at":"2016-03-30T11:16:28Z","body":"Why is this code does not work?\r\n```javascriptContentEdit.Root.get().bind('focus', function (element){\r\n\tvar editor = ContentTools.EditorApp.get();\r\n\r\n   if (element.domElement().classList.contains('plain-text')) {\r\neditor.toolbox().tools([]);\r\n}else{ \r\neditor.toolbox().tools(ContentTools.DEFAULT_TOOLS);\r\n\t\t}\r\n});```"}}