<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>MBE_SCHEMA</title>
</head>
<body>
<script>
//入口 ==> 8783
EditorShell.main = {
start : mbe_core.DocumentManager.newInstance().then(function (sm) {
//跳到编辑器的36行开始即可
return mbe_run.shell = new EditorShell(sm);
}).fail(onFail)
}
//sm ==> 7293
DocumentManager.newInstance = {
//新建了一个延迟对象,里面是DM
/*
_editingDocument : []
_storage : undefinde
editingDocument : undefined
storage : undefined
_addDoc : ()
_closeStorage : ()
_openDocument : ()
_openStorage : ()
createDocument : ()
createDocumentFromArchive : ()
editingDocument : ()
createDocument : ()
createDocumentFromArchive : ()
removeAllDocuments : ()
resumeOrCreateDocument : ()
storage : ()
*/
return : new mc.Deferred().resolve(new DocumentManager(null))
} // new ==> 8065
//这个才是真正的入口哦
EditorShell(sm); // 8086
Object.extend(EditorShell,"eventEmite"/*模拟事件*/); //8090
Editor._storageManager = sm; //8119 等IFrame加载完成就执行下面这个doc初始化
this._initDocument(); //8123剪贴板初始化事件
this._clipboard = new ClipBoard( document )
//8125属性面板城市化
this._propPanel = new PropertyPanel();
//8126 左侧导航栏初始化
this._pageNav = new PageNavigator(); //8218
bind("beforeunload");
//8131
bind("resize"); //8135 读取文档内部内容 或者 新建文档
this._storageManager.resumeOrCreateDocument().then()
/*
8139 如果存在就从沙盒中取
filesystem:http://localhost:6320/persistent/mbe/editing/1394337977419/.core-editor.xhtml
*/ //8137 如果不存在就新建一个文档 /*
各种各样的事件
预览
undo
reodo
缩放
新建页面
元素置顶
元素置底
元素居中
元素居上
元素居下
..
删除页面
新建页面
==> 将压缩的文档解压读取到沙盒,再用loadDocument解析到页面;
保存页面
导出选项
==> 压缩成zip,使用URL.createObjectURL( blob )直接放到 a的href就可以自动下载
新建文档 //右侧控制面板
文字图片视频音频 8654 _insertControl
匹配到img@video@audio的file文件,使用resurceLoad,导入资源列表 8677 beginInteractiveInserting 8683 this._editor.resourceLoader 添加加载资源添加事件:
{
start,
clear,
done,
progress,
fail
}
连接工具的初始化
连接选项
解除连接选项
更新连接的按钮是否可用
解除连接选项 右下角的状态栏状态显示
*/
</script>
</body>
</html>

  

最新文章

  1. node02-util
  2. 【转】T-SQL查询进阶—理解SQL Server中的锁
  3. android命令抓LOG
  4. 使用ActivityGroup类显示多个Activity
  5. TestNG之Factory
  6. The Ninth Hunan Collegiate Programming Contest (2013) Problem J
  7. Invoke与BeginInvoke
  8. HDOJ 1024 Max Sum Plus Plus -- 动态规划
  9. mysql中数据库database、实例instance、会话session的关系
  10. ASP.NET MVC5 学习笔记-5 测试
  11. 【Alpha】Daily Scrum Meeting——Day2
  12. servlet上传文件报错(二)
  13. SQL Server2012安装流程
  14. Android使用腾讯浏览服务X5内核
  15. 【Linux】防火墙与CentOS中的iptables
  16. PAT乙级(Basic Level)练习题-NowCoder数列总结
  17. 在windows server 2008 R2 64bit上面配置PI OPC Server的DCOM
  18. select/poll/epoll 对比
  19. ecplice中去掉提示信息的步骤
  20. Hadoop MapReduce Task的进程模型与Spark Task的线程模型

热门文章

  1. Android代码优化----Application节点的模板写法及UI工具类
  2. Z路径覆盖
  3. android:ToolBar详解(手把手教程)
  4. WebApi 消息拦截
  5. 微软职位内部推荐-SW Engineer for Skype
  6. 制作苹果推送通知APNS服务器证书文件
  7. C语言 结构体中的成员域偏移量
  8. C#实现对指定文件夹中文件按修改时间排序
  9. LeetCode:Word Break(DP)
  10. polya计数定理在ACM-icpc中的应用