Site for researching all meanings of Hebrew Bible.

Changes

Jump to: navigation, search

MediaWiki:Common.js

223 bytes removed, 18:10, 28 October 2011
no edit summary
$(document).ready(function() {
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { 'section': 'main', 'group': 'format', 'tools': { 'hebrew_link': { label: 'Hebrew word with dictionary link', type: 'button', icon: 'http://www.withoutvowels.org/w/images/9/95/Button_hebrew_word.png', action: { type: 'callback', execute: function(ccontext) { alert(c var selection = context.$textarea.textSelection( 'getSelection' ); var word; if(selection) { word = selection; } else { word = prompt("Enter a Hebrew word"); } var reference = "[[Hebrew:"+word+"|"+word+"]]"; context.$textarea.textSelection( 'encapsulateSelection', { replace: true, peri: reference } ); } } } } } );
});

Navigation menu