Advertisement
Guest User

Untitled

a guest
Jun 26th, 2017
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.59 KB | None | 0 0
  1. <form method="post" action="hlavna1.php?akcia=update&id=<? echo $id; ?>">
  2.     <div>
  3. <td width=30%>Nadpis stránky:</td>
  4.     <td width=70%><input type=text name="nadpis_stranky" style="width:70%" value=<? echo $stranky_nadpis; ?>></td>
  5.         <h3>Obsah stránky</h3>
  6.  
  7.         <!-- Gets replaced with TinyMCE, remember HTML in a textarea should be encoded -->
  8.         <div>
  9.             <textarea id="elm1" name="obsah_stranky" rows="15" cols="80" style="width: 80%">
  10.             </textarea>
  11.         </div>
  12.  
  13.         <!-- Some integration calls -->
  14.         <a href="javascript:;" onmousedown="tinyMCE.get('elm1').show();">[Show]</a>
  15.         <a href="javascript:;" onmousedown="tinyMCE.get('elm1').hide();">[Hide]</a>
  16.         <a href="javascript:;" onmousedown="tinyMCE.get('elm1').execCommand('Bold');">[Bold]</a>
  17.         <a href="javascript:;" onmousedown="alert(tinyMCE.get('elm1').getContent());">[Get contents]</a>
  18.         <a href="javascript:;" onmousedown="alert(tinyMCE.get('elm1').selection.getContent());">[Get selected HTML]</a>
  19.         <a href="javascript:;" onmousedown="alert(tinyMCE.get('elm1').selection.getContent({format : 'text'}));">[Get selected text]</a>
  20.         <a href="javascript:;" onmousedown="alert(tinyMCE.get('elm1').selection.getNode().nodeName);">[Get selected element]</a>
  21.         <a href="javascript:;" onmousedown="tinyMCE.execCommand('mceInsertContent',false,'<b>Hello world!!</b>');">[Insert HTML]</a>
  22.         <a href="javascript:;" onmousedown="tinyMCE.execCommand('mceReplaceContent',false,'<b>{$selection}</b>');">[Replace selection]</a>
  23.  
  24.         <br />
  25.         <input type="submit" name="save" value="Submit" />
  26.         <input type="reset" name="reset" value="Reset" />
  27.     </div>
  28. </form>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement