for my friend who can't work well with html-code I want to produce two new buttons for the htmlarea editor. Then he should be able to set subheadlines in the text easilier.
I looked for hints how I can include new editor buttons. I found this:
http://www.klapheck.net/Hilfe/?Gesamter_Inhalt
I didn't come to terms with it till the end. What I did:
1. Produced the icons in photoshop and saved in folder htmlarea > images as gif
2. I inserted in file de.php in folder languages (folder cmsimple) these two lines:
Code: Select all
["h5","Überschrift 5","Formatiere den markierten Absatz oder die markierten Absätze als Überschrift 5"],
["h6","Überschrift 6","Formatiere den markierten Absatz oder die markierten Absätze als Überschrift 6"],
3. I inserted in htmlarea.php (folder cmsimple) this after the h4-line:
Code: Select all
config.registerButton("h5","H5",icondir+"ed_h5.gif",false,function(e){e.execCommand("formatblock",false,"<h5>")});
config.registerButton("h6","H6",icondir+"ed_h6.gif",false,function(e){e.execCommand("formatblock",false,"<h6>")});
My changes were not successful. Something seems to miss.
Can you help me?
A lot of evening greetings
simmyne