<?php /* * plugin for phpList to provide the FCKeditor in the compose campaign page * * works with the FCKeditor version 2.6.8 * */ class fckphplist extends phplistPlugin { public $name = "FCKeditor plugin for phpList"; public $coderoot = "fckphplist/"; public $editorProvider = true; public $version = "0.2"; public $authors = 'Michiel Dethmers'; public $enabled = 1; public $description = 'The original WYSIWYG editor for phpList'; public $settings = array( "fckeditor_width" => array ( 'value' => 600, 'description' => 'Width in px of FCKeditor Area', 'type' => "integer", 'allowempty' => 0, 'min' => 100, 'max' => 800, 'category'=> 'composition', ), "fckeditor_height" => array ( 'value' => 600, 'description' => 'Height in px of FCKeditor Area', 'type' => "integer", 'allowempty' => 0, 'min' => 100, 'max' => 800, 'category'=> 'composition', ), "fckeditortoolbar_row2" => array ( 'value' => '', 'description' => 'Second row of toolbar elements in the editor', 'type' => "text", 'allowempty' => 1, 'category'=> 'composition', ), "fckeditor_path" => array ( 'value' => 'plugins/fckphplist/fckeditor/', 'description' => 'Public path to the FCKeditor', 'type' => "text", 'allowempty' => 0, 'category'=> 'composition', ), ); function __construct() { parent::__construct(); $this->coderoot = dirname(__FILE__).'/fckphplist/'; } function adminmenu() { return array( ); } public function dependencyCheck() { return array( 'phpList version' => version_compare(VERSION, '3.0.12') >= 0, 'PHP version' => PHP_VERSION_ID > 50300, 'No other editor enabled' => empty($GLOBALS["editorplugin"]) || $GLOBALS["editorplugin"] == "fckphplist", ); } function editor($fieldname,$content) { if (!is_file($this->coderoot.'/fckeditor/fckeditor.php')) { return '<textarea name="'.$fieldname.'">'.htmlspecialchars($content).'</textarea>'; } include_once $this->coderoot.'/fckeditor/fckeditor.php'; if (!class_exists('FCKeditor')) return 'Editor class not found'; $oFCKeditor = new FCKeditor($fieldname) ; $fckPath = getConfig("fckeditor_path"); $oFCKeditor->BasePath = $fckPath; $oFCKeditor->ToolbarSet = 'Default' ; $oFCKeditor->Value = $content; $w = getConfig("fckeditor_width"); $h = getConfig("fckeditor_height"); if (isset($_SESSION["fckeditor_height"])) { $h = sprintf('%d',$_SESSION["fckeditor_height"]); } # for version 2.0 if ($h < 400) { $h = 400; } $oFCKeditor->Height = $h; $oFCKeditor->Width = $w; return $oFCKeditor->CreateHtml(); } }
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
CKEditorPlugin | Folder | 0755 |
|
|
CaptchaPlugin | Folder | 0755 |
|
|
Common | Folder | 0755 |
|
|
CommonPlugin | Folder | 0755 |
|
|
SegmentPlugin | Folder | 0755 |
|
|
UpdaterPlugin | Folder | 0755 |
|
|
fckphplist | Folder | 0755 |
|
|
.htaccess | File | 462 B | 0644 |
|
CKEditorPlugin.php | File | 15.15 KB | 0644 |
|
COPYING.txt | File | 34.32 KB | 0644 |
|
CaptchaPlugin.php | File | 8.85 KB | 0644 |
|
CommonPlugin.php | File | 6.63 KB | 0644 |
|
SegmentPlugin.php | File | 17.99 KB | 0644 |
|
UpdaterPlugin.php | File | 2.04 KB | 0644 |
|
campaignslicer.php | File | 4.44 KB | 0644 |
|
dateplaceholder.php | File | 4.77 KB | 0644 |
|
disposablemailblock.php | File | 9.69 KB | 0644 |
|
domainthrottlemap.php | File | 12.41 KB | 0644 |
|
embedremoteimages.php | File | 2.49 KB | 0644 |
|
fckphplist.php | File | 2.74 KB | 0644 |
|
inviteplugin.php | File | 3.89 KB | 0644 |
|
subjectLinePlaceholdersPlugin.php | File | 5.27 KB | 0644 |
|
update.sh | File | 66 B | 0644 |
|