[TYPO3-mvc] question about form view helper (potential RTE view helper?)
Jonas Götze
jonnsn at gmail.com
Wed Jun 2 14:11:42 CEST 2010
Hi,
I am currently trying to create such a viewHelper too and I am also
thinking hard about how to solve the thing with the 3 JS parts needed by
the RTE. I thought of using the alias ViewHelper or directly the
templateVariableContainer->add Method and wrap the whole Form with my
ViewHelper. In my case I need to use multiple RTEs in one single Form,
so I have to create additional RTEObjects later on.
Have you already some working ViewHelper or another Idea/hint on this?
Thank you!
Regards
Jonas
PS: I read about a global ViewHelper Repository - anybody knows what
happened to this idea? Would be a very great thing!
Am 23.02.2010 23:45, schrieb Steffen Ritter:
> Nathan Lenz schrieb:
>> Greetings,
>> I am playing around with creating a
>> Tx_Fluid_ViewHelpers_Form_RtetextareaViewHelper class and quickly ran
>> into a couple problems that I wasn't sure how to solve.
>>
>> One approach would be to create an instance of tx_rtehtmlarea_pi2 and
>> make it work. The problems I ran into is that tx_rtehtmlarea_pi2 needs
>> the name of the table, field and current row being rendered. This
>> doesn't really fit with the new domain driven design principles.
>>
>> The next approach would be to create something new, extending
>> tx_rtehtmlarea_base maybe.
>>
>> This made me ask,..
>>
>> Is it possible for a form element view helper to modify the onSubmit
>> attribute of the form it belongs to?
>>
>> One way would be to use the Rtetextarea View Helper to write javascript
>> that would use the DOM to insert itself into the onSubmit attribute of
>> it's parent <form> tag. This seems like a hack, but it is unobtrusive
>> and contains the RTE into a single view helper.
>>
>> It might also be possible to pass in an RTE object of some sort to both
>> the Form View Helper and the Rtetextarea View Helper(s).
>>
>> Just some thoughts,
>> --Nathan
> Hey would need this right now two...
> The problem you have that the rte would need such information is no
> problem. pass the object to the vielhelper and all this information is
> present in there (className <--> table function, uid ist always in object)
> just ask the DataMap which is already created for this class ;)
>
> Or do you have an working solution?
>
> regards
>
> Steffen
More information about the TYPO3-project-typo3v4mvc
mailing list