azurelunatic: Bra-clad woman, "Tits against the RTE"  (tits against the rte)
Azure Jane Lunatic (Azz) 🌺 ([personal profile] azurelunatic) wrote in [site community profile] dw_suggestions2009-11-16 12:49 pm

RTE handling pasted usernames

Title:
RTE handling pasted usernames

Area:
entry editor: RTE, entries, site-specific markup, kill it with fire

Summary:
Make the godsforsaken RTE handle pasted usernames as the user tag, not the HTML that we have to spit out in order to display the username.

Description:
As we know, Bob, the Rich Text Editor can take pastes of preformatted text, and (mostly) handle it without losing its cool, retaining text formatting, links, and even images.

The RTE is charmingly literal when one copies and pastes texts with usernames: it faithfully copies the HTML that the back-end converts the username into in order that it might display in your browser, and yours, and yours, and yours.

It would be ever-so-nifty if the RTE were trained to recognize the HTML that DW uses to encode usernames, extract the username from it, and replace that chunk of HTML when pasted in as rich text, with the actual <user name="whatever">.

Potential drawbacks:
Sometimes I, being lazy and not liking to view source if I don't have to, will copy a chunk of text and stuff it in the RTE, then switch over to HTML mode, in order to neatly and ... actually not so quickly ... capture the source. In the unlikely case that someone was trying to do this to grab the source for the HTML output for a username, this change would break that. (However, as one can still view source, and there are "link to elsewhere" codes on every profile, I am inclined to feel this is not a huge disadvantage.)

Poll #1722 RTE handling pasted usernames
Open to: Registered Users, detailed results viewable to: All, participants: 24


This suggestion:

View Answers

Should be implemented as-is.
15 (62.5%)

Should be implemented with changes. (please comment)
0 (0.0%)

Shouldn't be implemented.
0 (0.0%)

(I have no opinion)
9 (37.5%)

(Other: please comment)
0 (0.0%)

zvi: self-portrait: short, fat, black dyke in bunny slippers (Default)

[personal profile] zvi 2009-11-16 11:39 pm (UTC)(link)
Query: what should the RTE do if the user tag is being pasted from a dw/lj clone, instead of dw?
triadruid: Apollo and the Raven, c. 480 BC , Pistoxenus Painter  (Default)

[personal profile] triadruid 2009-11-19 03:39 pm (UTC)(link)
A thousand times yes! This is one of the weirdest of the legion of weird behaviors in the RTE.