I'm using TinyMce editor (4.1.0) in my react project, and I am struggling with a problem: when I paste some url copied in the clipboard, the editor replaces the url I want to paste with the title of the page of the url. How can I solve this? I managed to paste the url as plain text, but I want the text to be the url itself.
I'm guessing you're using version 4.1.0 of the Tinymce-react integration, and not version 4.1.0 of the editor, which is an older edition now.
This sounds like the Enhanced Media Embed plugin replacing your URL with a card-styled embed when you paste it.
To clarify, do you find the URL changes to the title of the page after you paste and hit the enter key? Or is it automatic?
I tested out a copy and paste of a URL using a TinyMCE-react sandbox from a blog post on TinyMCE and react. Adding the Enhanced Media Embed plugin and pasting a URL created a preview URL. Turning it off, and pressing enter after pasting, kept the URL format.
I added the autolink plugin to turn the plain text URLs into a link after pasting and pressing enter.
The sandbox init:
init={{
plugins: "autolink link",
icons: "jam",
skin: "fabric",
content_css: "document",
resize: false
}}