SnippetMaster Support Forums
Return to main website
 
December 25, 2007, 02:47:07 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?
December 25, 2007, 02:47:07 AM

Login with username, password and session length
Search:  
Advanced search
* Home Help Search Login Register
SnippetMaster Support Forums  |  General  |  General Discussion & Support  |  Topic: Editor window shows incorrect background colour. Beta 2.0.14 « previous next »
Pages: [1] Print
Author Topic: Editor window shows incorrect background colour. Beta 2.0.14  (Read 307 times)
Jenkinhill
Beta Tester

Posts: 319



[-] Editor window shows incorrect background colour. Beta 2.0.14
« on: April 03, 2006, 04:03:52 AM »

Using Firefox and IE6 the editor window is showing the page body background colour rather than the defined colour for the editable part of the page. Background colours on my pages are defined using CSS.
Report to moderator   Logged

Kelvyn
admin
Forum Administrator
*
Posts: 2086

SnippetMaster Author


WWW
[-] Re: Editor window shows incorrect background colour. Beta 2.0.14
« Reply #1 on: April 03, 2006, 06:31:18 AM »

Hmm.. I suspect (can you confirm this?) that the problem is something like this:

1. Snippetmaster sets the editor bg color to whatever "body" background color is defined in your styles.

2. You've selected to edit a snippet of code that does not include any background color style... so the editor just uses the "body" default.

For example:

Let's say you have a body style of red. 
Then you have a table, with class of table1. This class gives the table a bg color of blue.
So when then page loads in a browser, the page will have a red bg and the table will have a blue bg.
So far so good.
Now let's say that you have placed snippet tags around only a TD tag in the table. 
So when the editor loads the contents from the "TD" tag... it will find the body style background (red), but not the table style background.. because that part of the table isn't being edited.

Is this what is happening in your situation?

I'm not sure of the best workaround for something like this, because really.. the editor is working "as designed"... but of course it doesn't really work well in reality like that. 

I have two possible solutions:

1) Change the entire editing system so that the entire page is ALWAYS loaded into the editor.. and only certain portions of the page or actually editable.  This would require a complete rewrite of much of the program, and the current editor does not work with this ability.  (In other words, this is the best solution.. but it's a dream still.)

2) Add the ability to dynamically change the editor bg color, with some kind of popup button or something. So snippet would load, and then you could click a "change bg color" button and select the desired bg color.

What do you think?

Report to moderator   Logged
Jenkinhill
Beta Tester

Posts: 319



[-] Re: Editor window shows incorrect background colour. Beta 2.0.14
« Reply #2 on: April 03, 2006, 07:00:45 AM »

Hi Henri

The snippetmaster tags were either side of a <td> element with a white background class. That showed the background colour of the body (green). I then moved the tags outside the <table> tags, which is also styled to be white and the background worked as you describe. So looks like a little trial and error is needed in placement of the snippetmaster tags.

I like the idea of being able to change the background colour of the editor window.
Report to moderator   Logged

Kelvyn
admin
Forum Administrator
*
Posts: 2086

SnippetMaster Author


WWW
[-] Re: Editor window shows incorrect background colour. Beta 2.0.14
« Reply #3 on: April 03, 2006, 07:03:02 AM »

Hi Henri

The snippetmaster tags were either side of a <td> element with a white background class. That showed the background colour of the body (green). I then moved the tags outside the <table> tags, which is also styled to be white and the background worked as you describe. So looks like a little trial and error is needed in placement of the snippetmaster tags.

I like the idea of being able to change the background colour of the editor window.

Excellent. Glad that is working for you now.

I have added the ability to dynamically change the editor bg color to the feature request list, so it will eventually get implemented.  Smile

Thanks again!

Report to moderator   Logged
Artisan

Posts: 22


The World Wide Web needn't cost the earth.


WWW
[-] Re: Editor window shows incorrect background colour. Beta 2.0.14
« Reply #4 on: October 21, 2006, 06:37:01 AM »

I found a fix for this when I wanted to change the editor text area backgound to #052A44, it's in yourdomain.com/snippetmaster/includes/tiny_mce/themes/advanced/css - look for editor_content.css

Change ...
Code:
body {
background-color: #FFFFFF;
}
... to ...
Code:
body {
background-color: #052A44;
}

Malcolm
Report to moderator   Logged
Pages: [1] Print 
SnippetMaster Support Forums  |  General  |  General Discussion & Support  |  Topic: Editor window shows incorrect background colour. Beta 2.0.14 « previous next »
Jump to:  

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