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

Remove all tag in table when press "backspace" #393

Closed
tranchem opened this issue Jun 9, 2020 · 14 comments
Closed

Remove all tag in table when press "backspace" #393

tranchem opened this issue Jun 9, 2020 · 14 comments

Comments

@tranchem
Copy link

tranchem commented Jun 9, 2020

[Hi.](url

issue_table.txt

)
I have a template email with many tag table in table. I copy it, paste to "codeview" and come back editor . I choose text "Hello" and "backspace" it, every tag in table disappear.
I think it's a bug. Can you help me?
I'm using option "codeMirror"

@JiHong88
Copy link
Owner

JiHong88 commented Jun 9, 2020

Hi, @tranchem
This issue has been resolved.
I'll nofify you know after the version update at today.

@tranchem
Copy link
Author

tranchem commented Jun 9, 2020

Hi, @tranchem
This issue has been resolved.
I'll nofify you know after the version update at today.

Oh. Thank you so much !

@tranchem
Copy link
Author

tranchem commented Jun 9, 2020

I have a question that may related to this:
I'm using this.editor.core._setCodeView(html); this.editor.core._setCodeDataToEditor(); to append fullpage. Can you show me a better way?

@JiHong88
Copy link
Owner

JiHong88 commented Jun 9, 2020

You can use the functions.insertHTML
this.editor.innerHTML(html, false)

@tranchem
Copy link
Author

tranchem commented Jun 9, 2020

This way remove all tag in my <style></style>

@JiHong88
Copy link
Owner

JiHong88 commented Jun 9, 2020

this.editor.innerHTML(html, true)
This code is don't run cleanHTML

@tranchem
Copy link
Author

tranchem commented Jun 9, 2020

Is this any way to remove dom editor before insertHTML ?

@JiHong88
Copy link
Owner

JiHong88 commented Jun 9, 2020

Is this any way to remove dom editor before insertHTML ?
Sorry, I don't understand what means.
Please tell me in detail.

@tranchem
Copy link
Author

tranchem commented Jun 9, 2020

Sorry. My english is not good
My mean is: insertHTML('') then insertHTML(html, true).
Is this better way?

@JiHong88
Copy link
Owner

JiHong88 commented Jun 9, 2020

What is your want?
HTML string insertion or initial value assignment

@tranchem
Copy link
Author

tranchem commented Jun 9, 2020

I want to initial value

@JiHong88
Copy link
Owner

JiHong88 commented Jun 9, 2020

You can use "setContents" to change the entire contents of the editor.
editor.setContents(html)

You can also put content inside the textarea element.

<textarea>html</textarea>

@JiHong88
Copy link
Owner

JiHong88 commented Jun 9, 2020

The 2.30.0 version has been updated.
If this issue has not been resolved, please reopen this issue.
Thank you.

@JiHong88 JiHong88 closed this as completed Jun 9, 2020
@tranchem
Copy link
Author

It has been resolved. Thank you very much!

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