Welcome, Guest. Please login or register.
Did you miss your activation email?
May 26, 2012, 05:00:38 PM

Login with username, password and session length
Search:     Advanced search
Wollen Sie dem WebsiteBaker Team beitreten?
Nähere Informationen finden Sie unter hier und auf unserer neuen Webseite.
155544 Posts in 21714 Topics by 7736 Members
Latest Member: chris85
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: <p></p> tags in wysiwyg editor  (Read 906 times)
kinxton

Offline Offline

Posts: 2


« on: January 26, 2011, 06:39:19 PM »

Hi everybody
(FYI: seems my useraccount was removed from the forum so I created a new one...)

I'm using the standard wysiwyg editor "editarea" in WB version 2.8.1, revision 1287.

When I add some text or code in the editor, some <p></p> tags are automatically added outside my text/code when clicking "save".

Does anyone has an idea how I can make those <p> tags aren't added automatically anymore?
Logged
instantflorian
Betatester
*
Offline Offline

Posts: 804



WWW
« Reply #1 on: January 26, 2011, 10:29:05 PM »

hi,

the standard wysiyg editor of wb 2.8.1 is fckeditor...?

to avoid the p tags, you simply have to choose "normal (div" at the format pulldown.

br
-instantflorian.
Logged
kinxton

Offline Offline

Posts: 2


« Reply #2 on: January 27, 2011, 12:23:02 PM »

Hi instantflorian!

Indeed it's not editarea...
Thanks for your help. Found the formatting option yes.
But this makes me having div tags instead, I don't want anything to be added as I have my own CSS formatting and I don't need any additional tags as this changes the look of my pages completely as underlying divs are formatted by CSS. I'd like fckeditor to change nothing to the code I enter myself.

I'm looking into the config files of fckeditor but I can't find this option.

Cheers,

kx
Logged
instantflorian
Betatester
*
Offline Offline

Posts: 804



WWW
« Reply #3 on: January 27, 2011, 03:20:50 PM »

Hi,

I'm think I've once read something about this in the forum. Try searching for tags or paragraphs.

There are some other editors which you can try instead. CKEditor ads imho also p tags around the images, but maybe TinyMCE doesn't. You can download it at AMASP.

There also exists a plugin called WYMEditor, maybe that one works for you.

BR
-instantflorian.
Logged
VSG

Offline Offline

Posts: 108


« Reply #4 on: September 02, 2011, 06:28:02 AM »

Hi!

I just found out about this odd behaviour and this is in my opinion a serious bug!
If I edit something in source code I definitely don't want anything to be added to my code!

My Website Baker 2.8.1 didn't have this issue with FCKEditor, but after my update to 2.8.2 about 10 days ago, I suffered the same problems. So I had to redo all my changes from the last 10 days - great, I can think of things more fun to do.

My solution is as follows: I used the FCKEditor module from 2.8.1. Just unzip the file in attachment to your "WB/modules/"-folder.
Be sure to backup and remove your "fckeditor" folder that resides there already!
Then go to "Add-ons" and reload all your modules. Be sure to clear out browser-cache after that and you should be ready to go.

Be advised that this is an older version of FCKEditor that certainly has bugs and security issues compared to the current one. However it doesn't add <p></p>-tags to your WYSIWYG-entries.

Hope this can help those whose layouts were really messed up by this bug!
Best regards,
VSG
Logged
Hans

Offline Offline

Posts: 565


« Reply #5 on: September 02, 2011, 08:06:28 AM »

This is an older message so be carefull but you could try this:

http://www.websitebaker2.org/forum/index.php/topic,17618.msg116985.html#msg116985

Didn't try now but helped me earlier.
Hans
« Last Edit: September 02, 2011, 08:10:19 AM by Hans » Logged

Hans - Nijmegen - The Netherlands
DarkViper
Development Team
*****
Offline Offline

Posts: 1253


« Reply #6 on: September 02, 2011, 08:41:21 AM »

