[SPIP] ~2.1.12 -->2.1.25
[velocampus/web/www.git] / www / extensions / porte_plume / javascript / jquery.markitup_pour_spip.js
index 80464a7..9996482 100644 (file)
                                if (options.nameSpace) {
                                        nameSpace = 'class="'+options.nameSpace+'"';
                                }
+                               currentScrollPosition = $$.scrollTop();
                                $$.wrap('<div '+nameSpace+'></div>');
                                $$.wrap('<div '+id+' class="markItUp"></div>');
                                $$.wrap('<div class="markItUpContainer"></div>');
                                $$.addClass("markItUpEditor");
+                               $$.scrollTop(currentScrollPosition);
 
                                // add the header before the textarea
                                header = $('<div class="markItUpHeader"></div>').insertBefore($$);