amis2/packages/amis-editor/editor.html

52 lines
1.3 KiB
HTML
Raw Normal View History

<!-- htmlcs-disable -->
<!DOCTYPE html>
<html lang="zh">
<head>
<meta charset="UTF-8" />
<title>移动端编辑器</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta
name="viewport"
content="width=device-width, initial-scale=1, maximum-scale=1"
/>
<meta http-equiv="X-UA-Compatible" content="IE=Edge" />
<link
rel="stylesheet"
href="https://bce.bdstatic.com/iconfont/iconfont.css"
/>
<link
rel="stylesheet"
href="../../../node_modules/@fortawesome/fontawesome-free/css/all.css"
/>
<link
rel="stylesheet"
href="../../../node_modules/@fortawesome/fontawesome-free/css/v4-shims.css"
/>
<link rel="stylesheet" title="cxd" href="../amis-ui/scss/themes/cxd.scss" />
<link
rel="stylesheet"
type="text/css"
href="../amis-editor-core/scss/editor.scss"
/>
<style>
.app-wrapper {
position: relative;
width: 100%;
height: 100%;
}
</style>
</head>
<body>
<div id="root" class="app-wrapper"></div>
<script type="module">
import {createRoot} from 'react-dom/client';
import {mountInIframe} from 'amis-editor';
mountInIframe(
document.getElementById('root'),
createRoot(document.getElementById('root'))
);
</script>
</body>
</html>