close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Html editor

Thread began 3/08/2010 2:14 am by tonygmg362159 | Last modified 3/09/2010 12:06 pm by neilo | 1969 views | 7 replies |

tonygmg362159

Html editor

Hi everyone I am having a problem with the html editor it doesnt seem to work correctly, for once you have text you hit enter on the WYSIWYG you expect a space between the lines of text however it displays in the WYSIWYG but not actually on the page and the only way around this at the moment is keep going into the source code, but my client is going to be technical enough to keep doing this? Is there a solution to this problem?

Sign in to reply to this post

neilo

Hi tony,

Something to try:

You can have HTMLEditor use either <p> or <br> when you press 'enter'. Click the first 'customise' button on the HTMLEditor 'Quick Insert' UI. Select the formatting tab, and check the 'Use <br> for return' checkbox.

Sign in to reply to this post

tonygmg362159

Hi Neil,

Thanks for the reply, by the way the main.dwt.php template worked the other day thanks :).

Now how do I find the custom button the html editor? I cant seem to see one? Is it in the WYSIWYG editor or am I looking in the wrong area?

Sign in to reply to this post

tonygmg362159

Hi Neil,

Just to let you know i went into the fckconfig.js file and changed the line that said this:

[ CTRL + ALT + 13 /*ENTER*/, 'FitWindow' ],


To this:

[ CTRL + ALT + 13 /*ENTER*/, 'Nbsp' ],


Seems to be working ok now!! Thanks for your help once again!!!

Sign in to reply to this post

tonygmg362159

actually its not done the job :( it actually wont let me save while in the html editor in the WYSIWYG editor it only lets me save by clicking on the button save which is annoying, and it doesnt space out the lines :@

Sign in to reply to this post

neilo

Hi Tony,

Sorry you're still having problems.

With regard to the spacing issue, it seems that the way things are initially set up with HTMLEditor, to get a line between paragraphs you need to hold down 'Shift' and press Enter twice. This is while HTMLEditor is set up (default) to inset <p> tags when just Enter is pressed.

If you change it so that HTMLEditor inserts <br> tags when you press Enter, you would just hit Enter twice to get the space between lines. This seems a little more intuitive to me, so it's how I set mine up.

The way I changed mine was to alter a line in each of the javascript files in the HTMLEditor/custom folder:

in each of the javascript files in your HTMLEditor/custom folder, find the line:

FCKConfig.EnterMode = 'p';

and change it to:

FCKConfig.EnterMode = 'br';

Then upload those files to your live site. I had to close the browser tab and clear my browser cache to see the change.

[There does seem to be an option in the fckconfig.js file for setting this - at or near lines 122-123, but changing those made no difference for me].

You may just want to make this change to the CMS insert and update javascript files, - these are:

contents_insert_ContentValue1.js
contents_update_ContentValue1.js


The line to change is at or near line 34.

There may be a more 'correct' way of doing this, hopefully a WA person will let us know if there is. So back-up any files you may change!

Sign in to reply to this post

tonygmg362159

Hi Neil,

Thats worked perfectly thanks very much!!! Its very strange though and as you said hopefully a WA person can shed some light on this!! Thanks again Neil, much appreciated, at least i wont be losing any more hair over it!!!!

Sign in to reply to this post

neilo

Nice one, Tony. Glad you got it sorted!

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