![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
![[site community profile]](https://www.dreamwidth.org/img/comm_staff.png)
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.)
This suggestion:
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%)
no subject
no subject
no subject