-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Uncaught TypeError: Cannot read property 'classList' of null #837
Comments
This is beacuse a form can not can have another form as child.
fileTypeSection will be null if used in form.
maybe change |
@ybhwang First, the cause is what @NateScarlet said. The editor uses a <form>
<div id="editor">
...
<form enctype="multipart/form-data" class="te-file-type">
...
</form>
...
</div>
</form> But the W3C spec says, you shouldn't use form tags overlapping. The editor should not remove a
Is there any reason you should write like this? |
@ybhwang And I have confirmed an error when using language files in the CDN of the jQuery wrapper. I will register and handle this issue separately. |
I think submit markdown data with form is a common usecase. |
That's because |
@ybhwang Have you ever used const $editor = $('#editor');
// create instance
$editor.toastuiEditor({
// ...
});
// call instance methods
const markdown = $editor.toastuiEditor('getMarkdown');
const html = $editor.toastuiEditor('getHtml');
console.log(markdown);
console.log(html); |
Hi, I have the same issue when I put the editor inside a modal with a form. But I do not use the jquery wrapper version. And I'm even not interested to use the image tool, but it seems we cannot deactivate it. How can we handle this problem ? |
Thanks for your answer. I would like to add 2 points:
|
I am embedding the editor in wicket forms, which worked well with v1.4.10 and breaks in v2 due to the form tag. Moving the editor out of the forms is not easy (if possible at all) and makes the editor less versatile to use. |
@ybhwang @HisDudedness @NateScarlet |
Great news! Thanks! |
Thnx for fixing, looking forward for the release! Because this error happened to me when using react wrapper |
Thank you ! Do you havea release date for this fix ? |
@mieszko4 - I am facing the same issue in react wrapper. Can you let me know how you resolved this issue? Has this fix been released? Or any workaround suggested? |
@gowda-nirmal #890 is merged but looks like it is not released yet (https://github.com/nhn/tui.editor/releases) |
@YBAZAN @gowda-nirmal @mieszko4 The npm release will be done later this month. |
I face the same issue, too. |
@seonim-ryu Any updates on when this release is for React? |
@landall @Yash-GitB The 2.1.0 version has been released and the wrappers have also been updated with the Editor. So I'll close this issue. If you have any problems, please register a new issue. :) |
Change OL, UL, TASK with multi line selection
Describe the bug
A clear and concise description of what the bug is.
Uncaught TypeError: Cannot read property 'classList' of null
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Device Information -> SKIP
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: