TYPO3 CMS
TYPO3_6-2
Main Page
Related Pages
+
Classes
Class List
Class Index
Class Hierarchy
+
Class Members
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
+
Variables
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
+
Files
File List
+
File Members
+
All
$
(
_
a
c
d
e
f
h
i
l
o
p
r
s
t
u
x
+
Functions
_
a
c
d
e
f
i
l
o
p
r
s
u
x
+
Variables
$
(
_
a
d
e
h
i
p
r
s
t
Examples
•
All
Classes
Namespaces
Files
Functions
Variables
Pages
DefaultInline.php
Go to the documentation of this file.
1
<?php
2
namespace
TYPO3\CMS\Rtehtmlarea\Extension
;
3
21
class
DefaultInline
extends
\TYPO3\CMS\Rtehtmlarea\RteHtmlAreaApi
{
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
49
protected
$convertToolbarForHtmlAreaArray
= array(
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
}
TYPO3\CMS\Rtehtmlarea\Extension\DefaultInline
Definition:
DefaultInline.php:21
TYPO3\CMS\Rtehtmlarea\Extension\DefaultInline\$pluginName
$pluginName
Definition:
DefaultInline.php:26
TYPO3\CMS\Rtehtmlarea\Extension\DefaultInline\$toolbar
$toolbar
Definition:
DefaultInline.php:41
TYPO3\CMS\Rtehtmlarea\Extension\DefaultInline\$extensionKey
$extensionKey
Definition:
DefaultInline.php:23
TYPO3\CMS\Rtehtmlarea\Extension\DefaultInline\$pluginButtons
$pluginButtons
Definition:
DefaultInline.php:47
TYPO3\CMS\Rtehtmlarea\Extension\DefaultInline\$htmlAreaRTE
$htmlAreaRTE
Definition:
DefaultInline.php:35
TYPO3\CMS\Rtehtmlarea\Extension
Definition:
AboutEditor.php:2
TYPO3\CMS\Rtehtmlarea\Extension\DefaultInline\$convertToolbarForHtmlAreaArray
$convertToolbarForHtmlAreaArray
Definition:
DefaultInline.php:49
TYPO3\CMS\Rtehtmlarea\Extension\DefaultInline\$relativePathToLocallangFile
$relativePathToLocallangFile
Definition:
DefaultInline.php:29
$TSFE
$TSFE
Definition:
index_ts.php:72
TYPO3\CMS\Rtehtmlarea\Extension\DefaultInline\$LOCAL_LANG
$LOCAL_LANG
Definition:
DefaultInline.php:44
TYPO3\CMS\Rtehtmlarea\Extension\DefaultInline\buildJavascriptConfiguration
buildJavascriptConfiguration($RTEcounter)
Definition:
DefaultInline.php:64
TYPO3\CMS\Rtehtmlarea\RteHtmlAreaApi
Definition:
RteHtmlAreaApi.php:21
TYPO3\CMS\Rtehtmlarea\Extension\DefaultInline\$relativePathToSkin
$relativePathToSkin
Definition:
DefaultInline.php:32
TYPO3\CMS\Rtehtmlarea\Extension\DefaultInline\transformContent
transformContent($content)
Definition:
DefaultInline.php:76
TYPO3\CMS\Rtehtmlarea\Extension\DefaultInline\$thisConfig
$thisConfig
Definition:
DefaultInline.php:38
typo3
sysext
rtehtmlarea
Classes
Extension
DefaultInline.php
Generated on Wed Aug 7 2019 09:52:30 for TYPO3 CMS by
1.8.13