lexpresso
lexpresso

Reputation: 41

Need to disable TinyMCE default create an anchor tag when pasting a raw URL

I've got TinyMCE installed on frontend of my wordpress website…it's separate from the default Wordpress version, however, I need it to NOT turn raw URLs into anchor tags because it screws up Wordpress's ability to then oEmbed it. I have it installed on a form where users can submit articles in the frontend (not Dashboard). Is there a way to disable this? I thought convert_urls: false would to the job, but it's not meant for that. I've looked for over two hours now and cannot find a suitable answer. Thanks for the help.

Upvotes: 1

Views: 611

Answers (1)

krembo99
krembo99

Reputation: 1479

well, usually it is not such a good practice to include 2 versions of the same script .. at any rate - I do not know specifically about TinyMCE, but you can use str_replace () php function (or preg_replace() ) to repair just about anything (if it is a string ..)

Upvotes: 2

Related Questions