taoguan / jwysiwyg

Automatically exported from code.google.com/p/jwysiwyg
0 stars 0 forks source link

where's the sample html file? #113

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
when i download the latest version... there's no sample html in the zipped
file... why can't there be a sample html file like how www.dynamicdrive.com
does it??? some of us web people only know how to edit, not construct...
and without a sample html file to edit, it becomes impossible for me...
even searching google using keywords "jWYSIWYG demo" did not yield any
worthy results. pls help. thanks.

Original issue reported on code.google.com by quads...@gmail.com on 30 May 2009 at 12:19

GoogleCodeExporter commented 8 years ago
Agree. Needs demo.

Original comment by sarimar...@gmail.com on 2 Jun 2009 at 9:16

GoogleCodeExporter commented 8 years ago
the html is simple. Three files are needed: jquery-1.2.3.pack.js (or any jquery-
1.2.3+), jquery.wysiwyg.js,jquery.wysiwyg.css

the source code zip file here contains the last two and a gif file which is 
used in 
css. So you have to download the jquery first.

A simple example:
--------------------------------------------------------------------------------
-

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 
Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Editor Test</title>
<script src="jquery-1.2.3.pack.js" type="text/javascript" /></script>
<script src="jquery.wysiwyg.js" type="text/javascript" /></script>
<link type="text/css" href="jquery.wysiwyg.css" rel="stylesheet" />
</head>

<body>
<script language="javascript">
$(function()
{
$('#wysiwyg').wysiwyg();
});
</script>

<textarea id="wysiwyg" cols="80" rows="30"></textarea>
</body>
</html>

Original comment by sherry.i...@gmail.com on 4 Jun 2009 at 4:47

GoogleCodeExporter commented 8 years ago
works great... thanks!

Original comment by quads...@gmail.com on 4 Jun 2009 at 8:19

GoogleCodeExporter commented 8 years ago
does it work if I put sth int the textarea for the default value, like this
ex:
<textarea id="wysiwyg" cols="80" rows="30"><br />aaa<br /></textarea>

if don't , how to do this?
thx

Original comment by ping...@gmail.com on 31 Jul 2009 at 12:00

GoogleCodeExporter commented 8 years ago
Here's a link to a demo using the above code:
http://www.kevinsheedy.ie/demo/jwysiwyg/jquery.wysiwyg.html
I think a simple demo like this should be added to the project itself in place 
of the 
screenshot.

Original comment by kevinshe...@gmail.com on 4 Nov 2009 at 9:09

GoogleCodeExporter commented 8 years ago
Is is just me or does the sample above not work very well.  The H1, H2, H3 tags 
for
example, do not function properly at all.  Tried on multiple browsers.  It 
either
does not respond or makes the entire text H1.  It seems like a very buggy and
unusable product at this point.

Original comment by ulliwe...@gmail.com on 7 Nov 2009 at 4:50

GoogleCodeExporter commented 8 years ago
I have to agree this does not work at all... too bad.

Original comment by markf...@gmail.com on 12 Nov 2009 at 6:05

GoogleCodeExporter commented 8 years ago
Agreed. I guess this is why there's no official demo. If the project is still 
in Alpha, 
that's fine. It would just be nice if the project's main page reflected this. 
At the 
moment, it implies a stable release.

Original comment by kevinshe...@gmail.com on 20 Nov 2009 at 9:25

GoogleCodeExporter commented 8 years ago
http://jwysiwyg.googlecode.com/svn/trunk/examples/index.html

Original comment by akzhan.a...@gmail.com on 8 Dec 2009 at 3:09

GoogleCodeExporter commented 8 years ago
Hi Akzhan. Thanks for the demo. It's exactly what we were looking for. Would 
you be 
able to put a link to this on the homepage? IMHO, a demo is the single most 
important 
part of the page. It's always the first thing I look for when looking at 
plugins. 
Thanks

Original comment by kevinshe...@gmail.com on 21 Dec 2009 at 11:55

GoogleCodeExporter commented 8 years ago
Yes, I suppose that it MUST be on home page.

Follow to the author.

Original comment by akzhan.a...@gmail.com on 21 Dec 2009 at 3:01

GoogleCodeExporter commented 8 years ago
Is there any way to see HTML code.

Original comment by ziya.int...@gmail.com on 24 Dec 2009 at 6:33

GoogleCodeExporter commented 8 years ago
$('#editor').wysiwyg('getContent') gets the HTML content.

Original comment by akzhan.a...@gmail.com on 30 Dec 2009 at 10:35

GoogleCodeExporter commented 8 years ago
Agree it would be good the have a "HTML" button...

Original comment by michael.martinides@gmail.com on 18 Jan 2010 at 10:42

GoogleCodeExporter commented 8 years ago
Simply do

$(#your-textarea').wysiwyg({ controls: { html: { visible: true } } });

as initializer.

Original comment by akzhan.a...@gmail.com on 24 Feb 2010 at 2:53

GoogleCodeExporter commented 8 years ago
http://github.com/akzhan/jwysiwyg

Original comment by akzhan.a...@gmail.com on 7 Apr 2010 at 4:36

GoogleCodeExporter commented 8 years ago
jWYSIWYG is really a nice plugin fir jQuery. However, the above example link 
does not work. 

I made a demo based on provided example in github and here it is,
http://nazmulweb.com/wysiwyg/

Original comment by nazmul.h...@gmail.com on 8 Jul 2010 at 3:35