[TYPO3-mvc] textareaRTE viewhelper

Frank Frewer info at frankfrewer.de
Wed Aug 11 12:10:55 CEST 2010


Hi Daniel,

Daniel Dimitrov schrieb:
> Hey Frank,
> it is great to see that you and Bastian are working on incorporating 
> this into the core :)
> I know that it will get some time so I'm trying to go on alternative way :)

I'm already on the way to modify the code.

> 
> If I have the code in my own viewhelper nobody is going to care if I 
> follow the coding guidelines or not :)
> 
> Anyway as I see the only thing preventing this viewhelper to work are 
> the modifications made to formviewhelper.
> 
> if 
> ($this->viewHelperVariableContainer->exists('Tx_Fluid_ViewHelpers_Form_RteViewHelper', 
> 'rte')) {
> +            foreach 
> ($this->viewHelperVariableContainer->get('Tx_Fluid_ViewHelpers_Form_RteViewHelper', 
> 'rte') as $key => $js) {
> +                if ($key == 0) {
> +                    $rtePre = $js['pre'];
> +                }
> +                $rteSubmit .= $js['submit'];
> +
> +                // Due to bug 15250 
> (http://bugs.typo3.org/view.php?id=15250) the rte adds
> +                // 'style="visibility: visible; display: block;"' 
> inside the script tag (firefox).
> +                // With '<span></span>' this doesn't happen.
> +                // It was fixed in TYPO3 v 4.4.1.
> +                //$rtePost .= '<span></span>'.$js['post'];
> +                $rtePost .= $js['post'];
> +
> +
> +            }
> +            $this->tag->addAttribute("onsubmit", 
> $this->arguments['onsubmit'].$rteSubmit, TRUE);
> +            $content = $rtePre . $this->tag->render() . $rtePost;
> +        } else {
> +            $content = $this->tag->render();
> +        }
> +
> 
> What I wonder here is - isn't there any way to get the formViewHelper 
> and set the onsubmit tag???

I will search for it but I cannot say anything at the moment.

> 
> Kind regards,
> Daniel
> 

Regards,

Frank


More information about the TYPO3-project-typo3v4mvc mailing list