Search code examples
ckeditortypo3typoscript

CKEditor with Typoscript or Marker


does anyone have an idea how I can add the username in ckeditor ? Whether with markers or with typoscript does not matter

thnx a lot

br


Solution

  • You can use markers like {TSFE:fe_user|user|username} inside both richtext editors of TYPO3, the new CKEditor as well as the old rtehtmlarea.

    You would have to add this to your TypoScript setup:

    lib.parseFunc_RTE.nonTypoTagStdWrap.encapsLines.innerStdWrap_all.insertData = 1
    

    Caution! Be aware that this would allow the editor to render the user's password, too!

    The constants like ###marker### (set in TypoScript setup, not the ones set in the constants section) only allow to use strings which unfortunately cannot be altered with stdWrap functions.

    constants.EMAIL = [email protected]
    

    All credits go to Stefan Frömken's TYPO3 lexikon (german language).