Topic on Extension talk:TinyMCE

12.51.231.210 (talkcontribs)

I can copy and paste text with hyperlink, the edit mode look great, but after saving, the hyperlink has <a href" added and it's no longer the hyperlink. For example, if I search ABC from google then copy the link, from edit I will see ABC Home Page - ABC.com and it's clickable, after saving, it shows <a href="and the website" ping="/url?sa=t&source=web&rct=j&url= and the link to the page here, MediaWiki consider this as spam so I have to type this line">ABC Home Page - ABC.com</a>

Is it possible to make copy and paste work? insert one by one will take a long time for multiple links. Thank you!

12.51.231.210 (talkcontribs)

Same issue with email. It adding </ and follow by the email>

12.51.231.210 (talkcontribs)

When I use the hyperlink option, it adds %EF%BB%BF to the end of the link after clicking on the link, that makes the website inaccessible.

12.51.231.210 (talkcontribs)

Also using the hyperlink option for link has underscore, it adding the text after underscore to the link title

DuncanCrane (talkcontribs)

Hi, I think this may be related to the other paste problem you noted below. I've been working on this and think I have it working now, both for the original problem and the one you note above. Rather than just patch things up, I've tried to make things a bit more robust. which is why it's taken a few days. Now all I have to do is remember how to upload this to mediawiki :-(

It always seem to take me a day to get the process in Gerrit working!

Many thanks, Duncan

DuncanCrane (talkcontribs)

I've just done a bit more testing and came across a couple of other strange things with paste/drop so it will be another day or so to get this done, sorry.

DuncanCrane (talkcontribs)

Hi there again.

I've now added a patch to Gerrit that I hope addresses the link problem above and also bugs with the drag/drop cut/paste auto upload of images.

This will need to be reviewed and accepted before it is applied to the 'master' branch but if you need/want it quicker you can download the patch here

https://gerrit.wikimedia.org/r/#/c/mediawiki/extensions/TinyMCE/+/579865/

Do let me know if you've any other comments or suggestions

Kind regards

Duncan

DuncanCrane (talkcontribs)

Hi

This patch has now been merged into the master branch if you'd like to try downloading again.

Kind regards

Duncan