{"action":"created","issue":{"url":"https://api.github.com/repos/madebymany/sir-trevor-js/issues/393","labels_url":"https://api.github.com/repos/madebymany/sir-trevor-js/issues/393/labels{/name}","comments_url":"https://api.github.com/repos/madebymany/sir-trevor-js/issues/393/comments","events_url":"https://api.github.com/repos/madebymany/sir-trevor-js/issues/393/events","html_url":"https://github.com/madebymany/sir-trevor-js/issues/393","id":111526704,"number":393,"title":"Load Data via Javascript","user":{"login":"timmyg","id":1144242,"avatar_url":"https://avatars.githubusercontent.com/u/1144242?v=3","gravatar_id":"","url":"https://api.github.com/users/timmyg","html_url":"https://github.com/timmyg","followers_url":"https://api.github.com/users/timmyg/followers","following_url":"https://api.github.com/users/timmyg/following{/other_user}","gists_url":"https://api.github.com/users/timmyg/gists{/gist_id}","starred_url":"https://api.github.com/users/timmyg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timmyg/subscriptions","organizations_url":"https://api.github.com/users/timmyg/orgs","repos_url":"https://api.github.com/users/timmyg/repos","events_url":"https://api.github.com/users/timmyg/events{/privacy}","received_events_url":"https://api.github.com/users/timmyg/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-10-15T01:28:23Z","updated_at":"2015-10-15T08:30:48Z","closed_at":null,"body":"Is there any way to load data into an ST instance... either while initializing and/or after initialization? Thanks!"},"comment":{"url":"https://api.github.com/repos/madebymany/sir-trevor-js/issues/comments/148316936","html_url":"https://github.com/madebymany/sir-trevor-js/issues/393#issuecomment-148316936","issue_url":"https://api.github.com/repos/madebymany/sir-trevor-js/issues/393","id":148316936,"user":{"login":"raffij","id":28570,"avatar_url":"https://avatars.githubusercontent.com/u/28570?v=3","gravatar_id":"","url":"https://api.github.com/users/raffij","html_url":"https://github.com/raffij","followers_url":"https://api.github.com/users/raffij/followers","following_url":"https://api.github.com/users/raffij/following{/other_user}","gists_url":"https://api.github.com/users/raffij/gists{/gist_id}","starred_url":"https://api.github.com/users/raffij/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raffij/subscriptions","organizations_url":"https://api.github.com/users/raffij/orgs","repos_url":"https://api.github.com/users/raffij/repos","events_url":"https://api.github.com/users/raffij/events{/privacy}","received_events_url":"https://api.github.com/users/raffij/received_events","type":"User","site_admin":false},"created_at":"2015-10-15T08:30:48Z","updated_at":"2015-10-15T08:30:48Z","body":"@timmyg this is something i've been looking at implementing as part of improvements for using sir-trevor within non form based environments.\r\n\r\nWhen the editor is being built it fetches the .value from the textarea.\r\n\r\nhttps://github.com/madebymany/sir-trevor-js/blob/master/src/editor.js#L77\r\nhttps://github.com/madebymany/sir-trevor-js/blob/master/src/editor.js#L106\r\n\r\nOne way to do what you'd like looks like this:\r\nhttps://github.com/madebymany/sir-trevor-js/issues/319#issuecomment-89377587\r\n\r\nOr you could rewrite the textarea contents and then call:\r\nhttps://github.com/madebymany/sir-trevor-js/blob/master/src/editor.js#L142\r\n\r\nLet us know how you get on."}}