SnippetMaster Support Forums
Return to main website
 
June 05, 2009, 07:25:32 AM
* Show unread posts since last visit.
* Show new replies to your posts.
Welcome, Guest. Please login or register.
Did you miss your activation email?
June 05, 2009, 07:25:32 AM

Login with username, password and session length
Search:  
Advanced search
* Home Help Search Login Register
SnippetMaster Support Forums  |  General  |  General Discussion & Support  |  Topic: page doesn't appear correctly « previous next »
Pages: [1] Print
Author Topic: page doesn't appear correctly  (Read 90 times)
barblevy

Posts: 3


[-] page doesn't appear correctly
« on: May 26, 2009, 07:22:12 PM »

I am attempting to try out Snippetmaster before making a purchase decision. I have it installed correctly and am able to open pages for editing. However, the preview of my pages is not anything similar to how the pages should look. (The background color fills the entire page, the fonts are wrong, etc.) Here are some screenshots. Can anyone suggest a solution? Thanks.

* incorrect.png (117.99 KB, 150x69 - viewed 6 times.)
Report to moderator   Logged
Jenkinhill
Beta Tester

Posts: 378



[-] Re: page doesn't appear correctly
« Reply #1 on: May 27, 2009, 12:56:44 AM »

This is what heppens when css styles are not assigned to elements/divs within the selected snippet. For example in your sample image there may be no element with a background colour defined so the page default (body) background colour will be used. Similary you may have <p> tags around the text in the snippet, but may not have assigned a font style for p in your css so a efault font will show.

In addition to correctly applying styles to your pages your page editor you can also enter over-ride styles in the tnyMCE editor css file, such as to make the editor background colour always be white.
Report to moderator   Logged

Kelvyn
barblevy

Posts: 3


[-] Re: page doesn't appear correctly
« Reply #2 on: June 01, 2009, 12:42:37 PM »

Thanks, but I'm not sure of the best way to proceed.

I have a template applied which is set up in Dreamweaver, with links to an external css file. Do I need to embed the CSS on each page in order to use Snippetmaster?

Can you point me to instructions on how to "over-ride styles in the tnyMCE editor css file"? In the meantime, I'll hunt around.

Thanks.
Report to moderator   Logged
Jenkinhill
Beta Tester

Posts: 378



[-] Re: page doesn't appear correctly
« Reply #3 on: June 02, 2009, 03:41:26 AM »

You need to ensure that the markup/box elements within your snippets have specific style applied - is the attached stylesheet is the "correct" way to do this. So if all your text is in <p> containers the make sure you apply font stles and background colour to p in your stylesheet. You may have to make specific style classes for snippets if necessary, such as create a suitable div style and enclose your snippet content in such a div (make sure the div is inside the snippet start/end tags). Also ensure that all elements opened in a snippet are also closed before the end of the snippet.

Applyng styles to the editor window is covered in http://www.snippetmaster.com/forums/index.php/topic,1234.0.html
and http://wiki.moxiecode.com/index.php/TinyMCE:Configuration/content_css
Report to moderator   Logged

Kelvyn
barblevy

Posts: 3


[-] Re: page doesn't appear correctly
« Reply #4 on: Yesterday at 07:24:55 PM »

Thanks again.

I got the background to be white, using .mceContentBody in my css file, so at least I can see the text. But the page still doesn't appear as WYSIWYG. I've attached another screen shot which has how a portion of the page should look, versus how it appears in Snippetmaster.

I still hesitate to buy the PRO version or recommend this for clients who want to edit their own pages, unless this is just a function of the LITE version. What do you think?

* snippet.jpg (118.35 KB, 150x84 - viewed 2 times.)
Report to moderator   Logged
Jenkinhill
Beta Tester

Posts: 378



[-] Re: page doesn't appear correctly
« Reply #5 on: Today at 01:07:18 AM »

You would be advised not to include the menu in your snippet. That is the first thing that the "user" messes up! Use multiple snippets on pages so that the user has chunks to edit rather than most/all of the page.

You say the div width is wrong, but how is it set? As a percentage of another container not included in the snippet or an absolute width in px/em. There were no "strange characters" that I could see on the jpeg but maybe you have some incorrectly formed html entities or code? Most style issues with editors such as tinyMCE are related to how css is applied (or not)  to the elements in the editable section (snippet).

The main advantages with the Pro version are in the extra facilities, such as file uploads, being able to set the editor window width and tailor the editor toolbars to remove buttons that are not required and may be misused.  The core editor itself is the same.
Report to moderator   Logged

Kelvyn
Pages: [1] Print 
SnippetMaster Support Forums  |  General  |  General Discussion & Support  |  Topic: page doesn't appear correctly « previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.9 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!