SnippetMaster Support Forums
Return to main website
 
March 28, 2007, 01:49:11 PM
* Show unread posts since last visit.
* Show new replies to your posts.
Welcome, Guest. Please login or register.
Did you miss your activation email?
March 28, 2007, 01:49:11 PM

Login with username, password and session length
Search:  
Advanced search
* Home Help Search Login Register
SnippetMaster Support Forums  |  General  |  General Discussion & Support  |  Topic: Custom html rule set doesn't work properly « previous next »
Pages: [1] Print
Author Topic: Custom html rule set doesn't work properly  (Read 51 times)
Opossumi

Posts: 8


[-] Custom html rule set doesn't work properly
« on: March 20, 2007, 01:04:52 PM »

I use Snippet Master in my client's web site, and it works mostly fine. But there's one thing that I don't understand...
There is a problem with images. I have set css to make a border in all images in the content div. (It's 1px solid black.)
But when my client adds a photo to the page, the result code Snippet Master do is: img border="0" alt="xx" width="xx" and so on....
I use custom rule set, and there is: img[class|src|alt|title|width|height], so there shouldn't be any border -attribute.
Or maybe I'm understanding something wrong. How can I disable making any html border attributes to the images?
Thank you very much  Smile
Report to moderator   Logged
admin
Forum Administrator
*
Posts: 1786

SnippetMaster Author


WWW
[-] Re: Custom html rule set doesn't work properly
« Reply #1 on: March 20, 2007, 02:52:38 PM »

I just want to confirm the problem.

You are saying that the border attribute is being added to the IMG tag, even though you have not specified it in the customer rule set?

Is this correct?

Report to moderator   Logged
admin
Forum Administrator
*
Posts: 1786

SnippetMaster Author


WWW
[-] Re: Custom html rule set doesn't work properly
« Reply #2 on: March 20, 2007, 03:00:12 PM »

When you are adding an image in the wysiwyg popup window, is there any value defined in the "border" field?

Report to moderator   Logged
Opossumi

Posts: 8


[-] Re: Custom html rule set doesn't work properly
« Reply #3 on: March 21, 2007, 04:25:39 AM »

Thank you for you quick aswer Smile

You are saying that the border attribute is being added to the IMG tag, even though you have not specified it in the customer rule set? Is this correct?

Yes.

When you are adding an image in the wysiwyg popup window, is there any value defined in the "border" field?

I'm not sure, what there is in border field, when my client adds an image. But now there is zero in final html. In fact, I tried to remove border setting manually in wysiwyg, but nothing happened. Border attribute stays. I thought that the rule set and (x)html cleaner in wysiwyg editor would remove those unvalid markups.

Does this messy explanation help?
Report to moderator   Logged
admin
Forum Administrator
*
Posts: 1786

SnippetMaster Author


WWW
[-] Re: Custom html rule set doesn't work properly
« Reply #4 on: March 21, 2007, 04:50:41 AM »

The border attribute is valid xhtml markup.

Can you send me a link to your SnippetMaster installation URL, and a username/password?  I will try to recreate the problem and see if I can find out what is the way to stop the unwanted border attribute from being added to your code.

henri @ www.snippetmaster.com


Report to moderator   Logged
Opossumi

Posts: 8


[-] Re: Custom html rule set doesn't work properly
« Reply #5 on: March 21, 2007, 05:38:55 AM »

Just sent a mail to you.
Thanks Henri
Report to moderator   Logged
Pages: [1] Print 
SnippetMaster Support Forums  |  General  |  General Discussion & Support  |  Topic: Custom html rule set doesn't work properly « previous next »
Jump to:  

Powered by MySQL Powered by PHP SnippetMaster Support Forums | Powered by SMF 1.0.8.
© 2001-2005, Lewis Media. All Rights Reserved.
Valid XHTML 1.0! Valid CSS!