0 Replies Latest reply on Nov 24, 2008 9:49 AM by ajanz

    problems using dijit editor

    ajanz

      i want to use the dijit editor in my app.

      i got a page with the editor

      code is

      <?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 class="tundra" >
       <script type="text/javascript" src="dojo/dojo.js" djConfig="isDebug:false, parseOnLoad: true"></script>
      <script type="text/javascript" src="dijit/dijit.js"></script>
      <script type="text/javascript" src="dijit/_editor/plugins/TextColor.js"></script>
      <script type="text/javascript" src="dijit/_editor/plugins/LinkDialog.js"></script>
      <script type="text/javascript" src="dijit/_editor/plugins/FontChoice.js"></script>
      <link rel="stylesheet" type="text/css" href="dijit/themes/tundra/tundra.css" />
      <link rel="stylesheet" type="text/css" href="dojo/resourcres/dojo.css" />
      <script type="text/javascript">
       dojo.require("dijit.Editor");
       dojo.require("dijit._editor.plugins.AlwaysShowToolbar");
       dojo.require("dijit._editor.plugins.EnterKeyHandling");
       dojo.require("dijit._editor.plugins.TextColor");
       dojo.require("dijit._editor.plugins.LinkDialog");
       dojo.require("dojo.parser");
      </script>
      
      <h:form id="test" >
      <div style="border: 1px solid #ccc">
       <textarea dojoType="dijit.Editor" style="height:600px;width:800px" plugins="['undo', 'redo', 'cut', 'copy', 'paste','fontName','fontSize','formatBlock','bold', 'italic', 'underline', 'strikethrough', 'subscript', 'superscript', 'removeFormat', 'foreColor','hiliteColor','indent','outdent','justifyCenter','justifyFull','justifyLeft','justifyRight','delete','selectall','createLink','insertImage']">
       Test Test
       </textarea>
      </div>
      
      
       </h:form>
       </body>
       </html>
      </ui:composition>
      


      if i call the page everything is fine.

      but i want the page inside a rich:tab or rich:modalPanel

      when i include it, the dijit editor is not rendered any more.

      can someone help?