mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-15 09:19:57 +09:00
32 lines
585 B
JavaScript
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);
|