From 613c90833cd963f769500b79b59e9986bc8970ad Mon Sep 17 00:00:00 2001 From: Radek Czajka Date: Mon, 15 Nov 2010 14:18:54 +0100 Subject: [PATCH] fixes #940 --- redakcja/static/js/wiki/view_editor_wysiwyg.js | 8 +++++++- redakcja/static/xsl/wl2html_client.xsl | 16 +++++++++------- 2 files changed, 16 insertions(+), 8 deletions(-) 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 @@ - - - - - - + + + + + + + -- 2.20.1