TYPO3
7.6
|
Public Member Functions | |
render () | |
setMode ($mode) | |
getMode () | |
Public Member Functions inherited from AbstractFormElement | |
__construct (NodeFactory $nodeFactory, array $data) | |
Public Member Functions inherited from AbstractNode | |
__construct (NodeFactory $nodeFactory, array $data) | |
render () | |
Public Attributes | |
const | MODE_CSS = 'css' |
const | MODE_HTML = 'html' |
const | MODE_JAVASCRIPT = 'javascript' |
const | MODE_MIXED = 'mixed' |
const | MODE_PHP = 'php' |
const | MODE_SPARQL = 'sparql' |
const | MODE_TYPOSCRIPT = 'typoscript' |
const | MODE_XML = 'xml' |
Protected Member Functions | |
initJavascriptCode () | |
getHTMLCodeForEditor ($name, $class= '', $content= '', $additionalParams= '', $alt= '', array $hiddenfields=array()) | |
getParserfileByMode ($mode) | |
getStylesheetByMode ($mode) | |
getLanguageService () | |
getBackendUserAuthentication () | |
Protected Member Functions inherited from AbstractFormElement | |
isWizardsDisabled () | |
formMaxWidth ($size=48) | |
getClipboardElements ($allowed, $mode) | |
getLanguageService () | |
Protected Member Functions inherited from AbstractNode | |
initializeResultArray () | |
mergeChildReturnIntoExistingResult (array $existing, array $childReturn) | |
getValidationDataAsDataAttribute (array $config) | |
getValidationDataAsJsonString (array $config) | |
Protected Attributes | |
$allowedModes | |
$resultArray | |
$mode = '' | |
$editorCounter = 0 | |
$relExtPath = '' | |
$codemirrorPath = 'sysext/t3editor/Resources/Public/JavaScript/Contrib/codemirror/js/' | |
$codeCompletionComponents = array('TsRef', 'CompletionResult', 'TsParser', 'TsCodeCompletion') | |
Protected Attributes inherited from AbstractFormElement | |
$defaultInputWidth = 30 | |
$minimumInputWidth = 10 | |
$maxInputWidth = 50 | |
$clipboard = null | |
$iconFactory | |
Protected Attributes inherited from AbstractNode | |
$data = array() | |
t3editor FormEngine widget
Definition at line 28 of file T3editorElement.php.
|
protected |
Definition at line 305 of file T3editorElement.php.
References $GLOBALS.
|
protected |
Generates HTML with code editor
string | $name | Name attribute of HTML tag |
string | $class | Class attribute of HTML tag |
string | $content | Content of the editor |
string | $additionalParams | Any additional editor parameters |
string | $alt | Alt attribute |
array | $hiddenfields |
Definition at line 179 of file T3editorElement.php.
References T3editorElement\$codemirrorPath, T3editorElement\$editorCounter, T3editorElement\$relExtPath, GeneralUtility\getFileAbsFileName(), T3editorElement\getLanguageService(), T3editorElement\getParserfileByMode(), T3editorElement\getStylesheetByMode(), and GeneralUtility\getUrl().
Referenced by T3editorElement\render().
|
protected |
Definition at line 297 of file T3editorElement.php.
References $GLOBALS.
Referenced by T3editorElement\getHTMLCodeForEditor(), and T3editorElement\render().
getMode | ( | ) |
Get mode
Definition at line 149 of file T3editorElement.php.
References T3editorElement\$mode.
|
protected |
Determine the correct parser js file for given mode
string | $mode |
Definition at line 223 of file T3editorElement.php.
References T3editorElement\$mode.
Referenced by T3editorElement\getHTMLCodeForEditor().
|
protected |
Determine the correct css file for given mode
string | $mode |
Definition at line 260 of file T3editorElement.php.
References T3editorElement\$mode.
Referenced by T3editorElement\getHTMLCodeForEditor().
|
protected |
Init the JavaScript code (header part) for editor
Definition at line 157 of file T3editorElement.php.
Referenced by T3editorElement\render().
render | ( | ) |
Render t3editor element
Implements NodeInterface.
Definition at line 94 of file T3editorElement.php.
References T3editorElement\$resultArray, ExtensionManagementUtility\extRelPath(), MathUtility\forceIntegerInRange(), T3editorElement\getHTMLCodeForEditor(), T3editorElement\getLanguageService(), AbstractNode\initializeResultArray(), T3editorElement\initJavascriptCode(), T3editor\MODE_MIXED, GeneralUtility\quoteJSvalue(), and T3editorElement\setMode().
setMode | ( | $mode | ) |
Sets the type of code to edit, use one of the predefined constants
string | $mode | Expects one of the predefined constants |
\InvalidArgumentException |
Definition at line 136 of file T3editorElement.php.
References T3editorElement\$mode.
Referenced by T3editorElement\render().
|
protected |
Definition at line 42 of file T3editorElement.php.
|
protected |
Definition at line 87 of file T3editorElement.php.
|
protected |
Definition at line 80 of file T3editorElement.php.
Referenced by T3editorElement\getHTMLCodeForEditor().
|
protected |
Definition at line 68 of file T3editorElement.php.
Referenced by T3editorElement\getHTMLCodeForEditor().
|
protected |
Definition at line 61 of file T3editorElement.php.
Referenced by T3editorElement\getMode(), T3editorElement\getParserfileByMode(), T3editorElement\getStylesheetByMode(), and T3editorElement\setMode().
|
protected |
Definition at line 75 of file T3editorElement.php.
Referenced by T3editorElement\getHTMLCodeForEditor().
|
protected |
Definition at line 56 of file T3editorElement.php.
Referenced by T3editorElement\render().
const MODE_CSS = 'css' |
Definition at line 30 of file T3editorElement.php.
const MODE_HTML = 'html' |
Definition at line 31 of file T3editorElement.php.
const MODE_JAVASCRIPT = 'javascript' |
Definition at line 32 of file T3editorElement.php.
const MODE_MIXED = 'mixed' |
Definition at line 33 of file T3editorElement.php.
const MODE_PHP = 'php' |
Definition at line 34 of file T3editorElement.php.
const MODE_SPARQL = 'sparql' |
Definition at line 35 of file T3editorElement.php.
const MODE_TYPOSCRIPT = 'typoscript' |
Definition at line 36 of file T3editorElement.php.
const MODE_XML = 'xml' |
Definition at line 37 of file T3editorElement.php.