Content deleted Content added
Maintenance: Remove use of deprecated wgEnableAPI (always true) - mw:RL/MGU |
Maintenance: `Error: Another textSelection API was already registered |
||
Line 3,832:
// allow other code to cause us to update the textarea via textSelection( 'getContents' )
$( '#wpTextbox1' ).textSelection(
'register',
▲ {
{
getContents: function () { if ( wikEd && wikEd.useWikEd ) {
wikEd.UpdateTextarea();
}
return $( this ).val();▼
}
▲ return $( this ).val();
}
} catch ( e ) {
);▼
// catch `Error: Another textSelection API was already registered`
// When something else is registered should it unregister the existing one?
// Or should it detect this earlier and not run at all?
}
|