Když jsem si četl příspěvek 81-image, kde se píše o zlepšení podpory práce s obrázky, řekl jsem si, že bych si mohl upravit celé ovládací menu pro práci s textem.
Takže .. stačí upravit příslušné pasáže souboru edit.js, který je umístěn v adresáři /admin/javascript:
function boldThis() { insertAroundCaret('**','**'); }
function italicThis() { insertAroundCaret('*','*'); }
function leftThis() { insertAroundCaret('\n/---div .[leftbox]\n','\n\\---'); }
function rightThis() { insertAroundCaret('\n/---div .[rightbox]\n','\n\\---'); }
function alignleftThis() { insertAroundCaret('\n/---div .<\n','\n\\---'); }
function alignrightThis() { insertAroundCaret('\n/---div .>\n','\n\\---'); }
function aligncenterThis() { insertAroundCaret('\n/---div .<>\n','\n\\---'); }
function ahrefThis() {
var strSelection = typeof document.selection != 'undefined' ? document.selection.createRange().text : '';
var strHref = prompt("Create a link to:","http://");
if (strHref == null) return;
var textpre = "\":" + strHref;
insertAroundCaret("\"", textpre);
}
Snad se to někomu bude hodit .. d8-D
Offline
Reklama: Školení PHP | Magento