MediaWiki:Gadget-charinsert.js: Verskil tussen weergawes

Content deleted Content added
No edit summary
Maintenance: mw:RL/MGU / mw:RL/JD - skins-1.5 is deprecated
Lyn 202:
return;
}
// insertTags from the site-wide /w/skins-1.5/common/edit.js is deprecated inserts in the first
// textarea in the document. Evidently, that's not good if we have multiple textareas.
// My first idea was to simply add a hidden textarea as the first one, and redefine
Lyn 264:
 
/* Usability initiative compatibility */
if ( typeof $j != 'undefined' && typeof $j.fn.textSelection != 'undefined' ) {
$j( txtarea ).textSelection(
'encapsulateSelection',
{ 'pre': tagOpen, 'peri': sampleText, 'post': tagClose }