X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/6655e0be8684f27c4475154b3c4ced64839cba0d..f3ad190e972476589cc8aeb7e67ed24d091ce6c0:/src/redakcja/static/js/wiki/view_editor_wysiwyg.js
diff --git a/src/redakcja/static/js/wiki/view_editor_wysiwyg.js b/src/redakcja/static/js/wiki/view_editor_wysiwyg.js
index c5fa8c13..bc498ce1 100644
--- a/src/redakcja/static/js/wiki/view_editor_wysiwyg.js
+++ b/src/redakcja/static/js/wiki/view_editor_wysiwyg.js
@@ -110,7 +110,7 @@
success: function(text){
var t = $(text);
tag.replaceWith(t);
- openForEdit(t);
+ openForEdit(t, trim=false);
},
error: function(){
tag.remove();
@@ -405,7 +405,7 @@
}
/* open edition window for selected fragment */
- function openForEdit($origin){
+ function openForEdit($origin, trim=true){
var $box = null
// annotations overlay their sub box - not their own box //
@@ -441,7 +441,7 @@
}
// start edition on this node
- var $overlay = $('