| Current Path : /home/s/u/n/sunflowe/www2/j15/plugins/editors/jce/tiny_mce/plugins/paste/classes/ |
| Current File : /home/s/u/n/sunflowe/www2/j15/plugins/editors/jce/tiny_mce/plugins/paste/classes/config.php |
<?php
/**
* @version $Id: config.php 48 2009-05-27 10:46:36Z happynoodleboy $
* @package JCE
* @copyright Copyright (C) 2005 - 2009 Ryan Demmer. All rights reserved.
* @author Ryan Demmer
* @license GNU/GPL
* JCE is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
*/
class PasteConfig
{
function getConfig(&$vars)
{
$jce =& JContentEditor::getInstance();
$params = $jce->getPluginParams('paste');
$vars['paste_dialog_width'] = $jce->getParam($params, 'paste_dialog_width', '450', '450');
$vars['paste_dialog_height'] = $jce->getParam($params, 'paste_dialog_height', '400', '400');
$vars['paste_remove_empty_paragraphs'] = $jce->getParam($params, 'paste_remove_empty_paragraphs', '1', '1');
$vars['paste_auto_cleanup_on_paste'] = $jce->getParam($params, 'paste_auto_cleanup_on_paste', '1', '1');
$vars['paste_remove_styles'] = $jce->getParam($params, 'paste_remove_styles', '0', '0');
$vars['paste_strip_class_attributes'] = $jce->getParam($params, 'paste_strip_class_attributes', 'all', 'all');
$vars['paste_strip_class_attributes'] = $jce->getParam($params, 'paste_retain_style_properties', '', '');
$vars['paste_remove_spans'] = $jce->getParam($params, 'paste_remove_spans', '1', '1');
$vars['paste_remove_styles_if_webkit'] = $jce->getParam($params, 'paste_remove_styles_if_webkit', '0', '0');
}
}
?>