SharePoint / sp-dev-docs

SharePoint & Viva Connections Developer Documentation
https://docs.microsoft.com/en-us/sharepoint/dev/
Creative Commons Attribution 4.0 International
1.23k stars 992 forks source link

[SPFx][roosterjs-react] - The enter key (on keyboard) not work anymore after inserting link #9438

Open rgcircum opened 6 months ago

rgcircum commented 6 months ago

What type of issue is this?

Question

What SharePoint development model, framework, SDK or API is this about?

💥 SharePoint Framework

Target SharePoint environment

SharePoint Online

What browser(s) / client(s) have you tested

Additional environment details

Issue description

I tried to use Rooster JS React in SharePoint with the SPFx Framework.

it's working, but i have a big problem.

On RichText editor, if i add a link, the enter key on keybord do not work anymore (shift+enter working)

After remove link the enter key work

I do not reproduce the bug on codeSandbox or another external solution, the bug occur only in SharePoint.

I don't understand, if you have any idea for debug this, i would be happy :D

repos of my test : https://github.com/rgcircum/spfx-rooster-js-react

@AJIXuMuK : Is it for similar bug if SharePoint uses CKEditor instead of RoosterJS for the RichText SharePoint native webpart?

ghost commented 6 months ago

Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.

Parceti commented 3 months ago

Can confirm the bug at least since SPFx 18.0 with ckeditor 5. After inserting link "enter" doesn't work anymore. After inserting a table "enter" moves focus to the first cell inside the table. Takes place on both site page and the workbench. It doesn't occur in pure React, only in SPFx. Same code used to work in older SPFx (14).

Min repro

rgcircum commented 3 months ago

@Parceti , Thank you for the feedback ! I not alone anymore.

@VesaJuvonen @AJIXuMuK or someone else can help us, the bug has been open since January.

rgcircum commented 1 month ago

@VesaJuvonen @AJIXuMuK or others MS dev, i'm wait response since few month, At least be polite enough to respond.

I also noticed that the ctrl+z / crtl+y key combinations were disabled.

I'm trying to catch events in a "Keydown" eventListener, but if i'm hit "Enter", ctrl+z or ctrl+y, i have no return, nothing. the other keys/combinations work.