1 techshots Mar 01, 2010 07:49
3 techshots Mar 01, 2010 14:20
¥åßßå wrote:
Are you using tinymce or just auto-p?
Can you post the html for your edited post?
¥
Hi,
I'm using all default items, no plugins, or that I can remember during install there were no check box options to install tinymce.
HTML
<p>test</p>
<div class="image_block"><a href="/b2evolution/blogs/media/blogs/blog/cute omnomnom_1280.jpg"><img src="/b2evolution/blogs/media/blogs/blog/cute omnomnom_1280.jpg" alt="" width="1280" height="1024" /></a></div>
<p> </p>
I discovered that after saving, and getting that error message, if I switch to
simple tab or vise versa and hit save, the error would not show, and I'd get the following HTML:
<p>test</p>
<p> </p>
<div class="image_block"><a href="/b2evolution/blogs/media/blogs/blog/cute omnomnom_1280.jpg"><img src="/b2evolution/blogs/media/blogs/blog/cute omnomnom_1280.jpg" alt="" width="1280" height="1024" /></a></div>
<p> </p>
4 yabba Mar 01, 2010 16:26
Hmmm, I'm guessing that you're using version earlier then 3.x and it's the auto-p plugin that's causing this.
Depending on your version you might like to try 2.4.7 or 3.3.3 and seeing if either of those work better
¥
*edit
Ack, just noticed that you mentioned you're running 3.3.3 in which case you should see tinymce as it's a default for all users. Check your user settings ( admin > users > your user [probably admin :p ] ) and see if you have tinymce enabled.
5 techshots Mar 01, 2010 17:14
¥åßßå wrote:
Hmmm, I'm guessing that you're using version earlier then 3.x and it's the auto-p plugin that's causing this.
Depending on your version you might like to try 2.4.7 or 3.3.3 and seeing if either of those work better
¥
*edit
Ack, just noticed that you mentioned you're running 3.3.3 in which case you should see tinymce as it's a default for all users. Check your user settings ( admin > users > your user [probably admin :p ] ) and see if you have tinymce enabled.
NOT enabled, I checked it and tried again, now I'm getting more weird issues. Surprised no one's experienced this.
6 yabba Mar 01, 2010 17:25
At least that rules out tinymce :D
Ok, what are your other problems, maybe they're related?
Also, might be worth grabbing a fresh copy of the zip in case you have a borked file.
¥
7 techshots Mar 01, 2010 18:07
¥åßßå wrote:
At least that rules out tinymce :D
Ok, what are your other problems, maybe they're related?
Also, might be worth grabbing a fresh copy of the zip in case you have a borked file.
¥
Reinstall results in the same issue. Not sure what's going on. If I have time, I'll get more details.
8 iceblock Mar 02, 2010 02:29
I have the same problem when adding an image to a post. However it wasn't reported because I simply use a work around solution - switching to HTML mode to edit the tags and switch back to WYSIWYG mode to continue with editing.
I just realized that there is TinyMCE option after reading this. I thought it's the default WYSIWYG editor in expert mode! After reading this, I went to check my user setting, it's unchecked. And my editor does seems like TinyMCE editor, unless my eyes fool me it's a different editor but looks like it - how do you check what editor is being used?
9 hypocrite Mar 02, 2010 11:55
It's because of the XHTML validation.
You can switch that off in the user and group settings in the admin panel.
I had the same issue:
http://forums.b2evolution.net/viewtopic.php?t=20522
10 yabba Mar 02, 2010 18:18
The thing is, the validator is correct <p> cannot contain block level elements. If it's caused by tinymce being used then it's probably a bug ;)
There is only one editor that ships with evo ;)
¥
11 hypocrite Mar 04, 2010 12:57
Could this topic then be moved to the bugs section?
Because it's seems it's a bug in b2evolution how it's adding the image div tag inside the paragraph tag rather than a bug in tinyMCE.
12 yabba Mar 04, 2010 14:33
Consider it moved ;)
¥
13 fplanque Mar 14, 2010 18:38
Arg, this is super hard to fix ! :p
I gotta check back on that but I think there is a button somewhere in Tiny MCE that says sth like "Clean up the code". That should fix this.
14 yabba Mar 14, 2010 20:50
Just change the wrapper to a span?
¥
15 hypocrite Mar 15, 2010 13:23
Sorry to hear the bug is hard to fix.
Your solution about the clean code button seems to work but we have so many users in our blogs and more are coming that it isn't really a usable solution to force everyone to clean up the code before saving it.
I haven't checked the CSS code but why do we need the extra div around a image? Can't you just add the needed CSS class to the img tag itself? Or maybe the span solution. :)
16 fplanque Mar 17, 2010 19:59
Yes, we should probbaly do the span solution.
Are you using tinymce or just auto-p?
Can you post the html for your edited post?
¥