7 Replies Latest reply on Nov 4, 2012 6:12 AM by fulong13

    rich:editor don´t work

    Fran Fernández Newbie

      Hello I´m trying to use <rich:editor> in a richfaces 4.2 in maven project, but when I use it only appears a textarea without any special tinyMCE interface, I use this simple test:

       

      <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

      <ui:composition xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html"

          xmlns:f="http://java.sun.com/jsf/core" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:a4j="http://richfaces.org/a4j"

          xmlns:rich="http://richfaces.org/rich">

        

       

              <rich:editor id="jey"

      value="#{usuarioActual.descrip}" />

       

      </ui:composition>

       

      I noticed that in the result page on the client appears:

       

      window.CKEDITOR_BASEPATH = '/MiProject/org.richfaces.resources/javax.faces.resource/org.richfaces.ckeditor/';

                      window.CKEDITOR_GETURL = function(resource)  {

                          if (match = resource.match(/([a-z]+).ecss$/)) {

                              switch (match[1]) {

                                  case "editor" : return resource + '?db=eAHb1WuhCAAFJAGh';

                                  case "dialog" : return resource + '?db=eAHb1WuhCAAFJAGh';

                              }

                          }

                      };

                     

                      (function() {

                          var options = null;

                          var config = {};

                         

                          new RichFaces.ui.Editor("jey", options, config);

                      })();

       

       

      but I don´t have any  org.richfaces.resources directory in my server.. perhaps that´s the problem??

       

      Any ideas??