rhymix/modules/editor/tpl/js/editor.app.js
2015-02-24 19:16:34 +09:00

32 lines
585 B
JavaScript

(function($){
"use strict";
var XeEditorApp = xe.createApp('xeEditorApp', {
init : function() {
},
API_ONREADY : function() {
},
getContent : function(seq) {
this.cast('GET_CONTENT');
},
API_EDITOR_CREATED : function(){
},
});
// Shortcut function in jQuery
$.fn.xeEditorApp = function(opts) {
var u = new XeEditorApp(this.eq(0), opts);
if(u) xe.registerApp(u);
return u;
};
// Shortcut function in XE
window.xe.createXeEditor = function() {
var u = new XeEditorApp();
return u;
};
var u = new XeEditorApp();
xe.registerApp(u);
})(jQuery);