sabbelasichon / typo3_encore

Use Webpack Encore within TYPO3
Other
106 stars 19 forks source link

Not working with RTE in a flexform #195

Open andreknieriem opened 1 year ago

andreknieriem commented 1 year ago

Hi there,

first of all: Thanks for this great extension! I've been using it now for a long time without any problems. Now I added a flexform to one content element with an rte. Your extension does not find them and doesn't replace the placeholder with the correct path to the css file.

I think a addition to Ssch\Typo3Encore\Form\FormDataProvider\RichtextEncoreConfiguration could help here, but Flexforms are sometimes very nested so I don't know where to start here.

To reproduce this you can use this flexform for example:

<T3DataStructure>
    <sheets>
        <sDEF>
            <ROOT>
                <TCEforms>
                    <sheetTitle>Einstellungen</sheetTitle>
                </TCEforms>
                <type>array</type>
                <el>
                    <settings.test>
                        <TCEforms>
                            <label>Text</label>
                            <config>
                                <type>text</type>
                                <enableRichtext>1</enableRichtext>
                                <richtextConfiguration>myext_default</richtextConfiguration>
                            </config>
                        </TCEforms>
                    </settings.test>
                </el>
                    </settings.headlines>
                </el>
            </ROOT>
        </sDEF>
    </sheets>
</T3DataStructure>