close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Paragraph Tags

Thread began 2/25/2010 3:01 pm by AndyG | Last modified 6/02/2014 10:27 am by Patrice | 5212 views | 18 replies |

AndyG

Paragraph Tags

guys
I am having problems with the HTML Editor.
Specifically it is inserting <p> and </p> tags on saving to mysql database!
I have tried every setting available but nothing works. Every save automatically inserts paragraph tags.
Can you help?
regards
Andy

Sign in to reply to this post

Jason ByrnesWebAssist

edit the HTML Editor instance.

Click the customize button next to HTML Editor Preset menu.

On the Formatting tab, check the option to Use <br> for return.

Sign in to reply to this post

AndyG

thanks Jason
Originally I had done that but no joy.
For anyone having the same problem. Uninstall the extension. Delete the HTMLEditor folder. Recreate the site cache and reinstall. After doing so the problem is now resolved.
regards
Andy

Sign in to reply to this post

Jason ByrnesWebAssist

Some times the original settings can be a bit sticky, If you find that is the case, try deleting your browsers cache, that will usually resolve the problem fairly quickly without having to uninstall the extension.

Sign in to reply to this post

ninetyplus

Initial Paragraph Tags

I'm using HTML Editor 3.0. There are initial <p> and </p> tags that are appearing regardless if I view the editor source code, remove them, then update my page. Upon the initial update, the tags are not stored in my mySql database, but if I have to revise some copy with the particular entry, the default <p> and </P> tags are automatically placed in the editor which means I have to view the editor source code and remove the tags before I update. Is there a way to remove them permanently? Looking at the discussion above, I don't see the option with HTML Editor 3.0. Thank you!

Sign in to reply to this post

neilo

Look in your webassist/html_editor/xxxxxxx.js file (the xxxxx depends on your page/instance) at about line 20

change:

FCKConfig.EnterMode = 'p';

to:

FCKConfig.EnterMode = 'br';
Sign in to reply to this post

ninetyplus

RE: Initial Paragraph Tags

Neilo,

Thanks for your reply. That file doesn't exist in my webassist folder. I removed HTML Editor 2 and installed HTML Editor 3. The new folder structure is webassist/ckeditor. There are the following .js files but none of which is my custom editor which I called "npImpression." I was able to look at the old .js file from my previous integrations of the HTML Editor 2 and found the file you're referring to. Below is my code for the HTML Editor 3.0:

<?php
// The initial value to be displayed in the editor.
$CKEditor_initialValue = "";
$CKEditor = new CKEditor();
$CKEditor->basePath = "../webassist/ckeditor/";
$CKEditor_config = array();
$CKEditor_config["wa_preset_name"] = "npImpression";
$CKEditor_config["wa_preset_file"] = "npImpression.xml";
$CKEditor_config["width"] = "100%";
$CKEditor_config["height"] = "400px";
$CKEditor_config["skin"] = "kama";
$CKEditor_config["docType"] = "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">";
$CKEditor_config["dialog_startupFocusTab"] = false;
$CKEditor_config["fullPage"] = false;
$CKEditor_config["tabSpaces"] = 4;
$CKEditor_config["toolbar"] = array(
array( 'Source'),
array( 'Bold','Italic','-','NumberedList','BulletedList','-','Link','Unlink'),
array( 'Maximize'));
$CKEditor_config["contentsLangDirection"] = "ltr";
$CKEditor_config["entities"] = false;
$CKEditor_config["pasteFromWordRemoveFontStyles"] = false;
$CKEditor_config["pasteFromWordRemoveStyles"] = false;
$CKEditor->editor("np_story_content", $CKEditor_initialValue, $CKEditor_config);
?>

Please let me know if you can assist further with this new version.

Thanks!

Sign in to reply to this post

neilo

Hi Steven,

Yes - apologies - I was wrong.

Instead, try this: - in your webassist/ckeditor/config.js file, add a line:

/*
Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/

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

config.enterMode = CKEDITOR.ENTER_BR;
};

This should change the default 'Enter' mode to <br> rather than <p>.

(Info from CKEditor 3 JavaScript API Documentation)

Sign in to reply to this post

ninetyplus

Neilo,

That worked great. Thanks for your insight and the link CKEditor 3 JavaScript API documentation.

Cheers.

Sign in to reply to this post

PatriceWebAssist

I have just the opposite problem. I have to do two soft returns ( 2 <br>) to get a spacer. So reading the above, I added this

/**
* @license Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.html or http://ckeditor.com/license
*/

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

But it didn't help.

Any other thoughts, most appreciated. This is content from database, so I also tried using the binding to set lines to "new lines to break" but that made the spacing about 4 lines.

Thanks

Sign in to reply to this post
loading

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