Nice work, Werner. I guess this makes the tags I was working on for the Dojo Editor kind of useless. I will warn you that the Editor widget has some flaws with rendering which are particularly evident on a page with TabbedPanes. On Firefox you cannot edit the document and on IE the button bar doesn't show up, though the controls work. For this reason I've switched to TinyMCE in my own projects (though I was still working on Dojo for the Tomahawk tags). The Dojo folks are aware of the issues with the Editor widget, but I'm not sure their timeline for addressing it. I will say that even with these limitations the Dojo editor beats the Kupu implementation, and personally I think the documentation should be updated to encourage folks to use this trick instead of the inputHtml tag.

Another word of warning for the Dojo code - their tab implementation has issues when nesting multiple tab panels. That being said, it is spiffy looking and works well with simple pages.

Thanks,
Mike

Werner Punz wrote:

Just to give you guys an example of the power of this lib:
Following code enables a full blown rich text edit control:

<s:dojoInitializer require="dojo.widget.Editor"/>       
<h:form>
        <h:inputTextarea id="editarea" styleClass="dojo-Editor" value="hello
world"/>                                        
        <h:commandLink action="submitted" id="submitted" value="[Submit]"/>
</h:form>
(the example can already be found in the sandbox examples under the dojo
dir)


The initializer api will not be changed too much the only things I can
think of is to move the generated require code from the head to the body
and to add additional properties (for component building there is an
outject namespace mechanism as well which yet has to be integrated)

Werner

Reply via email to