knighty / fimfiction-issues

Fimfiction Issue Tracker
27 stars 1 forks source link

Don't automatically insert bbcode around url's copied from the browsers url bar #355

Open sweetaibelle opened 5 years ago

sweetaibelle commented 5 years ago

Pretty much what it says. I keep copying the urls of youtube videos from the url bar in Chrone, pasting them in between embed tags, and having them automatically be inserted like this, which doesn't work in an embed tag:

[url=https://www.youtube.com/watch?v=dQw4w9WgXcQ]https://www.youtube.com/watch?v=dQw4w9WgXcQ[/url]

I could turn off rich text pasting, but I'd like it to act smarter. And it's a pain trying to remember to hit share, then copy...

SomewhatDamaged commented 5 years ago

That's your browser's fault. Chrome has started doing rich text copy by default on the URL bar. Fimfic doesn't know what is the source of a paste, so if you have rich text paste on in fimfic it will convert the already built link (courtesy of Chrome) into a url bbcode.

sweetaibelle commented 5 years ago

I did find that out after putting this in. It would still be nice if pasting would be more context sensitive. For example, don't rich paste if the cursor is right after [url= , or in the middle of bbcode that it wouldn't make sense to rich paste into. Maybe translate youtube urls to embed tags instead of [url] tags, and do the same for fanfic or group links, while we're at it.