kareila: (Default)
kareila ([personal profile] kareila) wrote in [site community profile] changelog2009-09-08 01:07 am

[dw-free] Get rid of occasional spurious extra space after username in RTE

[commit: http://hg.dwscoalition.org/dw-free/rev/af4a985f0c05]

http://bugs.dwscoalition.org/show_bug.cgi?id=1742

Rewrite RTE logic to avoid extra space.

Codemerge from LJ; patch prepared by [personal profile] gchick.

Files modified:
  • htdocs/stc/fck/editor/plugins/livejournal/fckplugin.js
--------------------------------------------------------------------------------
diff -r ee6d7200c554 -r af4a985f0c05 htdocs/stc/fck/editor/plugins/livejournal/fckplugin.js
--- a/htdocs/stc/fck/editor/plugins/livejournal/fckplugin.js	Tue Sep 08 00:13:10 2009 +0000
+++ b/htdocs/stc/fck/editor/plugins/livejournal/fckplugin.js	Mon Sep 07 20:07:09 2009 -0500
@@ -62,8 +62,9 @@ LJUserCommand.Execute=function() {
         }
         if (!data.success) return;
         data.ljuser = data.ljuser.replace(/<span.+?class=['"]?ljuser['"]?.+?>/,'<div class="ljuser">');
-        data.ljuser = data.ljuser.replace(/<\/span>/,'</div>&nbsp;');
+        data.ljuser = data.ljuser.replace(/<\/span>/,'</div>');
         FCK.InsertHtml(data.ljuser);
+        FCK.InsertHtml('&nbsp;')
         if (selection != '') FCKSelection.Collapse();
         FCK.Focus();
     }
--------------------------------------------------------------------------------

Post a comment in response:

This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

If you are unable to use this captcha for any reason, please contact us by email at support@dreamwidth.org