htmlArea

A directory of browser-based WYSIWYG editors

  MAIN
INDEX
SEARCH
POSTS
WHO'S
ONLINE
LOG
IN

Home: htmlArea 2: htmlArea 2 & 3 archive (read only): htmlArea v2.0:
htmlArea 2.03 and XHTML compliant markup


The htmlArea 2 & 3 editors have been discontinued.

We've made these forums available as a read-only reference and knowledge-base for people using or developing editors based on htmlArea 2 or 3.

Anyone who is interested in taking over version 2 or 3 is free to do so. All we ask is that you choose a new name that doesn't have "htmlarea" in it to avoid confusion with this site. We'll even give you a link in the directory to make it easier for people to find you. If you are developing or hosting an htmlArea based-editor under a new name, please submit it to our directory.

 


davy
New User

Jul 20, 2003, 2:25 PM

Post #1 of 20 (5702 views)
Shortcut
htmlArea 2.03 and XHTML compliant markup Can't Post

Hello people,

I want to use htmlArea in a CMS system i am developing wich is using PHP/MySQL. I really like how easy it is how to implement htmlArea, but i would like it to generate XHTML compliant markup, i am also planning to intregrate htmlArea in a PHP/XML /XSLT based CMS system, but that can only be done it the output is in XHTML. Any idea`s how i could do that, and also so that it immediatly visible when i look at the html mode in htmlArea

Best regards,

Davy


Parikesit
Novice

Oct 4, 2003, 7:41 PM

Post #2 of 20 (5512 views)
Shortcut
Re: [davy] htmlArea 2.03 and XHTML compliant markup [In reply to] Can't Post

I also need xhtml compatible...
Anyone have this such version or modification?

zaenal

__________________
Best,
Parikesit


Luis
Veteran

Oct 4, 2003, 9:08 PM

Post #3 of 20 (5510 views)
Shortcut
Re: [davy] htmlArea 2.03 and XHTML compliant markup [In reply to] Can't Post

Hi Davy:

I don't know XHTML, but if you give me a set of the compliant tags for XHTML I can give it a try and. if I succeed I'll make it a configurable option so the editor renders HTML or XHTML depending on the user's choice.


Don't give up!!
http://webstationone.com/test/htmlarea


davy
New User

Oct 5, 2003, 6:22 AM

Post #4 of 20 (5502 views)
Shortcut
Re: [Luis] htmlArea 2.03 and XHTML compliant markup [In reply to] Can't Post

Hi Luis,

XHTML is basicly HTML wich is XML compliant..

- all tags must be in lowercase
- all atributes must be quoted(double quotes)
- no short attributes (checked="yes" in instead of checked for instance)
- all tags must be closed (also <br>, <hr>, <img> etc.). Open tags must be closed too

Example <img src="image.jpg" width="100" height="100" />

Also check: http://www.w3schools.com/xhtml/xhtml_html.asp

Thanks for your time

Best regards,

Davy


brunny
Novice

Oct 9, 2003, 11:12 AM

Post #5 of 20 (5406 views)
Shortcut
Re: [davy] htmlArea 2.03 and XHTML compliant markup [In reply to] Can't Post

A correction for davy-s POST:

In XHTML the minimized attributes, such as checked (like in davy's POST), should be written like doubleing the attribute's name in the value, so NOT checked="yes", but checked="checked".
Empty tags must be(!) closed, with a '/', and must have azn extra space before it.

BTW, if HTMLArea awould produce an XHTML valid code, this would be the best WYSIWYG editor!

Byez,
Brunny


mossimo
User

Oct 9, 2003, 1:45 PM

Post #6 of 20 (5395 views)
Shortcut
Re: [davy] htmlArea 2.03 and XHTML compliant markup [In reply to] Can't Post

Hi all

I have made many modifications to make htmlArea XHTML compliant. I am very close to 100% compliant markup. I am to busy right now to post the changes but give me a day or two and I will share what I have done.

mossimo

"When in danger or in doubt, run in circles, scream and shout."


davy
New User

Oct 9, 2003, 3:23 PM

Post #7 of 20 (5388 views)
Shortcut
Re: [brunny] htmlArea 2.03 and XHTML compliant markup [In reply to] Can't Post


In Reply To
A correction for davy-s POST:

In XHTML the minimized attributes, such as checked (like in davy's POST), should be written like doubleing the attribute's name in the value, so NOT checked="yes", but checked="checked".
Empty tags must be(!) closed, with a '/', and must have azn extra space before it.

BTW, if HTMLArea awould produce an XHTML valid code, this would be the best WYSIWYG editor!

Byez,
Brunny


Hi Brunny,

Yes your right , made some mistakes in the XHTML valid code there. I agree that HTMLArea is the best WYSIWYG editor is it would produce WYSIWYG. Have anyone already tried out the HTMLArea 3.0 Beta release?

Best regards,

Davy


davy
New User

Oct 9, 2003, 3:25 PM

Post #8 of 20 (5387 views)
Shortcut
Re: [mossimo] htmlArea 2.03 and XHTML compliant markup [In reply to] Can't Post

Hi Mossimo,

That would be Great!!!CoolCoolCool

Best regards,

Davy


brunny
Novice

Oct 10, 2003, 4:31 PM

Post #9 of 20 (5358 views)
Shortcut
Re: [mossimo] htmlArea 2.03 and XHTML compliant markup [In reply to] Can't Post

I'm already waiting for that! I need that stuff!

Hope will it be here soon in my developement to use it!

Byez,
Brunny


mossimo
User

Oct 15, 2003, 2:40 PM

Post #10 of 20 (5280 views)
Shortcut
Re: [mossimo] htmlArea 2.03 and XHTML compliant markup [In reply to] Can't Post

XHTML Compliant Markup Using Regular Expressions

Sorry for the delay I have too much on my plate.
I put it all in a zip detailed instructions are included.

Please use with caution this is still under development.
What I put in the zip is the most stable of what I have and
So far it is working very well.

Please let me know how it works for you.

mossimo

"When in danger or in doubt, run in circles, scream and shout."
Attachments: CleanHTML.zip (11.9 KB)


squiz
Novice

Oct 15, 2003, 4:59 PM

Post #11 of 20 (5270 views)
Shortcut
Re: [davy] htmlArea 2.03 and XHTML compliant markup [In reply to] Can't Post

I had the same problem in my CMS, but I'm not really after XHTML compliant code - just HTML4.1 Transitional.

Anyway, I developed a PHP based version of HTMLArea3 (you can see the thread in the htmlarea addons forum) which includes a plugin to use HTMLTidy to tidy the HTML. HTMLTidy can be set up to create XHTML compliant HTML. Rather than reinvent the wheel, why not try either using the PHP mod or HTMLTidy yourself.

Greg


open_hand
New User

Oct 21, 2003, 9:42 AM

Post #12 of 20 (5174 views)
Shortcut
Re: [mossimo] htmlArea 2.03 and XHTML compliant markup [In reply to] Can't Post

Okay... I'm missing something. The instructions are not too clear on how to implement this.


Quote


the file called code.js and add it to the cleanHtml function in editor.js.

There is no cleanHtml function in editor.js.

Please help?

thanks


mossimo
User

Oct 21, 2003, 5:46 PM

Post #13 of 20 (5152 views)
Shortcut
Re: [open_hand] htmlArea 2.03 and XHTML compliant markup [In reply to] Can't Post

No youíre not missing anything I am.
I forgot to mention this is designed for an editor that already has the cleanHtml function added such as the luis editor.

"When in danger or in doubt, run in circles, scream and shout."


mossimo
User

Oct 21, 2003, 5:56 PM

Post #14 of 20 (5150 views)
Shortcut
Re: [squiz] htmlArea 2.03 and XHTML compliant markup [In reply to] Can't Post


Quote
Rather than reinvent the wheel


Yes I have seen your work and it's very impressive I like what you have done.
Having to have Tidy installed is a major drawback though. I would like htmlArea to be able to handle this itís self so that was my motivation.

"When in danger or in doubt, run in circles, scream and shout."


squiz
Novice

Oct 21, 2003, 6:01 PM

Post #15 of 20 (5148 views)
Shortcut
Re: [mossimo] htmlArea 2.03 and XHTML compliant markup [In reply to] Can't Post

Yeah, I know what you mean. I felt the same way until I realised that IE would never make compliant HTML and that there are so many variables that need to be checked to create compliant HTML that any JS I could write to do it would take years.

Mind you, If someone gets it going I'd be happy to help/test/comment.

Greg


open_hand
New User

Oct 22, 2003, 9:06 AM

Post #16 of 20 (5123 views)
Shortcut
Re: [mossimo] htmlArea 2.03 and XHTML compliant markup [In reply to] Can't Post

Thanks Mossimo.

I found what I'm looking for in ver. 3.0 beta though.

Nice work. You made me a very happy man today.Cool


brunny
Novice

Oct 25, 2003, 3:48 PM

Post #17 of 20 (5079 views)
Shortcut
Re: [mossimo] htmlArea 2.03 and XHTML compliant markup [In reply to] Can't Post

Hi mossimo!

I've found a 'big' problem in the cleaner script...

You're puting thestyle attribute and it's value to lowercase, but if you've got a style, like: "background: url('Link/That/Has/UpperCased/Chars/pict.ext');"
than if it's in a linux server, the image will not be found, because of the different case.

Byez,
Brunny


mossimo
User

Oct 26, 2003, 5:34 PM

Post #18 of 20 (5056 views)
Shortcut
Re: [brunny] htmlArea 2.03 and XHTML compliant markup [In reply to] Can't Post

Hi, Brunny

Can you give me an example of your code. If I type in this
<div id="me" style="background:url(Images/Erinfo.gif); width:326px; height:61px">
the case is not changed I need to duplicate your problim.

Thanks

"When in danger or in doubt, run in circles, scream and shout."


brunny
Novice

Oct 27, 2003, 6:05 AM

Post #19 of 20 (5037 views)
Shortcut
Re: [mossimo] htmlArea 2.03 and XHTML compliant markup [In reply to] Can't Post

Sorry than!

I didn't try the code, only watch it... And I found that maybe thes could be a problem, but if you solved this, than it's great! :)

Byez,
Brunny


kwillems
User

Aug 1, 2004, 2:00 PM

Post #20 of 20 (3310 views)
Shortcut
Re: [brunny] htmlArea 2.03 and XHTML compliant markup [In reply to] Can't Post

Mossimo, since your code was posted in october 2003 i was wondering if you've made some changes to it lately?
I'm using the Luis-version and desperatly would like it to produce valid XHTML.

Thanks in advance!

 
 
 


Search for (options)