Rewrite RTE logic to avoid extra space.
Codemerge from LJ; patch prepared by <user name=gchick>.
diffs (14 lines):
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();
}
_______________________________________________
dw-changelog mailing list
[email protected]
http://lists.dwscoalition.org/mailman/listinfo/dw-changelog