TYPO3 CMS  TYPO3_7-6
TYPO3\CMS\Rtehtmlarea\Controller\ParseHtmlController Class Reference

Public Member Functions

 __construct ()
 
 init ()
 
 mainAction (ServerRequestInterface $request, ResponseInterface $response)
 
 main ()
 
 printContent ()
 
 main_parse_html ($openKeys)
 

Public Attributes

 $content
 
 $modData
 
 $doc
 
 $extKey = 'rtehtmlarea'
 
 $prefixId = 'TYPO3HtmlParser'
 

Protected Member Functions

 keepSpanTagsWithId (&$HTMLparserConfig)
 

Protected Attributes

 $moduleName = 'rtehtmlarea_wizard_parse_html'
 

Detailed Description

Content parsing for htmlArea RTE

Definition at line 24 of file ParseHtmlController.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Rtehtmlarea\Controller\ParseHtmlController::__construct ( )

Member Function Documentation

◆ init()

TYPO3\CMS\Rtehtmlarea\Controller\ParseHtmlController::init ( )

◆ keepSpanTagsWithId()

TYPO3\CMS\Rtehtmlarea\Controller\ParseHtmlController::keepSpanTagsWithId ( $HTMLparserConfig)
protected

Modify incoming HTMLparser config in an attempt to keep span tags with id Such tags are used by the RTE in order to restore the cursor position when the cleaning operation is completed.

Parameters
array$HTMLparserConfig,incoming HTMLParser configuration (wil be modified)
Returns
void

Definition at line 167 of file ParseHtmlController.php.

References TYPO3\CMS\Core\Utility\GeneralUtility\inList(), and TYPO3\CMS\Core\Utility\GeneralUtility\rmFromList().

Referenced by TYPO3\CMS\Rtehtmlarea\Controller\ParseHtmlController\main_parse_html().

◆ main()

TYPO3\CMS\Rtehtmlarea\Controller\ParseHtmlController::main ( )

◆ main_parse_html()

◆ mainAction()

TYPO3\CMS\Rtehtmlarea\Controller\ParseHtmlController::mainAction ( ServerRequestInterface  $request,
ResponseInterface  $response 
)

Injects the request object for the current request or subrequest As this controller goes only through the main_parse_html() method, it is rather simple for now

Parameters
ServerRequestInterface$requestthe current request
ResponseInterface$response
Returns
ResponseInterface the response with the content

Definition at line 91 of file ParseHtmlController.php.

References TYPO3\CMS\Rtehtmlarea\Controller\ParseHtmlController\main_parse_html().

◆ printContent()

TYPO3\CMS\Rtehtmlarea\Controller\ParseHtmlController::printContent ( )

Member Data Documentation

◆ $content

TYPO3\CMS\Rtehtmlarea\Controller\ParseHtmlController::$content

◆ $doc

TYPO3\CMS\Rtehtmlarea\Controller\ParseHtmlController::$doc

Definition at line 41 of file ParseHtmlController.php.

◆ $extKey

TYPO3\CMS\Rtehtmlarea\Controller\ParseHtmlController::$extKey = 'rtehtmlarea'

Definition at line 46 of file ParseHtmlController.php.

◆ $modData

TYPO3\CMS\Rtehtmlarea\Controller\ParseHtmlController::$modData

Definition at line 34 of file ParseHtmlController.php.

◆ $moduleName

TYPO3\CMS\Rtehtmlarea\Controller\ParseHtmlController::$moduleName = 'rtehtmlarea_wizard_parse_html'
protected

Definition at line 58 of file ParseHtmlController.php.

◆ $prefixId

TYPO3\CMS\Rtehtmlarea\Controller\ParseHtmlController::$prefixId = 'TYPO3HtmlParser'

Definition at line 51 of file ParseHtmlController.php.