GetmeUK / ContentTools

A JS library for building WYSIWYG editors for HTML content.
http://getcontenttools.com
MIT License
3.97k stars 399 forks source link

Copy and pasting a link doesn't paste the link #81

Closed bfintal closed 8 years ago

anthonyjb commented 8 years ago

Hi @bfintal can you explain the issue further please - ContentTools doesn't support Copy/Paste of HTML by default, it only provides plain/text C&P.

bfintal commented 8 years ago

To replicate, just create a link, then highlight it or the whole paragraph then paste it. The link (as well as other formatting such as bold) get removed. Is this the intended behavior?

anthonyjb commented 8 years ago

Ah I see what you mean, yes currently if you paste content it is plain text so if you don't paste inside the bounds of a formatted area the formatting will be lost. I think if you paste outside of the bounds this is the correct behaviour, but agree if you paste at the bounds then we should look at applying the existing format to the pasted code (e.g as if we'd pasted with it).