fnp
/
redakcja.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
use proper commit id
[redakcja.git]
/
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
92397b0
..
4e0bdee
100644
(file)
--- 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 + '</' + nodeName + '>',
success: function(element){
xml2html({
xml: '<' + nodeName + '>' + insertedText + '</' + nodeName + '>',
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){
$overlay.remove();
},
error: function(text){