Hi all
I'm very new to CKEditor, and also quite new to JavaScript. I wanted to ask whether it's possible to change the output of the HR button?
Instead of
<hr />
I'd like the output to be something quite different, maybe
this is a string and a <div>tag</div> and some more stuff
Is this possible somehow? Thanks a lot.
Josh
I'm very new to CKEditor, and also quite new to JavaScript. I wanted to ask whether it's possible to change the output of the HR button?
Instead of
<hr />
I'd like the output to be something quite different, maybe
this is a string and a <div>tag</div> and some more stuff
Is this possible somehow? Thanks a lot.
Josh

Re: Change the output of HR?
var horizontalruleCmd = { exec : function( editor ) { editor.insertElement( editor.document.createElement( 'hr' ) ); } };to
var hon_variableCmd = { exec : function( editor ) { editor.insertText( 'my text goes here' ); } };