TYPO3 CMS  TYPO3_6-2
DefaultInline.php
Go to the documentation of this file.
1 <?php
3 
22 
23  protected $extensionKey = 'rtehtmlarea';
24 
25  // The key of the extension that is extending htmlArea RTE
26  protected $pluginName = 'DefaultInline';
27 
28  // The name of the plugin registered by the extension
29  protected $relativePathToLocallangFile = 'extensions/DefaultInline/locallang.xlf';
30 
31  // Path to this main locallang file of the extension relative to the extension dir.
32  protected $relativePathToSkin = 'extensions/DefaultInline/skin/htmlarea.css';
33 
34  // Path to the skin (css) file relative to the extension dir.
35  protected $htmlAreaRTE;
36 
37  // Reference to the invoking object
38  protected $thisConfig;
39 
40  // Reference to RTE PageTSConfig
41  protected $toolbar;
42 
43  // Reference to RTE toolbar array
44  protected $LOCAL_LANG;
45 
46  // Frontend language array
47  protected $pluginButtons = 'bold,italic,strikethrough,subscript,superscript,underline';
48 
50  'bold' => 'Bold',
51  'italic' => 'Italic',
52  'underline' => 'Underline',
53  'strikethrough' => 'StrikeThrough',
54  'superscript' => 'Superscript',
55  'subscript' => 'Subscript'
56  );
57 
64  public function buildJavascriptConfiguration($RTEcounter) {
65  global $TSFE, $LANG;
66  $registerRTEinJavascriptString = '';
67  return $registerRTEinJavascriptString;
68  }
69 
76  public function transformContent($content) {
77  // Change the strong and em tags for gecko browsers
78  if ($this->htmlAreaRTE->client['browser'] == 'gecko') {
79  // change <strong> to <b>
80  $content = preg_replace('/<(\\/?)strong/i', '<$1b', $content);
81  // change <em> to <i>
82  $content = preg_replace('/<(\\/?)em([^b>]*>)/i', '<$1i$2', $content);
83  }
84  return $content;
85  }
86 
87 }
$TSFE
Definition: index_ts.php:72