Invision Community 4: SEO, prepare for v5 and dormant account notifications Matt November 11, 2024Nov 11
Posted April 17, 20168 yr It would be really useful if, in addition to the current paste options of "Keep formatting, but allow user to remove formatting" and "Remove formatting and do not allow user to restore", you added a third option: "Remove formatting, but allow user to restore". By default, their content would paste as plain text, but they would get the banner allowing them to add the formatting back if they want. Too many users ignore or don't notice the formatting banner, and that causes loads of issues with the night theme, where black text is unreadable.
July 1, 20168 yr +1 A lot of a users paste text with some background and ignore the option to remove it, so by default be plain text allowing restore formatting would be great.
August 2, 20168 yr This is something I wish would be an option as well. Generally I find that in most cases people don't actually want the formatting to be in place either way.
August 13, 20168 yr Author @Lindy was this marked as not planned for technical reasons, or because you don't like the idea? Because this topic appears to have been received quite well, and I can think of a fairly straight forward method to implement what I suggested (just use your current code, but remember the HTML version and strip the tags and insert the plain text version), as well as an incredibly easy method to get a similar effect (use CKEditor's built in semantic markup only paste mode, which is the best of both words - it keeps the relevant formatting, while removing the styles that are almost always undesirable, such as the foreground and background colours added by Chrome.
August 13, 20168 yr I would rather have this than the other options. Most forum users paste their junk formatting and don't remove it, for some annoying reason. Very seldom will users actually want to keep their formatting.
August 14, 20168 yr 2 hours ago, Colonel_mortis said: @Lindy was this marked as not planned for technical reasons, or because you don't like the idea? Because this topic appears to have been received quite well, and I can think of a fairly straight forward method to implement what I suggested (just use your current code, but remember the HTML version and strip the tags and insert the plain text version), as well as an incredibly easy method to get a similar effect (use CKEditor's built in semantic markup only paste mode, which is the best of both words - it keeps the relevant formatting, while removing the styles that are almost always undesirable, such as the foreground and background colours added by Chrome. I don't get how you could undo deletion of the formatting after you've already tossed it.
August 14, 20168 yr Author 17 hours ago, CheersnGears said: I don't get how you could undo deletion of the formatting after you've already tossed it. The same way it removes formatting when you click the button at the moment - store the rich version in a JS variable, and insert the plain or semantic version into the page, then if they click the button you just revert the editor to how it was before the paste, and insert the rich version, rather than the plain version as it does now.
Archived
This topic is now archived and is closed to further replies.