[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
gchick.
Files modified:
http://bugs.dwscoalition.org/show_bug.cgi?id=1742
Rewrite RTE logic to avoid extra space.
Codemerge from LJ; patch prepared by
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> ');
+ data.ljuser = data.ljuser.replace(/<\/span>/,'</div>');
FCK.InsertHtml(data.ljuser);
+ FCK.InsertHtml(' ')
if (selection != '') FCKSelection.Collapse();
FCK.Focus();
}
--------------------------------------------------------------------------------

no subject
*is 12*
no subject