| 1 | <?xml version="1.0" encoding="UTF-8" ?> |
|---|
| 2 | <Module> |
|---|
| 3 | <ModulePrefs title="FCKEditor on Opensocial" summary="" description="" author="" author_email="" thumbnail="" screenshot="" height="500"> |
|---|
| 4 | <Require feature="opensocial-0.7"/> |
|---|
| 5 | </ModulePrefs> |
|---|
| 6 | <Content type="html"> |
|---|
| 7 | <![CDATA[ |
|---|
| 8 | <script type="text/javascript" src="http://www.mydomain.com/fckeditor/fckeditor.js"></script> |
|---|
| 9 | <script type="text/javascript"> |
|---|
| 10 | <!-- |
|---|
| 11 | |
|---|
| 12 | function startEditor() { |
|---|
| 13 | var oFCKeditor = new FCKeditor('FCKeditor1'); |
|---|
| 14 | oFCKeditor.BasePath = "http://www.mydomain.com/fckeditor/"; |
|---|
| 15 | oFCKeditor.ReplaceTextarea() ; |
|---|
| 16 | }; |
|---|
| 17 | |
|---|
| 18 | //--> |
|---|
| 19 | </script> |
|---|
| 20 | <div> |
|---|
| 21 | <br /> |
|---|
| 22 | <textarea id="FCKeditor1" name="FCKeditor1" rows="15" cols="80" style="width: 80%">This is <b>the</b> initial value.</textarea> |
|---|
| 23 | <br /> |
|---|
| 24 | <a href="javascript:startEditor();">Start Editor</a> |
|---|
| 25 | <br /> |
|---|
| 26 | </div> |
|---|
| 27 | ]]> |
|---|
| 28 | </Content> |
|---|
| 29 | </Module> |
|---|
| 30 | |
|---|