1
Kumar
FCKEditor inserts extra br in News and AMS
  • 2008/10/7 13:09

  • Kumar

  • Just popping in

  • Posts: 61

  • Since: 2005/8/8 1


Using FCK and all other Visual editors inserts extra br elements in News & AMS Modules.
Xoops 2.3 and 2.3.1RC, News 1.62, AMS 2.51.
Any Help?

2
Kumar
Re: FCKEditor inserts extra br in News and AMS
  • 2008/10/8 6:48

  • Kumar

  • Just popping in

  • Posts: 61

  • Since: 2005/8/8 1


Koivi editor working fine but the image manager not working properly.

Is there any solution for FCK?
Thanks

3
Axxxxxl
Re: FCKEditor inserts extra br in News and AMS
  • 2009/4/2 20:53

  • Axxxxxl

  • Just popping in

  • Posts: 12

  • Since: 2009/4/1 2


I have the same problems with the german versions of XOOPS 2.3.3 and News 1.63 and FCK (that comes with xoops). All other editors like tiny etc. works fine.
If i have a "p" tag in a text, the internal preview of XOOPS shows it correct, but if i click at preview of news or send button, something makes a extra <br /> tag after the "p" tag. Mysterios , but:

I got this message over the preview of a test news:
Notice: Function 'themecenterposts' in '/var/www/.../include/old_theme_functions.php' is deprecatedshould not be used any more in /var/www/.../include/old_theme_functions.php on line 57


And the function in this file is:
if (!function_exists('themecenterposts')) {     function themecenterposts($title$content)     {         trigger_error("Function '" __FUNCTION__ "' in '" __FILE__ "' is deprecated, should not be used any more"E_USER_NOTICE);          echo '<table cellpadding="4" cellspacing="1" width="98%" class="outer"><tr><td class="head">'.$title.'</td></tr><tr><td><br />'.$content.'<br /></td></tr></table>';     }


And in this file you will find also the information:
// These are needed when viewing old modules (that don't use Smarty template files) when a theme that use Smarty templates are selected.  // function_exists check is needed for inclusion from the admin side


We also have no solutions at the moment, but i have this bug at 3 different 2.3.3. installs of XOOPS and News 1.63
But i want use the FCK, because the imagemanager ist on of the best.

I hope also, that anybody can help me /us?!?!

4
Burning
Re: FCKEditor inserts extra br in News and AMS
  • 2009/4/2 21:21

  • Burning

  • Theme Designer

  • Posts: 1163

  • Since: 2006/8/22


hi'

In fckconfig.js --> inverse br and p like this
Quote:

FCKConfig.EnterMode = 'br' ; // p | div | br
FCKConfig.ShiftEnterMode = 'p' ; // p | div | br


Tell me if it works ?
Still learning CSS and... english

5
Axxxxxl
Re: FCKEditor inserts extra br in News and AMS
  • 2009/4/3 10:47

  • Axxxxxl

  • Just popping in

  • Posts: 12

  • Since: 2009/4/1 2


No, i do this fot the first, but general after every "br" and "p" tag this extra "br" are added. Like this:

my handmade Code is:
<p>Row 1</p>
<p>Row 2<br />
<p>Row 3</p>

Right would be this:
Row 1

Row 2
Row 3

But it looks like:
Row 1


Row 2

Row 3

And we dont know how! A "specialist" in the german XOOPS forum (alfred) will look at this at the coming weekend but we can also try here, to find a solution or the reason for this bug.
Remember, this will only happen in FCK in XOOPS 2.3.3 with news 1.63, all other editors translate the code correctly!

6
nmshah
Re: FCKEditor inserts extra br in News and AMS
  • 2009/4/4 6:36

  • nmshah

  • Just can't stay away

  • Posts: 556

  • Since: 2007/7/2 8


I had a similar problem with news 1.63 seo and XOOPS 2.3.3 and fckeditor.
What worked for me is:

in modules/news/class/class.newsstory.php, find
$hometext $myts->displayTarea($this->hometext,$html,$smiley,$xcodes);

and replace it by
$hometext $myts->displayTarea($this->hometext,$html,$smiley,$xcodes,1,0);


then find

$hometext $myts->previewTarea($this->hometext,$html,$smiley,$xcodes);


replace it by
$hometext $myts->previewTarea($this->hometext,$html,$smiley,$xcodes,1,0);


then find
$bodytext $myts->displayTarea($this->bodytext,$html,$smiley,$xcodes);


and replace by
$bodytext $myts->displayTarea($this->bodytext,$html,$smiley,$xcodes,1,0);


finally find

$bodytext $myts->previewTarea($this->bodytext,$html,$smiley,$xcodes);
[
code]

and 
replace by
[code]
$bodytext $myts->previewTarea($this->bodytext,$html,$smiley,$xcodes,1,0);


hope this solves your problem

7
Axxxxxl
Re: FCKEditor inserts extra br in News and AMS
  • 2009/4/4 11:51

  • Axxxxxl

  • Just popping in

  • Posts: 12

  • Since: 2009/4/1 2


@nmshah:

Thanks for the moment. I can test it not befor this evening (here in Germany) but i hope it will work also for me.

But can you tell me, what the "1" and "0" at the end of the variables do or change?

Thanks.

8
nmshah
Re: FCKEditor inserts extra br in News and AMS
  • 2009/4/4 14:03

  • nmshah

  • Just can't stay away

  • Posts: 556

  • Since: 2007/7/2 8


I am not sure about it, but i had made these changes based on some other threads that i had read on this site. According to what i get the second last option is for images which we have set 1 to enable it and the last option is for linebreak which we have set to 0 to disable the same.

One of the threads that i had got the info from is
https://xoops.org/modules/newbb/viewtopic.php?topic_id=67315&forum=4&post_id=304774#forumpost304774

9
Axxxxxl
Re: FCKEditor inserts extra br in News and AMS
  • 2009/4/4 15:22

  • Axxxxxl

  • Just popping in

  • Posts: 12

  • Since: 2009/4/1 2


IT WOOOORKS !!!

@nmshah:
Many, many thanks for this information. This was the right answer for my problems. Thank you.

Waht do you think, we have to tell this "bug" the "News Module" team?

10
nmshah
Re: FCKEditor inserts extra br in News and AMS
  • 2009/4/4 17:52

  • nmshah

  • Just can't stay away

  • Posts: 556

  • Since: 2007/7/2 8


I am not sure if this is a bug or its meant to be this way as a lot of people dont use wysiwyg editors. But i guess there should be an option to enable or disable linebreaks probably in the prefrences section of all modules. It would make life far more easier for all those that use wysiwyg editors. I have faced this problem with quite a few modules of which i am still trying to figure smartfaq out as it does not have the the displayTarea option anywhere.

Login

Who's Online

217 user(s) are online (144 user(s) are browsing Support Forums)


Members: 0


Guests: 217


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits