/[drupal]/contributions/modules/fckeditor/fckeditor.admin.inc
ViewVC logotype

Diff of /contributions/modules/fckeditor/fckeditor.admin.inc

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.1.2.44, Thu Oct 22 20:35:18 2009 UTC revision 1.1.2.45, Sat Oct 24 09:48:27 2009 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: fckeditor.admin.inc,v 1.1.2.43 2009/10/05 08:00:12 jorrit Exp $  // $Id: fckeditor.admin.inc,v 1.1.2.44 2009/10/22 20:35:18 jorrit Exp $
3  /**  /**
4   * FCKeditor - The text editor for Internet - http://www.fckeditor.net   * FCKeditor - The text editor for Internet - http://www.fckeditor.net
5   * Copyright (C) 2003-2008 Frederico Caldeira Knabben   * Copyright (C) 2003-2008 Frederico Caldeira Knabben
# Line 400  function fckeditor_admin_profile_form($f Line 400  function fckeditor_admin_profile_form($f
400            '!helppagelink' => l(t('help page'), 'admin/help/fckeditor', array('fragment' => 'fieldinclexcl')),            '!helppagelink' => l(t('help page'), 'admin/help/fckeditor', array('fragment' => 'fieldinclexcl')),
401          )) .          )) .
402        ' <ul>' .        ' <ul>' .
403        '<li>'. t('Path structure'). ': <strong>content_type@path.element_id</strong></li>'.        '<li>'. t('Path structure') .': <strong>content_type@path.element_id</strong></li>'.
404        '<li>'. t('The following wildcards are available: *, ?') .'</li>'.        '<li>'. t('The following wildcards are available: *, ?') .'</li>'.
405        '<li>'. t('Content type is optional. You may even specify only path or field id') .'</li>'.        '<li>'. t('Content type is optional. You may even specify only path or field id') .'</li>'.
406        '<li>'. t('Examples') .':<ul>'.        '<li>'. t('Examples') .':<ul>'.
# Line 503  function fckeditor_admin_profile_form($f Line 503  function fckeditor_admin_profile_form($f
503      '#type' => 'textfield',      '#type' => 'textfield',
504      '#title' => t('Width'),      '#title' => t('Width'),
505      '#default_value' => !empty($profile->settings['width']) ? $profile->settings['width'] : '100%',      '#default_value' => !empty($profile->settings['width']) ? $profile->settings['width'] : '100%',
506      '#description' => t('Width in pixels or percent.'). ' '. t('Example'). ': 400 '. t('or') .' 100%.',      '#description' => t('Width in pixels or percent.') .' '. t('Example') .': 400 '. t('or') .' 100%.',
507      '#size' => 40,      '#size' => 40,
508      '#maxlength' => 128,      '#maxlength' => 128,
509    );    );
# Line 540  function fckeditor_admin_profile_form($f Line 540  function fckeditor_admin_profile_form($f
540      '#default_value' => !empty($profile->settings['enter_mode']) ? $profile->settings['enter_mode'] : 'p',      '#default_value' => !empty($profile->settings['enter_mode']) ? $profile->settings['enter_mode'] : 'p',
541      '#options' => array(      '#options' => array(
542        'p' => '<p>',        'p' => '<p>',
543        'br' => '<br>',        'br' => '<br />',
544        'div' => '<div>'        'div' => '<div>'
545      ),      ),
546      '#description' => t('Set which tag FCKeditor should use when [Enter] key is pressed.')      '#description' => t('Set which tag FCKeditor should use when [Enter] key is pressed.')
# Line 552  function fckeditor_admin_profile_form($f Line 552  function fckeditor_admin_profile_form($f
552      '#default_value' => !empty($profile->settings['shift_enter_mode']) ? $profile->settings['shift_enter_mode'] : 'br',      '#default_value' => !empty($profile->settings['shift_enter_mode']) ? $profile->settings['shift_enter_mode'] : 'br',
553      '#options' => array(      '#options' => array(
554        'p' => '<p>',        'p' => '<p>',
555        'br' => '<br>',        'br' => '<br />',
556        'div' => '<div>'        'div' => '<div>'
557      ),      ),
558      '#description' => t('Set which tag FCKeditor should use when [Shift] + [Enter] is pressed.')      '#description' => t('Set which tag FCKeditor should use when [Shift] + [Enter] is pressed.')
# Line 564  function fckeditor_admin_profile_form($f Line 564  function fckeditor_admin_profile_form($f
564      '#default_value' => !empty($profile->settings['font_format']) ? $profile->settings['font_format'] : 'p;div;pre;address;h1;h2;h3;h4;h5;h6',      '#default_value' => !empty($profile->settings['font_format']) ? $profile->settings['font_format'] : 'p;div;pre;address;h1;h2;h3;h4;h5;h6',
565      '#size' => 40,      '#size' => 40,
566      '#maxlength' => 250,      '#maxlength' => 250,
567      '#description' => t('Semicolon separated list of HTML font formats.'). ' '. t('Allowed values are'). ': p;div;pre;address;h1;h2;h3;h4;h5;h6',      '#description' => t('Semicolon separated list of HTML font formats.') .' '. t('Allowed values are') .': p;div;pre;address;h1;h2;h3;h4;h5;h6',
568    );    );
569    
570    $form['output']['format_source'] = array(    $form['output']['format_source'] = array(
# Line 614  function fckeditor_admin_profile_form($f Line 614  function fckeditor_admin_profile_form($f
614        'none' => t('FCKeditor default')        'none' => t('FCKeditor default')
615      ),      ),
616      '#description' =>      '#description' =>
617        t('Defines the CSS to be used in the editor area.'). '<br />'.        t('Defines the CSS to be used in the editor area.') .'<br />'.
618        t('Use theme CSS') .': '. t('load style.css from current site theme.') .'<br/>'.        t('Use theme CSS') .': '. t('load style.css from current site theme.') .'<br/>'.
619        t('Define CSS') .': '. t('enter path for CSS file below.') .'<br />'.        t('Define CSS') .': '. t('enter path for CSS file below.') .'<br />'.
620        t('FCKeditor default') .': '. t('uses default CSS from editor.')        t('FCKeditor default') .': '. t('uses default CSS from editor.')
# Line 633  function fckeditor_admin_profile_form($f Line 633  function fckeditor_admin_profile_form($f
633            '%cssexample2' => '/themes/garland/style.css,http://example.com/style.css',            '%cssexample2' => '/themes/garland/style.css,http://example.com/style.css',
634            '%defcss' => 'Define css',            '%defcss' => 'Define css',
635          )) .'<br />'.          )) .'<br />'.
636        t('Available placeholders'). ':<br />'.        t('Available placeholders') .':<br />'.
637        '<strong>%h</strong> - '. t('host name (%host)', array('%host' => base_path())). '<br />'.        '<strong>%h</strong> - '. t('host name (%host)', array('%host' => base_path())) .'<br />'.
638        '<strong>%t</strong> - '. t('path to theme (%theme)', array('%theme' => base_path() . path_to_theme() .'/'))        '<strong>%t</strong> - '. t('path to theme (%theme)', array('%theme' => base_path() . path_to_theme() .'/'))
639    );    );
640    
# Line 791  function fckeditor_admin_profile_form($f Line 791  function fckeditor_admin_profile_form($f
791      '#size' => 40,      '#size' => 40,
792      '#maxlength' => 255,      '#maxlength' => 255,
793      '#description' =>      '#description' =>
794        t('The path to the local directory (in the server) which points to the path defined above. If empty, FCKeditor will try to discover the right path.'). '<br />'.        t('The path to the local directory (in the server) which points to the path defined above. If empty, FCKeditor will try to discover the right path.') .'<br />'.
795        t('Available placeholders') .':<br/>'.        t('Available placeholders') .':<br/>'.
796        '<strong>%d</strong> - '. t('server path to document root (%root)', array('%root' => $_SERVER['DOCUMENT_ROOT'])) .'<br />'.        '<strong>%d</strong> - '. t('server path to document root (%root)', array('%root' => $_SERVER['DOCUMENT_ROOT'])) .'<br />'.
797        '<strong>%b</strong> - '. t('base URL path of the Drupal installation (%base)', array('%base' => base_path())) .'<br/>'.        '<strong>%b</strong> - '. t('base URL path of the Drupal installation (%base)', array('%base' => base_path())) .'<br/>'.
# Line 840  function fckeditor_admin_profile_form($f Line 840  function fckeditor_admin_profile_form($f
840          array(          array(
841            '%fckeditor_config' => drupal_get_path('module', 'fckeditor') .'/fckeditor.config.js',            '%fckeditor_config' => drupal_get_path('module', 'fckeditor') .'/fckeditor.config.js',
842            '!docslink' => l(t('FCKeditor documentation'), 'http://docs.fckeditor.net/FCKeditor_2.x/Developers_Guide/Configuration/Configuration_Options'),            '!docslink' => l(t('FCKeditor documentation'), 'http://docs.fckeditor.net/FCKeditor_2.x/Developers_Guide/Configuration/Configuration_Options'),
843          )).          )) .
844        "<pre>LinkDlgHideTarget = true;\nLinkDlgHideAdvanced = true;\nImageDlgHideLink = true;\nImageDlgHideAdvanced = true;\nFlashDlgHideAdvanced = true;</pre>".        "<pre>LinkDlgHideTarget = true;\nLinkDlgHideAdvanced = true;\nImageDlgHideLink = true;\nImageDlgHideAdvanced = true;\nFlashDlgHideAdvanced = true;</pre>".
845        '<strong>'. t('Warning') .'</strong>: '.        '<strong>'. t('Warning') .'</strong>: '.
846        t('If you do something wrong here, FCKeditor may fail to load.'),        t('If you do something wrong here, FCKeditor may fail to load.'),
# Line 897  function fckeditor_admin_profile_form_va Line 897  function fckeditor_admin_profile_form_va
897    }    }
898    
899    if (!preg_match('/^\d+%?$/', $edit['width'])) {    if (!preg_match('/^\d+%?$/', $edit['width'])) {
900      form_set_error('width', t('Enter valid width.') .' '. t('Example'). ': 400 '. t('or') .' 100%.');      form_set_error('width', t('Enter valid width.') .' '. t('Example') .': 400 '. t('or') .' 100%.');
901    }    }
902    
903    if (!empty($edit['css_path'])) {    if (!empty($edit['css_path'])) {
# Line 1072  function fckeditor_admin_global_profile_ Line 1072  function fckeditor_admin_global_profile_
1072            '!helppagelink' => l(t('help page'), 'admin/help/fckeditor', array('fragment' => 'fieldinclexcl')),            '!helppagelink' => l(t('help page'), 'admin/help/fckeditor', array('fragment' => 'fieldinclexcl')),
1073          )) .          )) .
1074        ' <ul>' .        ' <ul>' .
1075        '<li>'. t('Path structure'). ': <strong>content_type@path.element_id</strong></li>'.        '<li>'. t('Path structure') .': <strong>content_type@path.element_id</strong></li>'.
1076        '<li>'. t('The following wildcards are available: *, ?') .'</li>'.        '<li>'. t('The following wildcards are available: *, ?') .'</li>'.
1077        '<li>'. t('Content type is optional. You may even specify only path or field id') .'</li>'.        '<li>'. t('Content type is optional. You may even specify only path or field id') .'</li>'.
1078        '<li>'. t('Examples') .':<ul>'.        '<li>'. t('Examples') .':<ul>'.
# Line 1122  function fckeditor_admin_global_profile_ Line 1122  function fckeditor_admin_global_profile_
1122          )) .'<br />'.          )) .'<br />'.
1123        t('Available placeholders') .':<br />'.        t('Available placeholders') .':<br />'.
1124        '<strong>%b</strong> - '. t('base URL path of the Drupal installation (%base)', array('%base' => base_path())) .'<br />'.        '<strong>%b</strong> - '. t('base URL path of the Drupal installation (%base)', array('%base' => base_path())) .'<br />'.
1125        '<strong>%m</strong> - '. t('base URL path where FCKeditor module is stored (%files)', array('%files' => base_path() . $module_drupal_path)). '<br />'.        '<strong>%m</strong> - '. t('base URL path where FCKeditor module is stored (%files)', array('%files' => base_path() . $module_drupal_path)) .'<br />'.
1126        t('Current path: %path', array('%path' => fckeditor_path(FALSE))),        t('Current path: %path', array('%path' => fckeditor_path(FALSE))),
1127      '#required' => TRUE,      '#required' => TRUE,
1128    );    );

Legend:
Removed from v.1.1.2.44  
changed lines
  Added in v.1.1.2.45

  ViewVC Help
Powered by ViewVC 1.1.2