Documentation TYPO3 par Ameos |
Definition at line 41 of file class.tx_rtehtmlarea_base.php.
tx_rtehtmlarea_base::isAvailable | ( | ) |
Returns true if the RTE is available. Here you check if the browser requirements are met. If there are reasons why the RTE cannot be displayed you simply enter them as text in ->errorLog
Reimplemented from t3lib_rteapi.
Definition at line 293 of file class.tx_rtehtmlarea_base.php.
References clientInfo(), and t3lib_div::int_from_ver().
tx_rtehtmlarea_base::drawRTE | ( | &$ | pObj, | |
$ | table, | |||
$ | field, | |||
$ | row, | |||
$ | PA, | |||
$ | specConf, | |||
$ | thisConfig, | |||
$ | RTEtypeVal, | |||
$ | RTErelPath, | |||
$ | thePidValue | |||
) |
Draws the RTE as an iframe
object | Reference to parent object, which is an instance of the TCEforms. | |
string | The table name | |
string | The field name | |
array | The current row from which field is being rendered | |
array | Array of standard content for rendering form fields from TCEforms. See TCEforms for details on this. Includes for instance the value and the form field name, java script actions and more. | |
array | "special" configuration - what is found at position 4 in the types configuration of a field from record, parsed into an array. | |
array | Configuration for RTEs; A mix between TSconfig and otherwise. Contains configuration for display, which buttons are enabled, additional transformation information etc. | |
string | Record "type" field value. | |
string | Relative path for images/links in RTE; this is used when the RTE edits content from static files where the path of such media has to be transformed forth and back! | |
integer | PID value of record (true parent page id) |
Reimplemented from t3lib_rteapi.
Reimplemented in tx_rtehtmlarea_pi2.
Definition at line 354 of file class.tx_rtehtmlarea_base.php.
References $specConf, $thisConfig, t3lib_BEfunc::BEenableFields(), clientInfo(), t3lib_BEfunc::deleteClause(), t3lib_div::getIndpEnv(), t3lib_BEfunc::getPagesTSconfig(), t3lib_BEfunc::getTSCpid(), t3lib_div::int_from_ver(), t3lib_extMgm::isLoaded(), isPluginEnable(), loadJScode(), loadJSfiles(), registerRTEinJS(), setPlugins(), setRTEsizeByJS(), setSaveRTE(), setToolBar(), t3lib_extMgm::siteRelPath(), t3lib_rteapi::transformContent(), t3lib_rteapi::triggerField(), and t3lib_div::trimExplode().
tx_rtehtmlarea_base::setToolBar | ( | ) |
Set the toolbar config (only in this PHP-Object, not in JS):
Definition at line 633 of file class.tx_rtehtmlarea_base.php.
References t3lib_div::inList(), isPluginEnable(), and t3lib_div::trimExplode().
Referenced by tx_rtehtmlarea_pi2::drawRTE(), and drawRTE().
tx_rtehtmlarea_base::setPlugins | ( | ) |
Disable some plugins
Definition at line 759 of file class.tx_rtehtmlarea_base.php.
References t3lib_extMgm::isLoaded(), isPluginEnable(), and t3lib_div::trimExplode().
Referenced by tx_rtehtmlarea_pi2::drawRTE(), and drawRTE().
tx_rtehtmlarea_base::convertToolBarForHTMLArea | ( | $ | button | ) |
Convert the TYPO3 names of buttons into the names for htmlArea RTE
string | buttonname (typo3-name) |
Definition at line 805 of file class.tx_rtehtmlarea_base.php.
tx_rtehtmlarea_base::setRTEsizeByJS | ( | $ | divId, | |
$ | height, | |||
$ | width | |||
) |
Return the JS-function for setting the RTE size.
string | DivID-Name | |
int | the height for the RTE | |
int | the width for the RTE |
Definition at line 817 of file class.tx_rtehtmlarea_base.php.
Referenced by drawRTE().
tx_rtehtmlarea_base::loadJSfiles | ( | $ | number | ) |
Return the HTML-Code for loading the Javascript-Files
Definition at line 828 of file class.tx_rtehtmlarea_base.php.
Referenced by tx_rtehtmlarea_pi2::drawRTE(), and drawRTE().
tx_rtehtmlarea_base::loadJScode | ( | $ | number | ) |
Return the JS-Code to initialize the Editor
Definition at line 871 of file class.tx_rtehtmlarea_base.php.
References isPluginEnable(), and t3lib_div::trimExplode().
Referenced by tx_rtehtmlarea_pi2::drawRTE(), and drawRTE().
tx_rtehtmlarea_base::registerRTEinJS | ( | $ | number, | |
$ | table = '' , |
|||
$ | uid = '' , |
|||
$ | field = '' | |||
) |
Return the JS-Code for Register the RTE in JS
integer | $number: The index number of the RTE. | |
string | $table: The table that includes this RTE (optional, necessary for IRRE). | |
string | $uid: The uid of that table that includes this RTE (optional, necessary for IRRE). | |
string | $field: The field of that record that includes this RTE (optional). |
Definition at line 907 of file class.tx_rtehtmlarea_base.php.
References isPluginEnable(), and t3lib_div::trimExplode().
Referenced by tx_rtehtmlarea_pi2::drawRTE(), and drawRTE().
tx_rtehtmlarea_base::isPluginEnable | ( | $ | plugin | ) |
Return ture, if the plugin can loaded
Definition at line 1129 of file class.tx_rtehtmlarea_base.php.
Referenced by tx_rtehtmlarea_pi2::drawRTE(), drawRTE(), loadJScode(), registerRTEinJS(), setPlugins(), and setToolBar().
tx_rtehtmlarea_base::buildJSFontSizesConfig | ( | $ | number | ) |
Return JS configuration of font sizes
Definition at line 1139 of file class.tx_rtehtmlarea_base.php.
References t3lib_div::trimExplode().
tx_rtehtmlarea_base::buildJSParagraphsConfig | ( | $ | number | ) |
Return JS configuration of paragraphs
Definition at line 1198 of file class.tx_rtehtmlarea_base.php.
References t3lib_div::trimExplode().
tx_rtehtmlarea_base::buildJSFontfacesConfig | ( | $ | number | ) |
Return JS configuration of font faces
Definition at line 1239 of file class.tx_rtehtmlarea_base.php.
References t3lib_div::inList(), and t3lib_div::trimExplode().
tx_rtehtmlarea_base::buildJSColorsConfig | ( | $ | number | ) |
Return JS configuration of colors
Definition at line 1317 of file class.tx_rtehtmlarea_base.php.
References t3lib_div::trimExplode().
tx_rtehtmlarea_base::buildStyleSheet | ( | ) |
Build the default content style sheet
Definition at line 1380 of file class.tx_rtehtmlarea_base.php.
tx_rtehtmlarea_base::buildJSClassesConfig | ( | $ | number | ) |
Return JS configuration of classes
Definition at line 1429 of file class.tx_rtehtmlarea_base.php.
References t3lib_div::trimExplode().
tx_rtehtmlarea_base::buildJSClassesArray | ( | ) |
Return JS arrays of classes labels and noShow flags
Definition at line 1455 of file class.tx_rtehtmlarea_base.php.
tx_rtehtmlarea_base::buildJSMainLangArray | ( | ) |
Return a JS language array for htmlArea RTE
Definition at line 1501 of file class.tx_rtehtmlarea_base.php.
tx_rtehtmlarea_base::buildJSAcronymArray | ( | ) |
Return an acronym array for the Acronym plugin
Definition at line 1556 of file class.tx_rtehtmlarea_base.php.
References t3lib_BEfunc::BEenableFields(), and t3lib_BEfunc::deleteClause().
tx_rtehtmlarea_base::buildJSClassesAnchorConfig | ( | $ | number | ) |
Return JS configuration of special anchor classes
Definition at line 1588 of file class.tx_rtehtmlarea_base.php.
tx_rtehtmlarea_base::buildJSClassesAnchorArray | ( | ) |
Return a JS array for special anchor classes
Definition at line 1610 of file class.tx_rtehtmlarea_base.php.
tx_rtehtmlarea_base::buildJSFile | ( | $ | label, | |
$ | contents, | |||
$ | ext = 'js' | |||
) |
Return a file name built with the label and containing the specified contents
Definition at line 1649 of file class.tx_rtehtmlarea_base.php.
References t3lib_div::fixPermissions().
tx_rtehtmlarea_base::writeJSFileToTypo3tempDir | ( | $ | JSFile, | |
$ | label, | |||
$ | compressed = FALSE , |
|||
$ | ext = 'js' | |||
) |
Return a file name built with the label and containing a cached copy of the specified file
Definition at line 1667 of file class.tx_rtehtmlarea_base.php.
References t3lib_div::fixPermissions(), and t3lib_div::getFileAbsFileName().
tx_rtehtmlarea_base::buildJSMainLangFile | ( | $ | number | ) |
Return a file name containing the main JS language array for HTMLArea
Definition at line 1686 of file class.tx_rtehtmlarea_base.php.
References t3lib_div::trimExplode().
tx_rtehtmlarea_base::buildJSLangArray | ( | $ | plugin | ) |
Return a JS language array for the plugin
Definition at line 1703 of file class.tx_rtehtmlarea_base.php.
References t3lib_div::array_merge_recursive_overrule(), and t3lib_extMgm::extPath().
tx_rtehtmlarea_base::getJSToolbarArray | ( | ) |
Return the JS-Code for the Toolbar-Config-Array for HTML-Area
Definition at line 1751 of file class.tx_rtehtmlarea_base.php.
tx_rtehtmlarea_base::setSaveRTE | ( | $ | number, | |
$ | form, | |||
$ | textarea | |||
) |
Return the JS-Code to copy the HTML-Code from the editor in the hidden input field. This is for submit function from the form.
Reimplemented in tx_rtehtmlarea_pi2.
Definition at line 1854 of file class.tx_rtehtmlarea_base.php.
Referenced by drawRTE().
tx_rtehtmlarea_base::clientInfo | ( | $ | useragent = '' |
) |
Client Browser Information
Usage: 4
string | Alternative User Agent string (if empty, t3lib_div::getIndpEnv('HTTP_USER_AGENT') is used) |
Definition at line 1875 of file class.tx_rtehtmlarea_base.php.
Referenced by tx_rtehtmlarea_pi2::drawRTE(), drawRTE(), and isAvailable().
tx_rtehtmlarea_base::RTEtsConfigParams | ( | ) |
tx_rtehtmlarea_base::$conf_supported_browser |
Initial value:
array ( 'msie' => array ( 1 => array ( 'version' => 5.5, 'system' => 'win' ) ), 'gecko' => array ( 1 => array ( 'version' => 1.3 ) ), 'safari' => array ( 1 => array ( 'version' => 312 ) ), 'opera' => array ( 1 => array ( 'version' => 9 ) ) )
Definition at line 44 of file class.tx_rtehtmlarea_base.php.
tx_rtehtmlarea_base::$conf_toolbar_hide |
Initial value:
array (
'showhelp', // Has no content yet
)
Definition at line 69 of file class.tx_rtehtmlarea_base.php.
tx_rtehtmlarea_base::$conf_toolbar_safari_hide |
Initial value:
array ( 'strikethrough', 'line', 'orderedlist', 'unorderedlist', )
Definition at line 74 of file class.tx_rtehtmlarea_base.php.
tx_rtehtmlarea_base::$conf_toolbar_opera_hide |
Initial value:
array ( 'copy', 'cut', 'paste', )
Definition at line 82 of file class.tx_rtehtmlarea_base.php.
tx_rtehtmlarea_base::$conf_toolbar_show |
Initial value:
array (
'undo',
'redo',
//'showhelp',
'about',
)
Definition at line 89 of file class.tx_rtehtmlarea_base.php.
tx_rtehtmlarea_base::$defaultParagraphs |
Initial value:
array(
'p' => 'Normal',
'h1' => 'Heading 1',
'h2' => 'Heading 2',
'h3' => 'Heading 3',
'h4' => 'Heading 4',
'h5' => 'Heading 5',
'h6' => 'Heading 6',
'pre' => 'Preformatted',
'address' => 'Address',
)
Definition at line 180 of file class.tx_rtehtmlarea_base.php.
tx_rtehtmlarea_base::$defaultFontFaces |
Initial value:
array( 'Arial' => 'Arial,sans-serif', 'Arial Black' => 'Arial Black,sans-serif', 'Verdana' => 'Verdana,Arial,sans-serif', 'Times New Roman' => 'Times New Roman,Times,serif', 'Garamond' => 'Garamond', 'Lucida Handwriting' => 'Lucida Handwriting', 'Courier' => 'Courier', 'Webdings' => 'Webdings', 'Wingdings' => 'Wingdings', )
Definition at line 192 of file class.tx_rtehtmlarea_base.php.
tx_rtehtmlarea_base::$defaultFontSizes |
Initial value:
array( '1' => '1 (8 pt)', '2' => '2 (10 pt)', '3' => '3 (12 pt)', '4' => '4 (14 pt)', '5' => '5 (18 pt)', '6' => '6 (24 pt)', '7' => '7 (36 pt)', )
Definition at line 204 of file class.tx_rtehtmlarea_base.php.
tx_rtehtmlarea_base::$defaultFontSizes_safari |
Initial value:
array( '1' => 'xx-small', '2' => 'x-small', '3' => 'small', '4' => 'medium', '5' => 'large', '6' => 'x-large', '7' => 'xx-large', )
Definition at line 214 of file class.tx_rtehtmlarea_base.php.
tx_rtehtmlarea_base::$pluginButton |
Initial value:
array( 'InlineCSS' => 'textstyle', 'DynamicCSS' => 'blockstyle', 'SpellChecker' => 'spellcheck', 'InsertSmiley' => 'emoticon', 'FindReplace' => 'findreplace', 'RemoveFormat' => 'removeformat', 'QuickTag' => 'inserttag', 'CharacterMap' => 'insertcharacter', 'TableOperations' => 'table, toggleborders, tableproperties, rowproperties, rowinsertabove, rowinsertunder, rowdelete, rowsplit, columninsertbefore, columninsertafter, columndelete, columnsplit, cellproperties, cellinsertbefore, cellinsertafter, celldelete, cellsplit, cellmerge', 'UserElements' => 'user', 'Acronym' => 'acronym', )
Definition at line 226 of file class.tx_rtehtmlarea_base.php.
tx_rtehtmlarea_base::$pluginLabel |
Initial value:
array( 'InlineCSS' => 'textstylelabel', 'DynamicCSS' => 'blockstylelabel', )
Definition at line 242 of file class.tx_rtehtmlarea_base.php.