0 Replies Latest reply on Nov 12, 2008 5:18 PM by Sascha Janz

    using dijit.editor

    Sascha Janz Master
      i want to use the diji editor from the dojo toolkit.

      my page looks like this. but the editor doesn't appear. any ideas what the problem might be?

      <?xml version="1.0" encoding="ISO-8859-1"?>
      <ui:composition  xmlns="http://www.w3.org/1999/xhtml"
                       xmlns:ui="http://java.sun.com/jsf/facelets"
                       xmlns:h="http://java.sun.com/jsf/html"
                       xmlns:f="http://java.sun.com/jsf/core"
                       xmlns:rich="http://richfaces.org/rich"
                       xmlns:s="http://jboss.com/products/seam/taglib">
      <html>               
      <body>
      <script type="text/javascript" src="../dojo/dojo.js"></script>

                
                
      <script type="text/javascript">
          dojo.require("dijit.Editor");
          dojo.require("dojo.parser");
      </script>
      <h:form id="test" >
      <div style="border: 1px solid #ccc">
        <textarea dojoType="dijit.Editor" style="height:600px;width:800px"
           styleSheets="../dojo/resources/dojo.css">
          <p>
            This editor is created from a textarea .
          </p>
          <p style="FONT-SIZE: xx-large;">
            Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean
            semper sagittis velit. Cras in mi. Duis porta mauris ut ligula. Proin
            porta rutrum lacus. Etiam consequat scelerisque quam. Nulla facilisi.
            Maecenas luctus venenatis nulla. In sit amet dui non mi semper iaculis.
            Sed molestie tortor at ipsum. Morbi dictum rutrum magna. Sed vitae
            risus.
          </p>
        </textarea>
      </div>
                

                </h:form>     
          </body>
          </html>
      </ui:composition>