Quicktag enhancements
git-svn-id: https://develop.svn.wordpress.org/trunk@2476 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
e3aa5de539
commit
3a0af0fb6a
@ -36,7 +36,7 @@ var datetime = now.getFullYear() + '-' +
|
|||||||
|
|
||||||
edButtons[edButtons.length] =
|
edButtons[edButtons.length] =
|
||||||
new edButton('ed_strong'
|
new edButton('ed_strong'
|
||||||
,'str'
|
,'b'
|
||||||
,'<strong>'
|
,'<strong>'
|
||||||
,'</strong>'
|
,'</strong>'
|
||||||
,'b'
|
,'b'
|
||||||
@ -44,7 +44,7 @@ new edButton('ed_strong'
|
|||||||
|
|
||||||
edButtons[edButtons.length] =
|
edButtons[edButtons.length] =
|
||||||
new edButton('ed_em'
|
new edButton('ed_em'
|
||||||
,'em'
|
,'i'
|
||||||
,'<em>'
|
,'<em>'
|
||||||
,'</em>'
|
,'</em>'
|
||||||
,'i'
|
,'i'
|
||||||
@ -61,8 +61,8 @@ new edButton('ed_link'
|
|||||||
edButtons[edButtons.length] =
|
edButtons[edButtons.length] =
|
||||||
new edButton('ed_block'
|
new edButton('ed_block'
|
||||||
,'b-quote'
|
,'b-quote'
|
||||||
,'<blockquote>'
|
,'\n\n<blockquote>'
|
||||||
,'</blockquote>'
|
,'</blockquote>\n\n'
|
||||||
,'q'
|
,'q'
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -132,7 +132,7 @@ new edButton('ed_more'
|
|||||||
,'t'
|
,'t'
|
||||||
,-1
|
,-1
|
||||||
);
|
);
|
||||||
|
/*
|
||||||
edButtons[edButtons.length] =
|
edButtons[edButtons.length] =
|
||||||
new edButton('ed_next'
|
new edButton('ed_next'
|
||||||
,'page'
|
,'page'
|
||||||
@ -141,7 +141,7 @@ new edButton('ed_next'
|
|||||||
,'p'
|
,'p'
|
||||||
,-1
|
,-1
|
||||||
);
|
);
|
||||||
|
*/
|
||||||
function edLink() {
|
function edLink() {
|
||||||
this.display = '';
|
this.display = '';
|
||||||
this.URL = '';
|
this.URL = '';
|
||||||
@ -252,7 +252,7 @@ function edSpell(myField) {
|
|||||||
word = prompt('Enter a word to look up:', '');
|
word = prompt('Enter a word to look up:', '');
|
||||||
}
|
}
|
||||||
if (word != '') {
|
if (word != '') {
|
||||||
window.open('http://dictionary.reference.com/search?q=' + escape(word));
|
window.open('http://www.answers.com/' + escape(word));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -261,7 +261,7 @@ function edToolbar() {
|
|||||||
for (i = 0; i < edButtons.length; i++) {
|
for (i = 0; i < edButtons.length; i++) {
|
||||||
edShowButton(edButtons[i], i);
|
edShowButton(edButtons[i], i);
|
||||||
}
|
}
|
||||||
document.write('<input type="button" id="ed_spell" class="ed_button" onclick="edSpell(edCanvas);" title="Dictionary lookup" value="Dict." />');
|
document.write('<input type="button" id="ed_spell" class="ed_button" onclick="edSpell(edCanvas);" title="Dictionary lookup" value="lookup" />');
|
||||||
document.write('<input type="button" id="ed_close" class="ed_button" onclick="edCloseAllTags();" title="Close all open tags" value="Close Tags" />');
|
document.write('<input type="button" id="ed_close" class="ed_button" onclick="edCloseAllTags();" title="Close all open tags" value="Close Tags" />');
|
||||||
// edShowLinks(); // disabled by default
|
// edShowLinks(); // disabled by default
|
||||||
document.write('</div>');
|
document.write('</div>');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user