6 Replies Latest reply on Mar 12, 2007 5:35 PM by gavin.king

    Wysiwyg editor for Seam Text?

    stephen.friedrich

      Are there plans for a wysiwyg editor for Seam Text?
      Or maybe someone who is already working on it?

      A customized/stripped down version of fckeditor would be just awesome.

        • 1. Re: Wysiwyg editor for Seam Text?
          gavin.king

          One thing that would be really easy to do is use Ajax4JSF to give you a "live" preview as you type...

          • 2. Re: Wysiwyg editor for Seam Text?
            dilator

            Hi there, I use TinyMCE http://tinymce.moxiecode.com, its very easy to use, but also very customisable.

            e.g.


             <script type="text/javascript" src="/js/tiny_mce/tiny_mce.js"></script>
             <style type="text/css">
             .richEditor {
             min-height: 350px;
             width: 610px;
             }
            
             </style>
             <script type="text/javascript">
             tinyMCE.init({
             mode: "textareas",
             theme: "advanced",
             table_inline_editing: true,
             editor_selector: "richEditor",
             plugins: "contextmenu,table,paste,",
             theme_advanced_statusbar_location: "bottom",
             theme_advanced_resizing: true,
             theme_advanced_resize_horizontal: false,
             theme_advanced_toolbar_location: "top"
             });
             </script>
            
             <h:inputTextarea id="rich" value="#{editor.content}" styleClass="richEditor"/>
            


            Will give you an advance wysiwyg editor.

            Enjoy :)

            p.s. I also wrote an A4J enabled custom file browser too if any one is interested!

            • 3. Re: Wysiwyg editor for Seam Text?

              Thanks for the tip. It would be great if you could post something on the wiki like the Ajax4JSF file browser.

              • 4. Re: Wysiwyg editor for Seam Text?

                I have integrated the component and the data is always null. I cannot save anything in the database. I'm clueless in debugging this issue. Can anyone help?

                • 5. Re: Wysiwyg editor for Seam Text?

                  You may have a better luck with dojo editor, however in any case the formatted text does not accept all html tags and for those it does, it does not accept all the attributes. so the 'wysiwyg' wont be exactly "what you get'. Imho, the idea of wiki text is to get rid of 'complex' html sintax so that ti wont be messed up with content maintained by large number of people (i.e. a community)... but that's just my 2c...

                  • 6. Re: Wysiwyg editor for Seam Text?
                    gavin.king

                    The best approach is a preview panel that is updated interactively by Ajax4JSF.