Hi:
I'm digging through the code trying to figure out how to:
When you click on a button (say the Bold button), instead of inserting <span style='font-weight: bold'>some text here</span> I want it to appear as <span class='bold'>some text here</span>
Is this easily accomplished? What file can I edit to change this?
TIA!
I'm digging through the code trying to figure out how to:
When you click on a button (say the Bold button), instead of inserting <span style='font-weight: bold'>some text here</span> I want it to appear as <span class='bold'>some text here</span>
Is this easily accomplished? What file can I edit to change this?
TIA!

RE: Custom span classes on buttons
RE: Custom span classes on buttons
The styles combo is for editing the appearance of the buttons, right?
What I'm trying to do is edit the action after a button is clicked. E.G. if you click on the bold button it inserts into the text box <div class='some_class'> some text </div>
Is my only option to do plugins or is there some file to edit to change the behavior?
RE: Custom span classes on buttons
using it you can find easily that it changes the current selection not the toolbars.
As I said it's the browser the one that inserts <span style="font-weight:bold"> (that code is only inserted by firefox when the settings are GeckoUseSPAN=true)
RE: Custom span classes on buttons
It seems (after further reading) that the styles combo can be applied from the "Style" dropdown box, but not from a button. Am I mis-understanding the docs?
To reiterate, what I want to do is change the attributes when a button is clicked on ... the dropdown box isn't what I'm looking for.