TinyPortal

Development => Support => Topic started by: warhonowicz on February 19, 2007, 08:17:59 PM

Title: HTML generated by FCKEditor
Post by: warhonowicz on February 19, 2007, 08:17:59 PM
I've just upgraded to SMF 1.1.2 and TP 0.9.7.1 and it all works fine. I have so far also kept the standard editor, which is FCK. However, I have found one little issue with it and was wondering if it is due to the editor working this way or me being stupid.

When I write a new article, FCK seems to translate the RETURN key into a <'br> command rather than a <'p> command. Therefore, any formatting is applied to the whole of the article.

Am I doing something wrong or should I simply use the other editor?
Title: Re: HTML generated by FCKEditor
Post by: IchBin on February 19, 2007, 08:19:15 PM
Its all in the style of the editor. Nothing that TP has anything to do with.
Title: Re: HTML generated by FCKEditor
Post by: warhonowicz on February 19, 2007, 08:20:29 PM
Can I change that somewhere?
Title: Re: HTML generated by FCKEditor
Post by: akulion on February 20, 2007, 08:44:03 AM
if u are comfortable working with HTML
u can change the editor choice in Settings area of TP
Title: Re: HTML generated by FCKEditor
Post by: bloc on February 20, 2007, 09:55:32 AM
I think that setting is somewhere in FCKEditor's files...I have to dig to find it.
Title: Re: HTML generated by FCKEditor
Post by: bloc on February 20, 2007, 09:58:35 AM
It wasn't so hard after all :). Find:

../FCKEditor/fckconfig.js

and look for:
FCKConfig.UseBROnCarriageReturn = true ; // IE only.

Set it to false I reckon.
Title: Re: HTML generated by FCKEditor
Post by: warhonowicz on February 20, 2007, 10:16:11 AM
Quote from: Bloc on February 20, 2007, 09:58:35 AM
Find:

../FCKEditor/fckconfig.js

and look for:
FCKConfig.UseBROnCarriageReturn = true ; // IE only.

Set it to false I reckon.

Tried that but it seemed to kill the whole editor, neither IE6 nor in FireFox2 would show the editor afterwards at all.

Might just work with HTML ...
Title: Re: HTML generated by FCKEditor
Post by: bloc on February 20, 2007, 12:39:02 PM
Strange..well I am not developing FCK editor lol :), so I guess thats a bug for its developers to correct.
Title: Re: HTML generated by FCKEditor
Post by: warhonowicz on February 22, 2007, 02:14:57 PM
Which version of FCKeditor are you using?

I've had a look on the FCKeditor webpage and the latest version 2.4 has a new ENTER KEY HANDLER but looking through the config file on my webpage, it looks like I have an older version.