{"action":"created","issue":{"url":"https://api.github.com/repos/GetmeUK/ContentTools/issues/283","repository_url":"https://api.github.com/repos/GetmeUK/ContentTools","labels_url":"https://api.github.com/repos/GetmeUK/ContentTools/issues/283/labels{/name}","comments_url":"https://api.github.com/repos/GetmeUK/ContentTools/issues/283/comments","events_url":"https://api.github.com/repos/GetmeUK/ContentTools/issues/283/events","html_url":"https://github.com/GetmeUK/ContentTools/issues/283","id":170341029,"number":283,"title":"newInquiryEditor._ignition.trigger is not a function","user":{"login":"FrancoisYu","id":10751834,"avatar_url":"https://avatars.githubusercontent.com/u/10751834?v=3","gravatar_id":"","url":"https://api.github.com/users/FrancoisYu","html_url":"https://github.com/FrancoisYu","followers_url":"https://api.github.com/users/FrancoisYu/followers","following_url":"https://api.github.com/users/FrancoisYu/following{/other_user}","gists_url":"https://api.github.com/users/FrancoisYu/gists{/gist_id}","starred_url":"https://api.github.com/users/FrancoisYu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FrancoisYu/subscriptions","organizations_url":"https://api.github.com/users/FrancoisYu/orgs","repos_url":"https://api.github.com/users/FrancoisYu/repos","events_url":"https://api.github.com/users/FrancoisYu/events{/privacy}","received_events_url":"https://api.github.com/users/FrancoisYu/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/GetmeUK/ContentTools/labels/question","name":"question","color":"cc317c"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":12,"created_at":"2016-08-10T06:49:02Z","updated_at":"2016-08-17T09:17:03Z","closed_at":"2016-08-17T09:15:15Z","body":"I try to hide the editing icon and auto-edit the content, but cannot make it with xxx._ignition.trigger('start'), the following is my code:\r\n\r\nHTML:\r\n```\r\n<template name=\"newInquiryModal\">\r\n    <div class=\"modal fade\" id=\"newInquiryModal\" data-keyboard=\"false\">\r\n        <div class=\"modal-dialog\">\r\n            <div class=\"modal-content\">\r\n                {{> newInquiryModalInner}}\r\n            </div>\r\n        </div>\r\n    </div>\r\n</template>\r\n\r\n<template name=\"newInquiryModalInner\">\r\n    <div class=\"modal-header popupHeader\">\r\n        <h3>New Inquiry</h3>\r\n        <span class=\"modal_close js-cancel\"><span class=\"glyphicon glyphicon-remove\"></span></span>\r\n    </div>\r\n    <div class=\"modal-body\">\r\n        <div class=\"form-group\">\r\n            <div class=\"input-group\">\r\n                <span class=\"input-group-addon\">Inquiry</span>\r\n                <div data-editable data-name=\"newinquiry1\" id=\"newinquiry1\"> </div>\r\n            </div>\r\n        </div>\r\n\r\n    </div>\r\n    <div class=\"modal-footer\">\r\n        <button type=\"button\" class=\"btn btn-primary js-submit\">Submit</button>\r\n        <button type=\"button\" class=\"btn btn-primary js-cancel\">Cancel</button>\r\n    </div>\r\n</template>\r\n```\r\n\r\n.js:\r\n\r\n```\r\n          \r\n            newInquiryEditor = ContentTools.EditorApp.get();\r\n            newInquiryEditor.init('[data-editable]', 'data-name', fixtureTest=null, withIgnition=true);\r\n            //newInquiryEditor.start();\r\n            newInquiryEditor._ignition.trigger('start');\r\n\r\n\r\n            // Starting the editor manually\r\n            //editor._ignition.trigger('start');\r\n\r\n            // Stoping the editor manually (save)\r\n            //editor._iginition.trigger('stop', true);\r\n\r\n            // Stoping the editor manually (cancel)\r\n            //editor._iginition.trigger('stop', false);\r\n\r\n            newInquiryEditor.addEventListener('saved', function(ev) {\r\n                var saved;\r\n                console.log(ev.detail().regions);\r\n                if (Object.keys(ev.detail().regions).length === 0) {\r\n                    return;\r\n                }\r\n                newInquiryEditor.busy(true);\r\n                saved = (function(_this) {\r\n                    return function() {\r\n                        newInquiryEditor.busy(false);\r\n                        return new ContentTools.FlashUI('ok');\r\n                    };\r\n                })(this);\r\n                return setTimeout(saved, 2000);\r\n            });\r\n            FIXTURE_TOOLS = [['undo', 'redo', 'remove']];\r\n            ContentEdit.Root.get().bind('focus', function(element) {\r\n                var tools;\r\n                if (element.isFixed()) {\r\n                    tools = FIXTURE_TOOLS;\r\n                } else {\r\n                    tools = ContentTools.DEFAULT_TOOLS;\r\n                }\r\n                if (newInquiryEditor.toolbox().tools() !== tools) {\r\n                    return newInquiryEditor.toolbox().tools(tools);\r\n                }\r\n            });\r\n\r\n            $(\"#newInquiryModal\").modal(\"show\");\r\n```\r\nHowever, I can use the newInquiryEditor.start() to show up the editor.\r\n\r\nIs there anything I should check for my code."},"comment":{"url":"https://api.github.com/repos/GetmeUK/ContentTools/issues/comments/240358274","html_url":"https://github.com/GetmeUK/ContentTools/issues/283#issuecomment-240358274","issue_url":"https://api.github.com/repos/GetmeUK/ContentTools/issues/283","id":240358274,"user":{"login":"anthonyjb","id":3046287,"avatar_url":"https://avatars.githubusercontent.com/u/3046287?v=3","gravatar_id":"","url":"https://api.github.com/users/anthonyjb","html_url":"https://github.com/anthonyjb","followers_url":"https://api.github.com/users/anthonyjb/followers","following_url":"https://api.github.com/users/anthonyjb/following{/other_user}","gists_url":"https://api.github.com/users/anthonyjb/gists{/gist_id}","starred_url":"https://api.github.com/users/anthonyjb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anthonyjb/subscriptions","organizations_url":"https://api.github.com/users/anthonyjb/orgs","repos_url":"https://api.github.com/users/anthonyjb/repos","events_url":"https://api.github.com/users/anthonyjb/events{/privacy}","received_events_url":"https://api.github.com/users/anthonyjb/received_events","type":"User","site_admin":false},"created_at":"2016-08-17T09:17:03Z","updated_at":"2016-08-17T09:17:03Z","body":"Hi @FrancoisYu - just to confirm, are you saying it is now working? e.g the code you posted works? If so that's good news though slightly perplexing."}}
{"actor":{"display_login":"anthonyjb"}}