1 eylence Oct 08, 2011 16:41
3 eylence Oct 08, 2011 23:58
sam2kb,
thank you! that did the trick, but only for a href of course.
Now I receive validation error like this:
Tag <div> is not allowed within tag <p>
(Note: To get rid of the above validation warnings, you can deactivate unwanted validation rules in your Group settings.)
Invalid content.
Should I set basic validation instead of strict in the group settings to overcome this?
4 sam2kb Oct 09, 2011 00:02
Well... <div> is really not allowed inside <p> tag. Try to clean up the code first.
Alternatively you can switch to "Basic validation"
5 eylence Oct 09, 2011 00:19
sam2kb,
thanks for the helpful anwer. the interesting thing is that the problematic html code is not being written by me, its b2evo add/link image dialog doing that. so I expect that all users of the blog will have this problem and it will be quite hard to explain them :)
strange that right after I insert the image into an empty post, I switch to html code view and see the following:
<p>
<div class="image_block"><a href="/blogs/media/blogs/testing/pyatak_av.jpg?mtime=1318028884"><img src="/blogs/media/blogs/testing/pyatak_av.jpg?mtime=1318028884" alt="" width="108" height="108" /></a></div>
</p>
and if now I try to save the post, validation fails.
after that I switch back to wysiwyg and then again back to html code view and see this:
<p> </p>
<div class="image_block"><a href="/blogs/media/blogs/testing/pyatak_av.jpg?mtime=1318028884"><img src="/blogs/media/blogs/testing/pyatak_av.jpg?mtime=1318028884" alt="" width="108" height="108" /></a></div>
<p> </p>
so the validation passes after this.
is that happening only with my installation of blog or is familiar to someone?
6 sam2kb Oct 09, 2011 00:27
That's TinyMCE's bug. It creates <p> tags when you click enter. There's a workaround though. You can select "div" in the left most field in editor menu.
TODO: create a setting to choose default formatting tag.
Moved to "Feature requests"
7 eylence Oct 09, 2011 00:28
sam2kb, now it is clear. thanks a lot!
8 audision Nov 29, 2011 15:04
eylence,you can tell me how to upgrade
[url=http://www.my-swiss-company.com] [/url]
[url=http://www.masslandstyle.com] [/url]
[url=http://www.aoya-exhibition.com/] [/url]
[url=http://www.standardconcessionsupply.com/snowconemachines.html] [/url] [url=http://www.geoffbrandrealestate.com.au/] [/url]
[url=http://www.sinoskywholesale.com/] [/url] [url=http://www.stoneselex.com/Articles.aspx] [/url]
[url=http://www.eybl.at/M/8796127580802/KTM.html] [/url]
Welcome to the forum!
Go to Tools > Antispam and search for blacklisted "a href=" in the list. Uncheck/allow the word and you should be ok.