hi, i want to add a custom button which give a custom output . . .
example (geshi syntaxhighliter) :
<pre lang="cpp"></pre>
i've discover that i need to start from buttonbar.js file . . . but i'm a bit stranger javascript programming . . . can anybody help me ??
Answers
if you are not a stranger to php and you understand case statements. You could start by cloning the easy ones in javascript like bold and change it to em>. Then create an image for for it and progress from there. if you get that working, move on to cloning the code multiline button and try your geisha.
factoid: Most questions have been previously answered, try the search box first, please provide your Vanilla version Number!
Peregrine's Addons - donations gladly accepted for "successful solutions" and addons - kind of like tipping a waiter at a restaurant
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •well, i've done that by cloning the script inside buttonbar.js file . . . but it just create
<pre></pre>. . . and when i includelang="cpp"it make<pre lang="cpp"></pre lang="cpp">. . . thats the problem . . .- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •$(TextArea).insertRoundTag('pre', htmlOpts, {lang:'cpp'});- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •