Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <form method="post" action="hlavna1.php?akcia=update&id=<? echo $id; ?>">
- <div>
- <td width=30%>Nadpis stránky:</td>
- <td width=70%><input type=text name="nadpis_stranky" style="width:70%" value=<? echo $stranky_nadpis; ?>></td>
- <h3>Obsah stránky</h3>
- <!-- Gets replaced with TinyMCE, remember HTML in a textarea should be encoded -->
- <div>
- <textarea id="elm1" name="obsah_stranky" rows="15" cols="80" style="width: 80%">
- </textarea>
- </div>
- <!-- Some integration calls -->
- <a href="javascript:;" onmousedown="tinyMCE.get('elm1').show();">[Show]</a>
- <a href="javascript:;" onmousedown="tinyMCE.get('elm1').hide();">[Hide]</a>
- <a href="javascript:;" onmousedown="tinyMCE.get('elm1').execCommand('Bold');">[Bold]</a>
- <a href="javascript:;" onmousedown="alert(tinyMCE.get('elm1').getContent());">[Get contents]</a>
- <a href="javascript:;" onmousedown="alert(tinyMCE.get('elm1').selection.getContent());">[Get selected HTML]</a>
- <a href="javascript:;" onmousedown="alert(tinyMCE.get('elm1').selection.getContent({format : 'text'}));">[Get selected text]</a>
- <a href="javascript:;" onmousedown="alert(tinyMCE.get('elm1').selection.getNode().nodeName);">[Get selected element]</a>
- <a href="javascript:;" onmousedown="tinyMCE.execCommand('mceInsertContent',false,'<b>Hello world!!</b>');">[Insert HTML]</a>
- <a href="javascript:;" onmousedown="tinyMCE.execCommand('mceReplaceContent',false,'<b>{$selection}</b>');">[Replace selection]</a>
- <br />
- <input type="submit" name="save" value="Submit" />
- <input type="reset" name="reset" value="Reset" />
- </div>
- </form>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement