Post by johnseito » Sat Dec 25, 2010 12:44 pm

and the store tab and go to the middle of the page and I click on source and change the code over there, everytime I add
something or make changes, it always end up automatically adding

some thing like <p>

and then I have to delete it everytime. Very annoying.

Active Member

Posts

Joined
Fri Aug 06, 2010 9:42 pm

Post by johnseito » Sat Dec 25, 2010 10:39 pm

anyone have this problem? This is very unprofessional also. Thanks

Active Member

Posts

Joined
Fri Aug 06, 2010 9:42 pm

Post by hbuchel » Sat Dec 25, 2010 11:01 pm

This is often a problem with WYSIWYG editors.

New member

Posts

Joined
Mon Aug 30, 2010 9:41 pm

Post by johnseito » Sat Dec 25, 2010 11:16 pm

is there a way to make it where that doesn't happen?

Active Member

Posts

Joined
Fri Aug 06, 2010 9:42 pm

Post by Qphoria » Sat Dec 25, 2010 11:38 pm

johnseito wrote:This is very unprofessional also.
ROFL!!

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by SapporoGuy » Sun Dec 26, 2010 12:07 am

ugh, forgot what area I posted this to .... lolo, not very professional ;)

However, if you look by my user name you can find the "Fix" for CKEditor that will stop that horrendous <p>.
This is a pretty long term issue for CKEditor. This is not a opencart problem beyond the fact they choose to use that particular editor.

930sc ... because it is fun!


User avatar
Active Member

Posts

Joined
Mon Nov 01, 2010 7:29 pm

Post by hbuchel » Sun Dec 26, 2010 12:09 am

I thought I once found a way to make it use tinyMCE http://tinymce.moxiecode.com/ but honestly I don't know if that one has issues, either.

New member

Posts

Joined
Mon Aug 30, 2010 9:41 pm

Post by SapporoGuy » Sun Dec 26, 2010 12:12 am

The solution I provided was something I found after hours of searching on the net. And I use it in my cart.
So, it should work for other people too.

930sc ... because it is fun!


User avatar
Active Member

Posts

Joined
Mon Nov 01, 2010 7:29 pm

Post by johnseito » Sun Dec 26, 2010 1:17 am

However, if you look by my user name you can find the "Fix" for CKEditor that will stop that horrendous <p>.
this doesn't add only <p> but many other weird, unnecessary code when doing either a change or a update. I only say
<p> as one examples of the unnecessary code it adds.

Active Member

Posts

Joined
Fri Aug 06, 2010 9:42 pm

Post by johnseito » Sun Dec 26, 2010 2:16 am

In addition to adding unnecessary codes it also re-organized them after you either make a change or update and saved and then you go back it re-organized it self. This makes it hard to fix up the codes.

Active Member

Posts

Joined
Fri Aug 06, 2010 9:42 pm

Post by jty » Sun Dec 26, 2010 2:21 am

hbuchel wrote:I thought I once found a way to make it use tinyMCE http://tinymce.moxiecode.com/ but honestly I don't know if that one has issues, either.
tiny mice also adds the < p > but tiny mice is much betterer than the F*CK Editor
it really easy to drop in tinymce

jty
Active Member

Posts

Joined
Sat Aug 30, 2008 8:19 am

Post by SapporoGuy » Sun Dec 26, 2010 3:47 am

hmmm, I would never use a WYSIWYG editor to code.
I thought you were just working with text and didn't want the extra paragraph being added around your text.

I do agree that I don't like how that editor does things but this is really not a fix for opencart to do but rather for the CKEditor team.

I have thought about that a few times too about F*CKEditor ... lolo

930sc ... because it is fun!


User avatar
Active Member

Posts

Joined
Mon Nov 01, 2010 7:29 pm

Post by hbuchel » Sun Dec 26, 2010 5:18 am

Even if you're not using the WYSIWYG editor to write code, even writing anything in the "Source" tab adds extra spans and paragraphs and other nonsense. I think that is his issue.

New member

Posts

Joined
Mon Aug 30, 2010 9:41 pm

Post by SapporoGuy » Sun Dec 26, 2010 2:01 pm

I provided a solution here at the forums to remove the extra "paragraph" html marker.
However, it only removes the < p > for the text input boxes.

930sc ... because it is fun!


User avatar
Active Member

Posts

Joined
Mon Nov 01, 2010 7:29 pm

Post by Qphoria » Sun Dec 26, 2010 2:19 pm

I still have no idea what you are even talking about.. yea ckeditor adds an extra <p> around things but what is it affecting? It should be unnoticeable in most cases as it just renders a block element which the description is already. I suppose in the case of a custom theme where you want the text to wrap around the image or something that it would be an issue.. but as far as I know ckeditor only adds an extra <p> nothing more

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by SapporoGuy » Sun Dec 26, 2010 2:35 pm

Q, that is the point.
People probably don't want to the 99th store using the out of the box template from opencart.
Therefore, many people use custom templates and even add css styling to the <p> tag.

So if you have padding of 10px; And CK adds another P tag. You now have padding of 20px.
Which could be a huge case of frustration if you are not aware that the F'in CK was the one who was doing it.

Also, it's not just people here at opencart.
Check out the oodles of people over at CK that have been posting this for years.
And no, going to the source to edit out the p tags is not really an option because once you go to edit again the freaking tab comes back.

930sc ... because it is fun!


User avatar
Active Member

Posts

Joined
Mon Nov 01, 2010 7:29 pm

Post by Qphoria » Sun Dec 26, 2010 2:38 pm

SapporoGuy wrote:Q, that is the point.
People probably don't want to the 99th store using the out of the box template from opencart.
Therefore, many people use custom templates and even add css styling to the <p> tag.
I suppose.. tho I've seen very few themes even touch the product page. But maybe the padding issue. Still.. its just the old <p> issue that everyone knows about and you've given the fix and its been mentioned 1000 times on google.. even ckeditors own forums: http://cksource.com/forums/viewtopic.php?t=15467

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by SapporoGuy » Sun Dec 26, 2010 2:54 pm

Yes, a 1,000 times does sound right,
Yes, it's the old <p> issue for some,
but ...
Not everybody knows about this.

There are a lot of people here that have problems editing the HTML in the templates so how can you expect somebody like that know about the CK issue?

I didn't know about it until I got pissed off a few weeks back and spent crap loads of time googling until I found the issue. I have not seen this mentioned at other sites, I guess people just deal with it.

I totally think that this is NOT a opencart problem.
However, I think that maybe adding sticky on the forums or something in the usage manual might help.

930sc ... because it is fun!


User avatar
Active Member

Posts

Joined
Mon Nov 01, 2010 7:29 pm

Post by Qphoria » Sun Dec 26, 2010 2:59 pm

Personally I'd like to go with something lighter like NicEdit.. a nice 40kb for the full version instead of the 1.8MB
Or the new jwysiwyg http://akzhan.github.com/jwysiwyg/examples/

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by SapporoGuy » Sun Dec 26, 2010 3:11 pm

Heh?
Never heard of it. However, that is pretty sweet.
Didn't see a source code option in the demo ...

Do you have to use it through the CDN? or can you host it yourself?

930sc ... because it is fun!


User avatar
Active Member

Posts

Joined
Mon Nov 01, 2010 7:29 pm
Who is online

Users browsing this forum: No registered users and 20 guests