I just found out about this odd behaviour and this is in my opinion a serious bug!
If I edit something in source code I definitely don't want anything to be added to my code!

At first:  This behavior is definitely not a bug. It will be a bug, if a WYSIWYG editor does not insert <p> Tags around the text.

It's mostly just a misunderstanding what a WYSIWYG editor is and how it works.

A WYSIWYG editor is not an editor for plain text like Notepad or something else.
A WYSIWYG editor is (like i.e. Wordpad or MS-Word) a Textprocessor to provide a comfortable posibillity to write formatted text.

If you look around in Books(these thick things, made from paper wink), eBooks, Newspaper and any other textual media, you can see that each of them has a clear defined, basically structure:  one ore more Paragraphs each including one or more Sentences. Each textprocessor defines a Paragraph with its own special signs. In case of HTML this even is the <p> <p> - tag.

As in most other wordprocessors a JavaScript-Wordprocessor(like FCK or CK) generates a new Paragraph using the [Enter] key and a newline only by [Shift]+[Enter].

Now, if you know that each text starts and ends up with a <p>-tag so it's really easy to bring it in a good shape using the possibilities of CascadingStyleSheets.

The Selectors are the key!
see: CSS Selector Reference
and  CSS Pseudo-classes

There is absolutely no reason to change something in the system.
A little understanding of the background is required only.
« Last Edit: September 02, 2011, 09:00:43 AM by DarkViper » Logged

Anleitungen lesen und selber nachdenken ist anstrengend...  Da lass ich doch lieber andere für mich denken...

In 1984:  Nineteen Eighty-Four is a unrealistic utopia!!
In 2012:  Nineteen Eighty-Four is a little piece only of our reality!!
zirzy

Offline Offline

Posts: 31


« Reply #7 on: September 03, 2011, 01:48:53 PM »

Hi,

Why is &nbsp; missing from the middle of <p></p> when pressing enter (line break) from keyboard?

Logged
VSG

Offline Offline

Posts: 108


« Reply #8 on: September 03, 2011, 07:59:14 PM »

It will be a bug, if a WYSIWYG editor does not insert <p> Tags around the text.
Agreed, however if this behaviour was never present before and it is introduced without notice, it might just mess up systems that users have running for several years Smiley.

Quote
A WYSIWYG editor is (like i.e. Wordpad or MS-Word) a Textprocessor to provide a comfortable posibillity to write formatted text.
Again, agreed. If I switch to "source code"-view and insert my code directly there (without need for the WYSIWYG-capabilities), I certainly don't want my code to be altered. It is as simple as that. It might be that even if you paste it there and save the page, it will be converted back via the WYSIWYG-module and then the changes will be made - but this is not what I expect, when I insert something into the source directly.

Quote
If you know that each text starts and ends up with a <p>-tag so it's really easy to bring it in a good shape using the possibilities of CascadingStyleSheets.

Maybe and certainly is the case. But the layout of my site has been this way for years. And adding content regularly just kept making it bigger. To change the layout just because of the new WYSIWYG-module would mean changing more than 1000 individual pages (to make them look the same in design) - and this is something that I just can't do.
So I took the workaround. It might not be nice, but it works. Wink

But thanks for clearing the background on the issue. Smiley

Best regards,
VSG
Logged
ruebenwurzel
WebsiteBaker Org e.V.

Offline Offline

Posts: 7973



WWW
« Reply #9 on: September 04, 2011, 06:13:07 AM »

@VSG

If you only want to work with source-code on WYSIWYG pages easiest is to set the WYSIWYG-Editor in the advanced options to none. If you edit now a WYSIWYG-page you can input your code and it will be stored exactly in the way you put it in.

Matthias
Logged
VSG

Offline Offline

Posts: 108


« Reply #10 on: September 04, 2011, 04:12:27 PM »

Okay, thanks for the tip!

Best regards,
VSG
Logged
Pages: [1]   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!