No Styling
Sorry if this has been asked before.
I want the text entered not to have any styling tags.
By default, I always seem to get my text enclosed within <p> </p> tags
Sorry if this has been asked before.
I want the text entered not to have any styling tags.
By default, I always seem to get my text enclosed within <p> </p> tags
in the webassist/ckeditor/config.js file, change:
CKEDITOR.editorConfig = function( config )
{
// Define changes to default configuration here. For example:
// config.language = 'fr';
// config.uiColor = '#AADC6E';
};
to:
CKEDITOR.editorConfig = function( config )
{
// Define changes to default configuration here. For example:
// config.language = 'fr';
// config.uiColor = '#AADC6E';
config.enterMode = CKEDITOR.ENTER_BR;
};
Dear Jason,
I have a similar question if I may. I have made the change from <p> to </br> using the method you described. I am using it on a support system and am using nl2br() to convert the /n to </br> the problem now is on the output I have two </br>.
Is there a way that I can just not have anything so that automatically the /n just appears when it is inserted into the database.
The reason I can not remove the nl2br is from the client side they just have a standard text field so the nl2br works great to format from the client side. But from the admin side I use the HTML editor to create link etc.
The only other way I could do this if I can not remove the </br> in HTML editor is run an if else statement to detect if the response has come from the admin ( and remove the nl2br) or client side and keep the nl2br
Many thanks for your help
no, you cant remove the <br> tag from the HTML Editor, that is the whole point of using a rich text editor instance.
you would be better of using an HTML Editor instance on the client side as well as on the admin side.
the HTML Editor instance you add on the client side can have a minimal selection of buttons on the toolbar to prevent them from creating problems.
Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.
These out-of-the-box solutions provide you proven, tested applications that can be up and running now. Build a store, a gallery, or a web-based email solution.