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

    Rich input

    guy bashan Apprentice

      Hi,


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


      Thanks,
      Guy.

        • 1. Re: Rich input
          John Ament Master

          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
            John Ament Master

            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
              guy bashan Apprentice

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