{"action":"created","issue":{"url":"https://api.github.com/repos/torchbox/wagtail/issues/232","labels_url":"https://api.github.com/repos/torchbox/wagtail/issues/232/labels{/name}","comments_url":"https://api.github.com/repos/torchbox/wagtail/issues/232/comments","events_url":"https://api.github.com/repos/torchbox/wagtail/issues/232/events","html_url":"https://github.com/torchbox/wagtail/issues/232","id":32938514,"number":232,"title":"Enhancement: Edit HTML Source in Hallo Editor","user":{"login":"jeffrey-hearn","id":3364400,"avatar_url":"https://avatars.githubusercontent.com/u/3364400?v=3","gravatar_id":"","url":"https://api.github.com/users/jeffrey-hearn","html_url":"https://github.com/jeffrey-hearn","followers_url":"https://api.github.com/users/jeffrey-hearn/followers","following_url":"https://api.github.com/users/jeffrey-hearn/following{/other_user}","gists_url":"https://api.github.com/users/jeffrey-hearn/gists{/gist_id}","starred_url":"https://api.github.com/users/jeffrey-hearn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeffrey-hearn/subscriptions","organizations_url":"https://api.github.com/users/jeffrey-hearn/orgs","repos_url":"https://api.github.com/users/jeffrey-hearn/repos","events_url":"https://api.github.com/users/jeffrey-hearn/events{/privacy}","received_events_url":"https://api.github.com/users/jeffrey-hearn/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2014-05-06T22:14:18Z","updated_at":"2015-01-21T07:04:50Z","closed_at":"2014-05-07T12:45:46Z","body":"Most WYSIWYG editors allow for a toggle to edit the HTML source which actually fills the input element used with the content. There are lots of use cases where WYSIWYG editors fall short (such as editing tables) and being able to edit the source directly is essential.\r\n\r\nThe hallo.js shipped with Wagtail includes the HTML source-editor plugin, but changes the namespace (from \"IKS\" to \"ncri\") so it is unusable in page-editor.js. However, the hallo.js plugin works mostly fine when changing that namespace back and adding the plugin to page-editor.js. That plugin opens up a modal window which allows for updating the HTML source. Some further window-dragging JS and CSS tweaks would be needed.\r\n\r\nAn alternative would be to add a toolbar toggle to show the textarea input itself in the place of the rendered HTML."},"comment":{"url":"https://api.github.com/repos/torchbox/wagtail/issues/comments/70793461","html_url":"https://github.com/torchbox/wagtail/issues/232#issuecomment-70793461","issue_url":"https://api.github.com/repos/torchbox/wagtail/issues/232","id":70793461,"user":{"login":"SalahAdDin","id":5034215,"avatar_url":"https://avatars.githubusercontent.com/u/5034215?v=3","gravatar_id":"","url":"https://api.github.com/users/SalahAdDin","html_url":"https://github.com/SalahAdDin","followers_url":"https://api.github.com/users/SalahAdDin/followers","following_url":"https://api.github.com/users/SalahAdDin/following{/other_user}","gists_url":"https://api.github.com/users/SalahAdDin/gists{/gist_id}","starred_url":"https://api.github.com/users/SalahAdDin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SalahAdDin/subscriptions","organizations_url":"https://api.github.com/users/SalahAdDin/orgs","repos_url":"https://api.github.com/users/SalahAdDin/repos","events_url":"https://api.github.com/users/SalahAdDin/events{/privacy}","received_events_url":"https://api.github.com/users/SalahAdDin/received_events","type":"User","site_admin":false},"created_at":"2015-01-21T07:04:50Z","updated_at":"2015-01-21T07:04:50Z","body":"@jerel, the hooks file have to called wagtails_hook or can hooks only? where have to put in the code? in the same folder that models.py? is necessary have to plugin file for have html plugin? and if is necessary have the hallohtml plugin, where we have put it? "}}