更改編輯時的insertLink
使其可以預設是open link in new window
例如例子
pipperl@Server[tmpl/cms]> grep insertLink *
bm_entry.tmpl:function insertLink () {
bm_entry.tmpl: if (event.keyCode == 1) insertLink();
bm_entry.tmpl: document.write(‘<td width=”26″><a href=”javascript:insertLink()”><img src=”<TMPL_VAR NAME=STATIC_URI>images/url-button.gif” alt=”link” width=”26″ height=”18″ border=”0″></a></td>’);
edit_entry.tmpl:function insertLink () {
edit_entry.tmpl: if (event.keyCode == 1) insertLink();
edit_entry.tmpl: document.write(‘<td width=”26″><a href=”javascript:insertLink()”><img src=”<TMPL_VAR NAME=STATIC_URI>images/url-button.gif” alt=”link” width=”26″ height=”18″ border=”0″></a></td>’);
edit_entry.tmpl.orig:function insertLink () {
edit_entry.tmpl.orig: if (event.keyCode == 1) insertLink();
edit_entry.tmpl.orig: document.write(‘<td width=”26″><a href=”javascript:insertLink()”><img src=”<TMPL_VAR NAME=STATIC_URI>images/url-button.gif” alt=”link” width=”26″ height=”18″ border=”0″></a></td>’);