Changeset 45 for branches/jf.hovinne/0.3/index.html
- Timestamp:
- 11/03/06 17:11:55 (4 years ago)
- Files:
-
- 1 modified
-
branches/jf.hovinne/0.3/index.html (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/jf.hovinne/0.3/index.html
r43 r45 4 4 <title>WYMeditor</title> 5 5 <style type="text/css"> 6 .wym editor_iframe { width: 600px; }7 .wym editor_menu ul { padding:0; margin: 0; }8 .wym editor_menu li { list-style: none; float: left; margin-right: 0.7em; }9 .wym editor_content { clear: both; }6 .wym_iframe { width: 75%; } 7 .wym_menu ul { padding:0; margin: 0; } 8 .wym_menu li { list-style: none; float: left; margin-right: 0.7em; } 9 .wym_content { clear: both; } 10 10 </style> 11 11 <script type="text/javascript" src="wymeditor/jquery.js"></script> 12 12 <script type="text/javascript" src="wymeditor/wymeditor.js"></script> 13 <script type="text/javascript"> 14 $(function() { 15 16 //create wymeditor instance(s) 17 //we replace each matched element by a Wymeditor instance 18 //this code is customizable 19 20 var elements=$(".wymeditor"); 21 var options = { 22 htmlToInsert: "<div class='wymeditor'></div>", 23 pageToLoad: "wymeditor/wymeditor.html", 24 iframeClass: ".wym_iframe", 25 execClass: ".wym_exec", 26 toggleClass: ".wym_toggle" 27 } 28 29 $(elements).each(function(i) { 30 var wymeditor=new Wymeditor($(this),i,options); 31 }); 32 33 }); 34 </script> 13 35 </head> 14 36 15 37 <body> 16 38 <textarea id="txt1" rows="8" cols="40" class="wymeditor"><p>First textarea !</p></textarea><br/> 17 <textarea id="txt2" rows="8" cols="40" class="wymeditor"><p>Second textarea</p></textarea> 39 <textarea id="txt2" rows="8" cols="40" class="wymeditor"><p>Second textarea</p></textarea><br /> 40 <input type="text" id="txt3" class="wymeditor" value="<p>First input text</p>" /> 18 41 </body> 19 42