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

Format issues if only a single word is typed (Edge browser) #388

Closed
G-S2h opened this issue Jun 4, 2020 · 2 comments
Closed

Format issues if only a single word is typed (Edge browser) #388

G-S2h opened this issue Jun 4, 2020 · 2 comments
Labels
Milestone

Comments

@G-S2h
Copy link

G-S2h commented Jun 4, 2020

hi, and thank you for your great WYSIWYG,

There is a bug with Edge browser where format actions (such as bold) result in an Unable to get property 'textContent' of undefined or null reference if one tries to format the word he has just typed.
SunEditor_bug_bold-just-typed-word
Steps to reproduce:

  1. Make sure all SunEditor textarea is empty;
  2. Type a word; select this word and apply some basic format (bold e.g.) to it.

If you do not type anything and first click a format option, it will break a new formated line in textarea, but (plus) it may lead to a new bug.
SunEditor_bug_bold-before-anything
Steps to reproduce:

  1. Make sure all SunEditor textarea is empty;
  2. Click on Bold (cursor should move below) then type a first word;
  3. Click back to Bold, hit and space a type another word;
  4. Select that second word and click on Italic.

But it works with keyboard shortcuts

However I have noticed that everything works well if you use keyboard shortcuts, even if the error logs in console (Unable to get property 'textContent' of undefined or null reference).

@JiHong88
Copy link
Owner

JiHong88 commented Jun 5, 2020

Thanks for your reporting.!

The old version of the edge browser is really hard.
Even "selection" has different results than IE. :(
I modified it, but it may not be perfect.

I'll notify you know after version update.

@JiHong88 JiHong88 added the bug label Jun 5, 2020
@JiHong88 JiHong88 added this to the 2.30.0 milestone Jun 5, 2020
JiHong88 added a commit that referenced this issue Jun 5, 2020
@JiHong88 JiHong88 closed this as completed Jun 5, 2020
@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.

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

No branches or pull requests

2 participants