Evil Penguin
Evil Penguin

Reputation: 114

TYPO3 v8 how can i change default rte from ckeditor back to rtehtmlarea?

I installed rtehtmlarea from https://github.com/FriendsOfTYPO3/rtehtmlarea (i use typo3 v8.7.8). Now, how do i set it to be default rte ? In my User Settings -> Edit and Advanced functions -> Enable Rich Text Editor (if available) is checked. Also i tried changing RTE.default.disabled = 1 as in documentation without success. Is it relevant, or is there other settings i need to be looking at?

Upvotes: 0

Views: 615

Answers (1)

Christian Kuhn
Christian Kuhn

Reputation: 1003

a) Unload extension rte_ckeditor - rtehtmlarea will then kick in

b) Raise the priority of $GLOBALS['TYPO3_CONF_VARS']['SYS']['formEngine']['nodeResolver'][1480314091]['priority'] (this is the htmlarea element resolver) above 50 (higher than the ckeditor resolver priority which is 50) to take precendence - see the two form element resolver registrations in ext_localconf.php of ext:rtehtmlarea and ext:rte_ckeditor

c) If you want ckeditor in some places and htmlarea in others depending on edited element (table / record type / ...): Add an own resolver with priority higher than 50 and do your magic in there. See \TYPO3\CMS\RteCKEditor\Form\Resolver\RichTextNodeResolver and \TYPO3\CMS\Rtehtmlarea\Form\Resolver\RichTextNodeResolver as examples on how to do that.

The FormEngine resolvers are also documented at https://docs.typo3.org/typo3cms/CoreApiReference/ApiOverview/FormEngine/Rendering/Index.html#nodefactory

Upvotes: 1

Related Questions