From: Radek Czajka Date: Mon, 15 Nov 2010 13:18:54 +0000 (+0100) Subject: fixes #940 X-Git-Url: https://git.mdrn.pl/redakcja.git/commitdiff_plain/613c90833cd963f769500b79b59e9986bc8970ad fixes #940 --- diff --git a/redakcja/static/js/wiki/view_editor_wysiwyg.js b/redakcja/static/js/wiki/view_editor_wysiwyg.js index 92397b02..4e0bdee8 100644 --- a/redakcja/static/js/wiki/view_editor_wysiwyg.js +++ b/redakcja/static/js/wiki/view_editor_wysiwyg.js @@ -381,7 +381,13 @@ xml2html({ xml: '<' + nodeName + '>' + insertedText + '', success: function(element){ - $origin.html($(element).html()); + if (nodeName == 'out-of-flow-text') { + $(element).children().insertAfter($origin); + $origin.remove() + } + else { + $origin.html($(element).html()); + } $overlay.remove(); }, error: function(text){ diff --git a/redakcja/static/xsl/wl2html_client.xsl b/redakcja/static/xsl/wl2html_client.xsl index 4414b0aa..1739f629 100644 --- a/redakcja/static/xsl/wl2html_client.xsl +++ b/redakcja/static/xsl/wl2html_client.xsl @@ -753,14 +753,16 @@ - - - - - - + + + + + + +