[Devel] r276 - branches/dui
Loïc Dayot
ldayot at ouvaton.org
Lun 28 Mai 23:08:04 CEST 2007
J'ai oublié (désolé) d'isolé la modification ci-dessous, qui regarde si
tiny_mce est présent sur le serveur et l'utilise dans l'affirmative.
Tiny_mce est une sorte d'éditeur wysiwyg pour les textarea.
Loïc.
> Modified: branches/dui/funcs.inc.php
> ==============================================================================
> --- branches/dui/funcs.inc.php (original)
> +++ branches/dui/funcs.inc.php Mon May 28 22:58:53 2007
> /**
> * Format an event in an ASCII format, suitable for e-mails
> *
> @@ -754,6 +799,30 @@
> $submitter = escape_form_string($submitter);
> $tags = escape_form_string($tags);
>
> + if (file_exists("tiny_mce"))
> + {
> + ?>
> +<!-- tinyMCE -->
> +<script language="javascript" type="text/javascript" src="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",
> + language : "fr",
> + theme : "advanced",
> + theme_advanced_buttons1 : "bold,italic,underline,separator, bullist,numlist,undo,redo,link,unlink",
> + theme_advanced_buttons2 : "",
> + theme_advanced_buttons3 : "",
> + theme_advanced_toolbar_location : "top",
> + theme_advanced_toolbar_align : "left",
> + theme_advanced_path_location : "bottom",
> + extended_valid_elements : "a[name|href|target|title|onclick]"
> + });
> +</script>
> +<!-- /tinyMCE -->
> +<?php
> + } // end if tiny_mce
> +
> ?>
> <table>
>
Plus d'informations sur la liste de diffusion Devel