1000510524_edit.jsp 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <html>
  2. <head>
  3. </head>
  4. <body>
  5. <div id="space-content">
  6. <space-editor v-model="describe" :height="height" ref="editor" :isfullscreen="false"></space-editor>
  7. </div>
  8. </body>
  9. <script type="text/javascript">
  10. space.vue = new Vue({
  11. el: space.appContent,
  12. data() {
  13. return {
  14. describe: '',
  15. height: '',
  16. }
  17. }
  18. })
  19. function initEditContent(editor) {
  20. // 进行初始化
  21. space.vue.$refs.editor.editor.setData(editor.getData());
  22. space.vue.$data.height = $("#space-content").height() - 41 + 'px';
  23. }
  24. function layReady(layIndex) {
  25. var readAllEle = document.createElement("i");
  26. readAllEle.className = 'spaceicon icon-exit_full lay-window-icon';
  27. readAllEle.title = "退出全屏";
  28. readAllEle.style = "right: 0px";
  29. readAllEle.onclick = function() {
  30. window.callback(space.vue.$refs.editor.editor.getData(), function() {
  31. space.allFunction.closeDialog();
  32. });
  33. }
  34. var layTitleEle = top.$("#layui-layer" + layIndex);
  35. layTitleEle.append(readAllEle);
  36. layTitleEle.find("span.layui-layer-setwin").remove();
  37. }
  38. </script>
  39. </html>