tinymce-react icon indicating copy to clipboard operation
tinymce-react copied to clipboard

Can't paste links into Selected Text Range in the Controlled Tinymce

Open runningincircle opened this issue 1 year ago • 0 comments

What is the current behavior?

When pasting a link (eg, https://tinymce.github.io/tinymce-react/?path=/story/editor--controlled-input) in the selected text in the Controlled Tinymce Component - the selected text is removed completely. Cmd/ctrl+z restores the link with text though.

You can check here https://tinymce.github.io/tinymce-react/?path=/story/editor--controlled-input

What is the expected behavior?

The text must not be removed and look like the <a href="https://tinymce.github.io/tinymce-react/?path=/story/editor--controlled-input" target="_blank">text</a>

Which versions of TinyMCE, and which browser / OS are affected by this issue? Did this work in previous versions of TinyMCE or tinymce-react?

Windows 11, Mac OS. Chrome 132 - Confirmed. Also doesn't work in TinyMCE 6 with tinymce-react 3.13.x

runningincircle avatar Feb 24 '25 11:02 runningincircle