I got this:
Code:
| <html> |
| <head> |
| <title>Yahoo! editor</title> |
| <!-- Skin CSS file --> |
| <link rel="stylesheet" type="text/css" href="http://yui.yahooapis.com/2.5.1/build/assets/skins/sam/skin.css"> |
| <!-- Utility Dependencies --> |
| <script type="text/javascript" src="http://yui.yahooapis.com/2.5.1/build/yahoo-dom-event/yahoo-dom-event.js"></script> |
| <script type="text/javascript" src="http://yui.yahooapis.com/2.5.1/build/element/element-beta-min.js"></script> |
| <!-- Needed for Menus, Buttons and Overlays used in the Toolbar --> |
| <script src="http://yui.yahooapis.com/2.5.1/build/container/container_core-min.js"></script> |
| <!-- Source file for Rich Text Editor--> |
| <script src="http://yui.yahooapis.com/2.5.1/build/editor/simpleeditor-beta-min.js"></script> |
| </head> |
| <body class="yui-skin-sam"> |
| <textarea name="msgpost" id="msgpost" cols="50" rows="10"> |
| <strong>Your</strong> HTML <em>code</em> goes here.<br> |
| This text will be pre-loaded in the editor when it is rendered. |
| </textarea> |
| </body> |
and according to the description here: http://developer.yahoo.com/yui/editor/
I need to add this:
Code:
| var myEditor = new YAHOO.widget.SimpleEditor('msgpost', { |
| height: '300px', |
| width: '522px', |
| dompath: true //Turns on the bar at the bottom |
| }); |
| myEditor.render(); |
But neither in the header nor in the body get's it to work properly