3 Replies Latest reply on Oct 2, 2008 3:41 PM by bashan

    Rich input

    bashan

      Hi,


      Is there some rich input component allowing to input formatted text as well as adding images?


      Thanks,
      Guy.

        • 1. Re: Rich input
          meetoblivion

          if you use icefaces, they have a tag inputRichText that is FCK editor wrapped in a JSF control.  Richfaces has it coming in 3.3 (whenever that comes out...)

          • 2. Re: Rich input
            meetoblivion

            Not sure if you're still looking, but you can in fact embed tiny mce in the current iterations of richfaces, by doing something like this:


            Javascript:
            <script stype="text/javascript" src="/tiny_mce/tiny_mce.js"></script>
            <script type="text/javascript">
            tinyMCE.init({
                 mode : "textareas",
                 theme : "advanced",
                 editor_selector : "mceAdvanced"
            });
            </script>


            Control definition:
            <h:inputTextarea id="bodyText" value="#{post.bodyText}" class="mceAdvanced" required="true" width="100%" />


            I was surprised it worked so easily.

            • 3. Re: Rich input
              bashan

              Thanks,
              I embeded it very easily. Looks nice and neat.