They guys who produce TinyMCE suggest, when initialising the editor, that you set the content_css parameter to be the url to your site’s CSS, so that the content you type into the text area is styled in the same way as the rest of your site.
This is a great idea and works very well, but a lot of CSS layouts make use of various text positioning options which don’t really apply when translated to a wysiwyg editor, for example making the default alignment centred with no padding.
Thankfully you can get around all of this quite easily and add further custom styling to your editor’s textarea by adding the .mceContentBody style to the end of your site’s CSS file and specifying any further layout options in that.
For example the following css tells the editor in my app to always ensure the text alignment is left justified by default and give a 10 pixel padding to the textarea the editor’s being applied to so that the text that will be input by the user doesn’t squash up against any particular border of the text area itself:
.mceContentBody {
text-align: left;
padding: 10px;
}
Nice and simple really but not so easy to find quickly when searching on Google so I hope this helps someone else out there too!
Categories: CSS, Web Development Tags: ad, app, css file, default alignment, Google, layout options, MCE, padding, pixel, text alignment, textarea, tiny, tinyMCE, wysiwyg editor
Apparently though I've only used 3,341.70 MB of my 20,000.00 MB webspace I have hit my file quota limit of 262,144 files.
And what notification did I get - none!
Just a load of head scratching as to why my FTP uplaods were failing...
Looks like I'm gonna have to delete some stuff...
Cheers 1and1...
November 28th, 2009
Chris
If you use an unsigned MySQL int to count seconds you can count up to roughly 136 years before the field is full
On another note I also got my Google Wave invite today, so if anyone wants to connect just add chrisjohndean@googlewave.com to your list!
November 12th, 2009
Chris
No google storage team, thank you...
Hi,
We wanted to let you know about some exciting changes to your Google paid storage plan. While storage costs have dropped naturally in the past few years, we've also been working hard to improve our infrastructure to reduce your costs even further. On Tuesday, November 10th, we increased the size of each of our tiers to make storage even more affordable and accessible. For the same $20.00 per year, you’ll now get 80 GB, 8 times as much storage as before. Your current plan will be automatically upgraded and your new quota will automatically show up in your account in the next 24 hours.
We hope you’ll like the extra space, but if it’s more than you need you can always change your storage plan or renewal preferences for next year in your Google account settings: www.google.com/accounts/purchasestorage. Feel free to visit our Help Center for more information.
Thanks,
The Google storage team
Christ knows how I'm going to fill up 80 Gig with email and images, but I'm gonna give it a bloody good go!
For the last 5-10 minutes I've been wondering why a check on a variable which should be valid has been returning false.
The check is ctype_digit, which returns true if all characters in a string are digits.
So if $var = 1;, you might expect it to return true, but it doesn't.
Why not? Well, as the PHP manual states, this function acts on strings not integers.
Therefore checking something that has been specifically set as an integer (as in the example above) or typecast to be an integer at some point (as is my case) ctype_digit will fail as the data it is checking is not a string in the first place!
So there you go. Although 99% of data handled in PHP is in string form at some point, and therefore a ctype_digit check is generally completely valid, in some special cases it might be worth combining a ctype_digit() check with a preceding is_string() check depending on your application.
Rant over...
Also Find Me On