Visual editor: dropping translation of wlxml 'div' tag to 'block' tag
[fnpeditor.git] / modules / skelton.js
1 rng.modules.skelton = function(sandbox) {\r
2     \r
3     var view = $(sandbox.getTemplate('main')());\r
4     \r
5     view.find('#rng-skelton-menu a').click(function(e) {\r
6         e.preventDefault();\r
7         sandbox.publish('cmd.' + $(e.target).attr('data-cmd'));\r
8     });\r
9     \r
10     return {\r
11         start: function() {\r
12             sandbox.getDOM().append(view);\r
13             sandbox.publish('ready');\r
14         },\r
15         setMainView: function(mainView) {\r
16             view.find('#rng-skelton-mainView').html(mainView);\r
17         }\r
18     }\r
19 };