Gossamer Forum
Home : General : Perl Programming :

wysiwyg - info wanted...

Quote Reply
wysiwyg - info wanted...
Hi

Wonder if anyone have any linnks on how to use WYSIWYG editor in perl (or php or javascript), like GT uses in GT Links SQL and GT Mail of newer versions.

I have a article website where many user might add their articles, and would like the option to let them type in with a WYSIWYG editor. Itīs not using GT.

Regards,
Are

Quote Reply
Re: wysiwyg - info wanted... In reply to
GT doesn't use perl, php or javascript for their editor.

A quick search on any search engine will provide you with plenty of resources.

As far as I know you can't make a wysiwyg editor using perl or php, it has to be like an applet or exe (I think anyway).

Paul
Installations:http://wiredon.net/gt/
Support: http://wiredon.net/forum/

Quote Reply
Re: wysiwyg - info wanted... In reply to
I thought they used somekind of call to office plugin, something like when .doc opens MS Word.

I have search using Google.com and at Microsoft.com, but I am am bit unsure what I am looking for. So far I have not found anything related to using WYSIWYG directly on a webpage.

Are

Quote Reply
Re: wysiwyg - info wanted... In reply to
Hi Are:

The GT WYSIWYG HTML editor uses DHTML (and iframe). And it was coded by a GT programmer (Scott). You can see it at:

http://admin:admin@www.gossamer-threads.com/...e=editor_iframe.html

The editor is not called this way so it will not display - but check the page source to see the code. BTW, the code is copywrited by GT!


Dan Cool

LotusLand
Vancouver, BC, Canada
Top Ranked City in World for Quality of Life
Quote Reply
Re: wysiwyg - info wanted... In reply to
ok...but why does it call for Office ? If Office it not installed 100% right, it calls for setup of office.

Isnīt the layout the simple wysiwyg editor that office has ?

Quote Reply
Re: wysiwyg - info wanted... In reply to
This may be a bug.
I remember reading that Alex said something like this was happening on the GT computers.

Paul
Installations:http://wiredon.net/gt/
Support: http://wiredon.net/forum/

Quote Reply
Re: wysiwyg - info wanted... In reply to
There's a very neat tag attribute Microsoft added to IE5.5 called "contentEditable." I haven't played around all that much with it, but if you want to read about it, go to http://msdn.microsoft.com and search for "contentEditable." That will give you a starting point.

By the way, the HTML editor only works in IE 5.5 and later; it asking for the Office CD is a known bug, but unfortunately it's in Microsoft's code and we can do nothing about it. :(

I haven't played around with the contentEditable attribute much, but you should find more than enough information on it by searching msdn.microsoft.com for "contentEditable".

Good luck :)

Jason Rhinelander
Gossamer Threads
jason@gossamer-threads.com
Quote Reply
Re: wysiwyg - info wanted... In reply to
Good suggestion...however, with over 45-50% of Internet users using Netscape...a solution for IE 5.5 only is not very accessible, now is it? Wink

Regards,

