Frustrated with the inability of the editor to do a proper carraige return/line feed instead of a new paragraph when I pressed the enter key, I wrote the following function.
It just adds an additional button to the menubar that inserts the CR, it still does not make the Enter key do a CR.
All it does is insert a <br> tag at the cursor point.
In the fckeditor.custom.js file add the following:
// custom Toolbar items
TBI.prototype.InsertCR = new TBButton("CR" , "Insert a CR" , "insertCR()" , TBCMD_CUSTOM) ;
// custom functions
function insertCR()
{
insertHtml("<BR>") ;
objContent.focus() ;
}
Then just add an icon image called button.CR.gif to the folder /images/toolbar directory.
Then when you want to do a CR just click the button.
I hope this helps other frustrated users. ( Of course you could always press SHIFT ENTER but how many users of the editor will actually know that !)
It just adds an additional button to the menubar that inserts the CR, it still does not make the Enter key do a CR.
All it does is insert a <br> tag at the cursor point.
In the fckeditor.custom.js file add the following:
// custom Toolbar items
TBI.prototype.InsertCR = new TBButton("CR" , "Insert a CR" , "insertCR()" , TBCMD_CUSTOM) ;
// custom functions
function insertCR()
{
insertHtml("<BR>") ;
objContent.focus() ;
}
Then just add an icon image called button.CR.gif to the folder /images/toolbar directory.
Then when you want to do a CR just click the button.
I hope this helps other frustrated users. ( Of course you could always press SHIFT ENTER but how many users of the editor will actually know that !)
RE: Add a proper CR instead of <P>
RE: Add a proper CR instead of <P>
Not very useful unfortunately.