X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/421fbd31647ecb40540f767b1d506e0843dfc3a9..5ef8e304790026b27417d8ff3c76c18858ba708f:/redakcja/static/js/wiki/view_editor_wysiwyg.js diff --git a/redakcja/static/js/wiki/view_editor_wysiwyg.js b/redakcja/static/js/wiki/view_editor_wysiwyg.js index d5fa29dd..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){ @@ -392,7 +398,7 @@ var msg = $("

Twoje zmiany zostały naniesione na tekst źródłowy. Pamiętaj, że aby zmiany zostały utrwalone należy je zapisać!

Ta wiadomość zostanie automatycznie zamknięta za 6 sekund.

"); $("#base").prepend(msg); - $("#save-button").css({border: '5px solid red'}); + $("#save-button").css({border: '2px solid #801000', backgroundColor: '#E1C1C1'}); $('#base .saveNotify').fadeOut(7000, function(){ $(this).remove(); $("#save-button").css({border: '1px solid black'});