Eliot Lee
Quote Reply
Re: wysiwyg - info wanted... In reply to
Nope, but unfortunately as far as I know there is NO way to do something like this in Netscape or IE versions prior to 5.5. :(

Jason Rhinelander
Gossamer Threads
jason@gossamer-threads.com
Quote Reply
Re: wysiwyg - info wanted... In reply to
40-50%? Fraid the battle is over:

Code:
2291654: 86.56%: Internet Explorer
2104294: 79.48%: MSIE/5
81280: 3.07%: MSIE/4
100793: 3.81%: MSIE/6
5200: 0.20%: MSIE/3
83: : MSIE/2
222708: 8.41%: Netscape
196722: 7.43%: Mozilla/4
14830: 0.56%: Mozilla/3
11048: 0.42%: Mozilla/5
23: : Mozilla/8
61: : Mozilla/2
6: : Mozilla/1
That's this weeks stats..

Cheers,

Alex

--
Gossamer Threads Inc.
Quote Reply
Re: wysiwyg - info wanted... In reply to
That is within one context of the GT web site...if you compare "global" statistics...Netscape is used more than what you have provided...Wink

Regards,

Eliot Lee
Quote Reply
Re: wysiwyg - info wanted... In reply to
Maybe but although a skewed and non-random sampling, GT has a large sample size. I see a similar breakdown on my sites. Plus check out: http://www.statmarket.com/SM?c=stat022201

I still web author with both MSIE and Netscape in mind (current versions), but I focus primarily on the MSIE browser. If I cannot get something to work with Netscape, but it is something I like and/or require, then MSIE wins - but I usually try to compensate (usually via JS) to provide an alternative, or message to Netscape users. And as far as other browsers like webTV, I'm to the point of denying them site access.


Dan Cool

LotusLand
Vancouver, BC, Canada
Top Ranked City in World for Quality of Life
Quote Reply
Re: wysiwyg - info wanted... In reply to
Here are some more stats from one of my sites.....

1 24189 53.61% Mozilla/4.0 (compatible; MSIE 5.5; Windows 98; IE5_Imagen128_
2 4075 9.03% Mozilla/4.0 (compatible; MSIE 5.01; Windows 98)
3 3683 8.16% Mozilla/4.0 (compatible; MSIE 5.5; Windows 98)
4 2066 4.58% Mozilla/4.0 (compatible; MSIE 5.0; Windows 98; DigExt)
5 1398 3.10% Mozilla/4.76 [en] (Win98; U)
6 1081 2.40% Mozilla/4.0 (compatible; MSIE 5.5; Windows 98; Win 9x 4.90)
7 628 1.39% Mozilla/3.01 (compatible;)
8 576 1.28% Mozilla/4.0 (compatible; MSIE 5.0; AOL 6.0; Windows 98; DigEx
9 476 1.05% Mozilla/4.73 [en] (Win98; U)
10 457 1.01% Mozilla/4.0 (compatible; MSIE 5.01; Windows 98; AtHome0107)
11 430 0.95% Mozilla/4.0 (compatible; MSIE 5.01; Windows NT; ONTC CCSG)
12 366 0.81% Mozilla/4.0 (compatible; MSIE 4.01; Windows 95)
13 338 0.75% Mozilla/4.0 (compatible; MSIE 5.0; Windows 98; DigExt; AtHome
14 327 0.72% Mozilla/4.0 (compatible; MSIE 4.01; Windows 98)
15 323 0.72% Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)

It's alright for some that get 2 million hits Smile!

Paul
Installations:http://wiredon.net/gt/
Support: http://wiredon.net/forum/

Quote Reply
Re: wysiwyg - info wanted... In reply to
Alex,

Even if Netscape is only 8.41% that is significant and would impact a site, add to that the other browsers that are not IE and most webmasters can't ignore other browsers and program for IE only. If I'm reading your numbers correctly non-IE browsers account for almost 15% of this site's traffice. And the 222,708 Netscape users are a lot of folks for any website.

--Curt

Quote Reply
Re: wysiwyg - info wanted... In reply to
Hi Curt:

No site and no application can be all things to all people. Sometimes a segment of the population will be excluded from certain components on the basis of the browser they utilize. There are fundamental differences between all browsers that precludes an author in some instances from making an application fully cross-browser compatible. This appears to be the case here. However, I'm confident that GT is looking for a solution but I'm dubious if one exists as DHTML 'seems' to be more skewed towards to MSIE. Nevertheless, some DHTML code works under MSIE exclusively, and others under Netscape only. There are cross-browser DHTML applications, but I'm guessing a WYSIWYG HTML editor is not one of them - at least not now. The villian here is Billy Gates Wink


Dan Cool

LotusLand
Vancouver, BC, Canada
Top Ranked City in World for Quality of Life
Quote Reply
Re: wysiwyg - info wanted... In reply to
Dan,

Thanks for the imput. My only point is that it is that a webmaster can't afford to just ignore the whole segment that doesn't use IE. Sure there will be differences. But if the whole site hinges on the features of IE version 79.3 run on a Pentium XXII with a 30 tetrabyte clock speed and 57 downloads and plug-ins, then there are going to be some people that are left out.

I have looked at GT on Netscape. It does great even on 4.0

Alex knows his stuff.

And sure, there will be hold outs that never upgrade. There may be some people using Netscape 2.0 on a 14.4 modem. I'm not suggesting that you design for them. But, when 15% (or more, maybe much more) are not using a specific browser, it is short-sighted to assume that the 85% (or less) are the only "real" users.

Quote Reply
Re: wysiwyg - info wanted... In reply to
I'm not suggesting ignoring them by any means, half of our developers here use Netscape on Linux on a daily basis (although they lament about it daily).

However, something like the WYSIWYG editor is not possible on Netscape as it depends heavily on IE controls. I think providing something like the HTML editor to the other 85% is definately worthwhile as long as the other 15% have something that is still usable.

Cheers,

Alex

--
Gossamer Threads Inc.