{"action":"created","issue":{"url":"https://api.github.com/repos/cotto89/ISMEditor/issues/7","repository_url":"https://api.github.com/repos/cotto89/ISMEditor","labels_url":"https://api.github.com/repos/cotto89/ISMEditor/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/cotto89/ISMEditor/issues/7/comments","events_url":"https://api.github.com/repos/cotto89/ISMEditor/issues/7/events","html_url":"https://github.com/cotto89/ISMEditor/issues/7","id":159808259,"number":7,"title":"NodeBlockの追加方法検討","user":{"login":"cotto89","id":11910950,"avatar_url":"https://avatars.githubusercontent.com/u/11910950?v=3","gravatar_id":"","url":"https://api.github.com/users/cotto89","html_url":"https://github.com/cotto89","followers_url":"https://api.github.com/users/cotto89/followers","following_url":"https://api.github.com/users/cotto89/following{/other_user}","gists_url":"https://api.github.com/users/cotto89/gists{/gist_id}","starred_url":"https://api.github.com/users/cotto89/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cotto89/subscriptions","organizations_url":"https://api.github.com/users/cotto89/orgs","repos_url":"https://api.github.com/users/cotto89/repos","events_url":"https://api.github.com/users/cotto89/events{/privacy}","received_events_url":"https://api.github.com/users/cotto89/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-06-12T05:04:00Z","updated_at":"2016-06-12T05:30:43Z","closed_at":null,"body":"WrapperになるNodeBlockの追加方法を検討。\r\n\r\n```js\r\n<ISMEditor>\r\n  // 以下compilerが生成\r\n  <NodeBlock>\r\n    <h1>\r\n     <span content editable=\"true\">text</ span>\r\n   </h1>\r\n  </ NodeBlock>\r\n  ...\r\n</ ISMEditor>\r\n```\r\n\r\n上のような構造を作り、**NodeBlockのfocus/blur時にrich textとrawのtoggleやイベントハンドリングのためNodeBlockはネストさせない**ようにする。そのためにASTのroot > children > top level nodes > ....のAST構造からtop levelのnodeにだけをwrapする必要がある。\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/cotto89/ISMEditor/issues/comments/225411066","html_url":"https://github.com/cotto89/ISMEditor/issues/7#issuecomment-225411066","issue_url":"https://api.github.com/repos/cotto89/ISMEditor/issues/7","id":225411066,"user":{"login":"cotto89","id":11910950,"avatar_url":"https://avatars.githubusercontent.com/u/11910950?v=3","gravatar_id":"","url":"https://api.github.com/users/cotto89","html_url":"https://github.com/cotto89","followers_url":"https://api.github.com/users/cotto89/followers","following_url":"https://api.github.com/users/cotto89/following{/other_user}","gists_url":"https://api.github.com/users/cotto89/gists{/gist_id}","starred_url":"https://api.github.com/users/cotto89/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cotto89/subscriptions","organizations_url":"https://api.github.com/users/cotto89/orgs","repos_url":"https://api.github.com/users/cotto89/repos","events_url":"https://api.github.com/users/cotto89/events{/privacy}","received_events_url":"https://api.github.com/users/cotto89/received_events","type":"User","site_admin":false},"created_at":"2016-06-12T05:30:43Z","updated_at":"2016-06-12T05:30:43Z","body":"# idea\r\n\r\n## AST構造のrootを0としてchildrenで深くなる度に値が大きくなるnode-depthプロパティを追加するpluginを作る。\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n"}}
{"actor":{"display_login":"cotto89"}}