add editor
This commit is contained in:
33
editor.html
Normal file
33
editor.html
Normal file
@@ -0,0 +1,33 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh-cn">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Editor</title>
|
||||
<link rel="shortcut icon" href="http://www.baidu.com/favicon.ico" type="image/x-icon">
|
||||
<link rel="stylesheet" type="text/css" href="./css/editor.css">
|
||||
</head>
|
||||
<body>
|
||||
<div id="editor-panel" class="editor-panel" oncontextMenu="return false"></div>
|
||||
|
||||
<script src="./dep/esl.js"></script>
|
||||
<script src="./dep/jquery.min.js"></script>
|
||||
<script src="./dep/paper-full.js"></script>
|
||||
<script src="./dep/hidpi-canvas.js"></script>
|
||||
<script>
|
||||
window.language = 'zh-cn';
|
||||
require.config({
|
||||
baseUrl: './src',
|
||||
packages: [
|
||||
{
|
||||
name: 'fonteditor-core',
|
||||
location: '../dep/fonteditor-core/src'
|
||||
}
|
||||
]
|
||||
});
|
||||
define('jquery', window.jQuery);
|
||||
paper.install(window);
|
||||
define('paper', window.paper);
|
||||
require(['fonteditor/editor']);
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user