source: trunk/admin/inc/funzioni.php@ 364

Last change on this file since 364 was 239, checked in by luc, 9 years ago

Admin: correzione visulaizzazione immissione dati spoglio per Chrome e Safari - Aggiornamento dell'editor da FCKeditor a CKeditor , accessibili anche a Chrome e Safari.

File size: 1.4 KB
Line 
1<?php
2
3/*
4#funzione sorpassat da CKeditor 2015
5
6###########################
7# FCKeditor
8###########################
9
10function js_textarea($name, $value, $config, $cols = 50, $rows = 10)
11{
12 global $editor,$ed_user;
13# $config=$ed_user;
14 # Don't waste bandwidth by loading WYSIWYG editor for crawlers
15 if ($editor == 0 or !isset($_COOKIE))
16 {
17 echo "<textarea name=\"$name\" cols=\"$cols\" rows=\"$rows\">$value</textarea>";
18 } else {
19 @include_once(INCLUDE_PATH."../../inc/fckeditor/fckeditor.php");
20 $oFCKeditor = new FCKeditor($name) ;
21 $oFCKheight = $rows * 20;
22 $oFCKeditor->Height = "$oFCKheight";
23 $oFCKeditor->ToolbarSet = "$config" ;
24 $oFCKeditor->InstanceName = "$name" ;
25 $oFCKeditor->Value = "$value" ;
26 $oFCKeditor->Create() ;
27 }
28}
29
30
31function js_textarea_html($name, $value, $config, $cols = 50, $rows = 10)
32{
33 global $editor,$ed_user;
34# $config=$ed_user;
35
36 # Don't waste bandwidth by loading WYSIWYG editor for crawlers
37 if ($editor == 0 or !isset($_COOKIE))
38 {
39 echo "<textarea name=\"$name\" cols=\"$cols\" rows=\"$rows\">$value</textarea>";
40 } else {
41 @include_once(INCLUDE_PATH."../../inc/fckeditor/fckeditor.php");
42 $oFCKeditor = new FCKeditor($name) ;
43 $oFCKheight = $rows * 20;
44 $oFCKeditor->Height = "$oFCKheight";
45 $oFCKeditor->ToolbarSet = "$config" ;
46 $oFCKeditor->InstanceName = "$name" ;
47 $oFCKeditor->Value = "$value" ;
48 $wysiwygHTML = $oFCKeditor->CreateHtml() ;
49 return $wysiwygHTML;
50 }
51}
52*/
53?>
Note: See TracBrowser for help on using the repository browser.