And another validation question - this time TinyMCE

tomasv - October 12, 2006 - 23:32

So I like the capability of the TinyMCE editor but to my suprise, when I start to use functions such as for aligning the images and text the validation fails again. It says the following are nto valid tags:

hspace="5" vspace="5" width="33" height="33"

I set the input for full html - why is this an error witht he w3c checker?

Thx

Tomas

because that code is not

jmburnz - October 12, 2006 - 23:47

because that code is not valid html for your doc type.

Ok, so I have never used tiny in Drupal, but normally you can write styles for tiny and use them instead, selecateble from drop lists in the editor, see the tiny docs at the tiny mce site for how to's. I have no idea if this works in Drupal or not but my hunch is that if you search around on this site you'll come up with some answers.

Styles for Tiny

tomasv - October 12, 2006 - 23:50

You mean CSS styles correct? So instead of using the build-in Tiny editor, I would define my own CSS styles and assign them to each paragraph correct?

But how about the images - I liked the fact I could give them some space around and align them to the text - those are not valid tags for XHTML either?

I think was was meant is

nomad411 - October 13, 2006 - 02:11

I think was was meant is that you can create layout options using CSS and make them available through TinyMCE. I think it's explained in the txt files with TinyMCE, you would save the CSS in a file and the options will appear in a drop down box in TinyMCE I believe.

yes, this is what I mean,

jmburnz - October 14, 2006 - 11:02

yes, this is what I mean, although your first suggestion is better actually, and is what I do, I never use wysiwyg editors.

you dont need tiny to

jmburnz - October 14, 2006 - 11:08

you dont need tiny to position images, just some very simple css in your style sheet, use floats and bit of margin and padding to position the images.

see the website http://www.barelyfitz.com/screencast/html-training/css/positioning/ for a starter tutorial on positioning with css

 
 

Drupal is a registered trademark of Dries Buytaert.