120 views

TinyMCE with absolute URLs and including domain on links and images

January 14, 08 by G2 | Puesto en GNU, Programacion

En un proyecto llamado TL Weblog, vengo usando el editor TinyMCE, para lo cual he habilitado la opción de las imágenes se puedan ver sin ningún problema así trabaje con Mod_rewrite.

El resultado ha sido muy bueno y el codigo empleado es el siguiente(lo que está en negrita es el codigo que se añadio al que viene por defecto):

<!-- tinyMCE --> <script language='javascript' type='text/javascript' src='tinymce/jscripts/tiny_mce/tiny_mce.js'></script> <script language='javascript' type='text/javascript'> // Notice: The simple theme does not use all options some of them are limited to the advanced theme tinyMCE.init({ mode : "textareas", elements : 'abshosturls', plugins : 'advlink,advimage', relative_urls : false, remove_script_host : false, theme : "advanced", plugins :"flash", theme_advanced_buttons1_add_before : "save,separator", theme_advanced_buttons1_add : "flash", theme_advanced_toolbar_location : "top", theme_advanced_toolbar_align : "left", extended_valid_elements : "a[name|href|target|title|onclick],img[class|src|border=0|alt|title|hspace|vspace|width|height|align|onmouseover|onmouseout|name],hr[class|width|size|noshade],font[face|size|color|style],span[class|align|style]", flash_external_list_url : "example_data/example_flash_list.js" }); </script> <!-- tinyMCE -->
Para más información te recomiendo moxiecode.

Tambien te puede interesar

Tags: , ,

This entry no have comments... but you can be first.

Leave a Reply

Comment spam protected by SpamBam