Fix issue with RTE + user tags, by adding a space after the user tag in
the same step as you add the user tag (otherwise, the RTE HTML parser gets
confused, and insists on still putting the space/any further text inside one of
the outer layers of the user tag)
Patch by LiveJournal, packaged for Dreamwidth by <user name='fu'>.
diffs (21 lines):
diff -r efdabfbecf0c -r 516346bc07fe
htdocs/stc/fck/editor/plugins/livejournal/fckplugin.js
--- a/htdocs/stc/fck/editor/plugins/livejournal/fckplugin.js Wed Apr 21
21:41:53 2010 -0500
+++ b/htdocs/stc/fck/editor/plugins/livejournal/fckplugin.js Thu Apr 22
03:17:04 2010 -0700
@@ -63,15 +63,13 @@ LJUserCommand.Execute=function() {
data.ljuser = data.ljuser.replace(/<\/span>/,'</div>');
UserTagCache[username + "_" + site] = data.ljuser;
- FCK.InsertHtml(data.ljuser);
- FCK.InsertHtml(' ')
+ FCK.InsertHtml(data.ljuser + " ");
if (selection != '') FCKSelection.Collapse();
FCK.Focus();
}
if ( UserTagCache[postData.username+"_"+postData.site] ) {
- FCK.InsertHtml(UserTagCache[postData.username+"_"+postData.site]);
- FCK.InsertHtml(' ')
+ FCK.InsertHtml(UserTagCache[postData.username+"_"+postData.site] +
" ");
if (selection != '') FCKSelection.Collapse();
FCK.Focus();
} else {
_______________________________________________
dw-changelog mailing list
[email protected]
http://lists.dwscoalition.org/mailman/listinfo/dw-changelog