root/devel-backup/units/tinymce/file_embed_js.php

Revision 142, 202 bytes (checked in by ben, 3 years ago)

Embedding files now works (albeit with the old {{file:$id}} convention) with the wysiwyg editor

  • Property svn:eol-style set to native
Line 
1 <?php
2
3     if (logged_on) {
4         
5         $run_result = "\ntinyMCE.execCommand(\"mceInsertContent\",true,\"{{file:\" + form.weblog_add_file.options[form.weblog_add_file.selectedIndex].value + \"}}\");\n";
6         
7     }
8
9 ?>
Note: See TracBrowser for help on using the browser.