You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 20, 2019. It is now read-only.
I'm writing a very basic WYSIWYG rich editor using contenteditable attribute of a div but experiencing issues with document.execCommand and executing the command insertunorderedlist. If you select and highlight the text you want to insert an unordered list and click insert button then it either fails to work correctly using Chrome (latest version) or if using Safari (latest version High Sierra), just hangs. If you try this outside of webcomponents / Polymer (plain old html and javascript) it works fine. Here's the code:
Description
I'm writing a very basic WYSIWYG rich editor using
contenteditableattribute of adivbut experiencing issues withdocument.execCommandand executing the commandinsertunorderedlist. If you select and highlight the text you want to insert an unordered list and click insert button then it either fails to work correctly using Chrome (latest version) or if using Safari (latest version High Sierra), just hangs. If you try this outside of webcomponents / Polymer (plain old html and javascript) it works fine. Here's the code:Steps to Reproduce
Select and highlight Bullet One, Bullet Two, and Bullet Three text and click on insert button using Safari or other browser.
Expected Results
html Unordered list.
Actual Results
Hangs, or does not behave correctly.
Browsers Affected
Versions