diff --git a/public_html/css/default/LSformElement_pre.css b/public_html/css/default/LSformElement_pre.css new file mode 100644 index 00000000..df6df8e9 --- /dev/null +++ b/public_html/css/default/LSformElement_pre.css @@ -0,0 +1,4 @@ +p.LSformElement_pre { + white-space: pre-line; + word-wrap: break-word; +} diff --git a/public_html/includes/class/class.LSattr_html_pre.php b/public_html/includes/class/class.LSattr_html_pre.php new file mode 100644 index 00000000..b9d8683c --- /dev/null +++ b/public_html/includes/class/class.LSattr_html_pre.php @@ -0,0 +1,36 @@ + + */ +class LSattr_html_pre extends LSattr_html_textarea { + + var $LSformElement_type = 'pre'; + +} + +?> diff --git a/public_html/includes/class/class.LSformElement_pre.php b/public_html/includes/class/class.LSformElement_pre.php new file mode 100644 index 00000000..b0ad0af1 --- /dev/null +++ b/public_html/includes/class/class.LSformElement_pre.php @@ -0,0 +1,50 @@ + + */ + +class LSformElement_pre extends LSformElement_textarea { + + var $fieldTemplateExtraClass = 'LSformElement_pre'; + + /** + * Retourne les infos d'affichage de l'élément + * + * Cette méthode retourne les informations d'affichage de l'élement + * + * @retval array + */ + function getDisplay(){ + $return = parent :: getDisplay(); + LSsession :: addCssFile('LSformElement_pre.css'); + return $return; + } + +} + +?>