close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Get rid of default <p> tags???

Thread begun 10/22/2018 10:48 am by Steve | Last modified 8/04/2020 12:01 pm by Ray Borduin | 2170 views | 7 replies |

Steve

Get rid of default <p> tags???

Hello,
How can we get rid of the Paragraph tags being forced in the latest HTML Editor?

https://stackoverflow.com/questions/1977791/turn-off-enclosing-p-tags-in-ckeditor-3-0

config.js has been changed to :

/**
* @license Copyright (c) 2003-2018, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see https://ckeditor.com/legal/ckeditor-oss-license
*/
CKEDITOR.config.autoParagraph = false;
CKEDITOR.editorConfig = function( config ) {
// Define changes to default configuration here. For example:
// config.language = 'fr';
// config.uiColor = '#AADC6E';

// config.enterMode = CKEDITOR.ENTER_P;
config.enterMode = CKEDITOR.ENTER_BR;
config.allowedContent = true;
};


But still the auto P is forced disregarding this directive:

CKEDITOR.config.autoParagraph = false;

Sign in to reply to this post

Ray BorduinWebAssist

That should be correct. This file is often cached. Have you tried clearing your cache before testing again? I'll make this change in the extension as well since it seems to be the common preference.

Sign in to reply to this post
Did this help? Tips are appreciated...

Steve

Yes, the following works:


/**
* @license Copyright (c) 2003-2018, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see https://ckeditor.com/legal/ckeditor-oss-license
*/

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

Ray BorduinWebAssist

Thanks. I'll get that updated in the next build.

Sign in to reply to this post
Did this help? Tips are appreciated...

randyrie405335

<p> tags

I am still getting the <p> tags which adds a double line space. Also, is there a way to get the <li> tags NOT to add a line break. See my attachments. The first attachment is what I'd like the editor's default to be so the bullets line up with the text line. The second attachment is how HTML editor currently codes the <li> tags and and text lines do not display on the same line as the bullets, making the display confusing.

Please let me know how to configure the editor so it will properly display bullets.

Sign in to reply to this post

Ray BorduinWebAssist

Can I get a url to see the issue. Also, can I see a copy of your webassist/ckeditor/config.js file? The best option would be to give me FTP access and a url to the admin and front end so I can see the issue.

Sign in to reply to this post
Did this help? Tips are appreciated...

randyrie405335

Mal-aligned bullets in HTML Editor

Please see my private message. Let me know if you need anything else. I appreciate your help with this issue.

Sign in to reply to this post

Ray BorduinWebAssist

Add this to your config.js file:

config.autoParagraph = false;
config.enterMode = CKEDITOR.ENTER_BR;
config.allowedContent = true;

That should fix the p tag issue.

The line break issue is a bit more complicated. Of course you can edit the .css so that the LI element doesn't display those line breaks, which is the default anyway, you must have custom css to make it show.

The other option appears to be to add a plugin to your editor. I found this in a google search on the subject:
https://ckeditor.com/docs/ckeditor4/latest/features/output_format.html

Sign in to reply to this post
Did this help? Tips are appreciated...

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...