TYPO3 htmlArea RTE fill with content - typo3

I create in my TYPO3 Extension a RTE Editor ( http://typo3.org/extension-manuals/rtehtmlarea_api_manual/2.2.0/view/6/1/ ) and it's works fine.
But how I can put Content in the RTE? Like a "Hello World".
Thanks

Put some default content to the DB field for which you are using the RTE, you can do that in your extension OR using TCAdefaults

Related

Typo3 use of <f:link.page pageUid="xx" > in HTML content and typoscriptObjectPath

I want to use links with <f:link> in HTML element inside handler and in Typoscript with typoscriptObjectPath, for example:
<f:link.page pageUid="13" >Test Page Link</f:link.page>
But they always appear to me as plain text.
I'm using Typo3 11 and Fluid Template.
Do you have to activate something so that it renders as it was done before with the old old link parser?
Let's see if someone can help me
If you wanna get a text parsed as HTML, just use f:format.html() in your Fluid Template. It renders a string by passing it to a TYPO3 parseFunc. By default lib.parseFunc_RTE is used to parse the string.
I made it.
Set the links in Typoscript this way:
lib.redesp = TEXT
lib.redesp.value = Test Link
And in the Fluid template set:
<f:format.html parseFuncTSPath="lib.parseFunc">
<f:cObject typoscriptObjectPath="lib.redesp"/>
</f:format.html>
Don't know if this is the best way, but it works.

Using Flexform-FAL Image in Typo3 10.x WITH editor

I wonder how to get the editor (image manipulation / crop) in Typo3 Flexform FAL image working. How to run up the FAL inside Flexform is not a big deal, but... how to get the editor? I din't found any solution, so it would be great getting some help.
the reason why I try it in flexform, is that I want ot stay on core functions without using flux and all that horrible stuff just to prevent version chaos....
here is a similar example of how I realsied it in Flexform.
How to create a file upload field in flexform of a custom extbase extension in TYPO3 10?
anyone got a solution get the editor running?
Found a solution
https://blog.wappler.systems/typo3-fal-image-in-flexform/
BUT: how can I use the cropped image in FE?

Typo3 7.6.22 Bootstrap Package / RTE / unable to use font colors

in my current configuration (TYPO3 CMS 7.6.22 Bootstrap Package) the font color picker in RTE does not work. can you help?
I added this TypoScript to PageTSConfig
now it is possible to select colors in RTE
but after saving the page - the color disappiered in RTE and is not displayed in the frontend
here is my template configuration.
Thanks to Thomas Löffler!
after changing the pageTSConfig, the format functions are working!

TYPO3: How to properly setup RTE in custom content element

I created a custom content element with a "bodytext" field like this:
bodytext;Text;;richtext:rte_transform[flag=rte_enabled|mode=ts_css],
rte_enabled;LLL:EXT:cms/locallang_ttc.xlf:rte_enabled_formlabel
The text editor doesn't work properly. The links for example are formated like this:
<link 88 - internal-link>test</link>
which doesn't work in the frontend.
RTE is also throwing a lot of info and errors in the backend, here is a screenshot of firebug:
If I use a core content element like "text & media" RTE does work perfectly .. So I guess there is some configuration missing in my extension ?
How did you set up your custom content element? In which file did you set up your bodytext field shown above?
The link formatting like <link></link> is the normal and correct behavior of the RTE. By this way, links can be rendered dynamically having the pageid saved and they will still work even if the domain or pagetitle of the target page changes - this would not work if links would be saved "hard" like <a href="xy">.
However, those link tags have to be rendered using the lib.parseFunc_RTE when outputting the content. For example if you use Fluid for output, just use <f:format.html>{yourBodytextVariable}</f:format.html> and you will get correct links (f:format.html uses lib.parseFunc_RTE by default).
Check out your Typoscript Object Browser to find out more about the lib.parseFunc_RTE object and check out this doc: https://docs.typo3.org/typo3cms/TyposcriptReference/Functions/Parsefunc/Index.html

How to make TSConfig work in TYPO3 tx_news

In TYPO3 6.1, how do I get the tsconfig for the tx_news news extension to work?
I try to add selectable layouts to news items:
tx_news.templateLayouts {
1 = A custom layout
99 = LLL:fileadmin/somelocallang/locallang.xml:someTranslation
}
This should add the new Layout to the Type field, as in:
or did I get that wrong? Where can that new custom layout be selected?
Also, I'm trying to prefill fields in flexforms (when a new plugin is inserted):
TCEFORM.tt_content.pi_flexform.tx_news.sDEF.categoryConjunction = and
But it does not work yet.
How can this be done?
With tx_news.templateLayouts you override the flexform for the news plugin you insert on a page, not for a news record.
Your second code looks almost right, but you forgot settings: TCEFORM.tt_content.pi_flexform.tx_news.sDEF.settings.categoryConjunction = and
And even though this code is right, it will not work because of a bug with flexform fields that have a dot in their name (this is just stupid).
I think the only way to cleanly modify the flexform, is to write a small extension which overrides the default news flexform.