microsoft / roosterjs

roosterjs is a framework-independent javascript rich text editor.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Regression] input \n after typing url will not become link

miku1958 opened this issue · comments

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Go to Demo
  2. input a url like http://www.microsoft.com
  3. input EnterKey

Expected behavior
url become link

Screenshots
Image

Device Information

  • OS: macOS
  • Browser safari
  • Version 18.0.1

Please check out the PR #2837, and it requires enabling an experimental feature HandleEnterKey.

For example:

const editor = new Editor(div, {
  experimentalFeatures: [ 'HandleEnterKey' ],
  ...
});