Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

默认全窗口预览的问题 #994

Open
bingshuang2014 opened this issue Aug 7, 2023 · 2 comments
Open

默认全窗口预览的问题 #994

bingshuang2014 opened this issue Aug 7, 2023 · 2 comments

Comments

@bingshuang2014
Copy link

您好,页面打开默认显示的是左右分栏的,
如果想打开界面就是全窗口预览html,应该如何做。
我看点击后i的class从fa fa-desktop变成了fa fa-desktop active,试过一些方法没能实现。

@yuri2peter
Copy link

主动调用 previewing 即可。

const editor = editormd('#my-editor', {
  ...
  onload:() => {
    editor.previewing();
  }
})

@bingshuang2014
Copy link
Author

主动调用 previewing 即可。

const editor = editormd('#my-editor', {
  ...
  onload:() => {
    editor.previewing();
  }
})

cool,成功了,当时也考虑了onload,但是里面的没搞对,没成功,这么一点拨醍醐灌顶亚。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants