| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- <html>
- <head>
-
- </head>
- <body>
- <div id="space-content">
- <space-editor v-model="describe" :height="height" ref="editor" :isfullscreen="false"></space-editor>
- </div>
- </body>
- <script type="text/javascript">
- space.vue = new Vue({
- el: space.appContent,
- data() {
- return {
- describe: '',
- height: '',
- }
- }
- })
- function initEditContent(editor) {
- // 进行初始化
- space.vue.$refs.editor.editor.setData(editor.getData());
- space.vue.$data.height = $("#space-content").height() - 41 + 'px';
- }
- function layReady(layIndex) {
- var readAllEle = document.createElement("i");
- readAllEle.className = 'spaceicon icon-exit_full lay-window-icon';
- readAllEle.title = "退出全屏";
- readAllEle.style = "right: 0px";
- readAllEle.onclick = function() {
- window.callback(space.vue.$refs.editor.editor.getData(), function() {
- space.allFunction.closeDialog();
- });
- }
- var layTitleEle = top.$("#layui-layer" + layIndex);
- layTitleEle.append(readAllEle);
- layTitleEle.find("span.layui-layer-setwin").remove();
- }
-
- </script>
- </html>
|