Files
fonteditor/demo/js/editor.js
2014-09-09 21:40:07 +08:00

33 lines
581 B
JavaScript

/**
* @file render.js
* @author mengke01
* @date
* @description
* editor 组件测试
*/
define(
function(require) {
var editor = require('editor/main');
var shape_baidu = require('./shape-baidu');
var currentEditor;
var entry = {
/**
* 初始化
*/
init: function () {
currentEditor = editor.create($('#render-view').get(0));
currentEditor.setFont(shape_baidu);
}
};
entry.init();
return entry;
}
);