مدیاویکی:Common.css: تفاوت میان نسخه‌ها

۵۱۸ بایت اضافه‌شده ،  ‏۱۷ اکتبر ۲۰۲۱
بدون خلاصۀ ویرایش
بدون خلاصۀ ویرایش
بدون خلاصۀ ویرایش
خط ۵۷: خط ۵۷:
     color: #000;
     color: #000;
}
}
// Turn <span class="mw-charinsert">foo</span> into a link that inserts "foo"
// into the edit box:
$( function () {
    $('span.mw-charinsert').wrap( '<a href="#">' ).click( function () {
        var text = this.title || this.textContent;
        var parts = text.split( '+' );
        if ( text === '+' ) parts = [ text ];
        var front = decodeURIComponent( parts[0] || '' );
        var back  = decodeURIComponent( parts[1] || '' );
        insertTags( front, back, '' );
        return false;
    } );
} );