close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

No Styling

Thread began 9/30/2011 8:58 am by CraigR | Last modified 3/19/2012 8:30 am by Jason Byrnes | 2919 views | 4 replies |

CraigRBeta Tester

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

Sign in to reply to this post

Jason ByrnesWebAssist

in the webassist/ckeditor/config.js file, change:

php:
CKEDITOR.editorConfig = function( config )
{
    // Define changes to default configuration here. For example:
    // config.language = 'fr';
    // config.uiColor = '#AADC6E';
};




to:

php:
CKEDITOR.editorConfig = function( config )
{
    // Define changes to default configuration here. For example:
    // config.language = 'fr';
    // config.uiColor = '#AADC6E';
    config.enterMode = CKEDITOR.ENTER_BR;
};
Sign in to reply to this post

CraigRBeta Tester

Thanks Jason.

That's sorted

Sign in to reply to this post

lightwalkerBeta Tester

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

Sign in to reply to this post

Jason ByrnesWebAssist

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.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

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.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...