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
Browser #275
Comments
Place the html output from editor within a div and add class:
|
Thank you, but unfortunately I do not see mathematical formulas. |
Hi |
Yes, in SunEditor I want to prepare texts including math formulas and then display it without an editor. |
Yup, import katex from 'katex'
const editor = suneditor.create('id', {
buttonList: [['math']],
katex: katex
})
editor.core.context.element.wysiwyg.removeAttribute('contenteditable') |
Thank you, but I need to hide everything from the editor. Buttons, header and footer. |
Ok, Use it like this. const editor = suneditor.create("id", {
resizingBar: false,
katex: katex
})
editor.toolbar.hide(); |
Thank you for your quick help. I have one more problem, when I start the editor I see "undefined" and I don't see "placeholder" |
Can I see your code? |
When the editor is started, the text "undefined" is displayed in the editor.
|
Remove this code <!-- KaTeX -->
<script src="https://cdn.jsdelivr.net/npm/katex@0.11.1/dist/katex.min.js"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.11.1/dist/katex.min.css"> |
It is still the same. The editor starts correctly, works correctly, but it contains the word "undefined", which I can delete. |
Where is the "undefined" character included? |
Are you using "placeholder" option? |
|
The constructor element of suneditor is "textarea".
Please see here: getting-started |
Thank you. |
Hello,
How do i have to proceed? I need to view only SunEditor content, including "katex".
I need the user to see the content, not edit it and not see the editor control.
Thank you.
The text was updated successfully, but these errors were encountered: