Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Load module to use RichTextEditor

    Hi,

    i want use the RichTextEditor tools, but when I insert this object in my code, I have an error.

    Code:
    var winDessin = isc.Window.create({
    			height : "600px",
    			width : "600px",
    			ID : "dessin",
    			title : ""
    		});
    var richTextEditor = isc.RichTextArea.create({
    			ID:"editor",
    			value:"coucou ricou"
    		});
    winDessin.addItem(richTextEditor);
    I have this log :
    Code:
    TypeError: isc.RichTextArea is undefined
    And when I use this code :
    Code:
    var winDessin = isc.Window.create({
    			height : "600px",
    			width : "600px",
    			ID : "dessin",
    			title : ""
    		});
    var richTextEditor = isc.DynamicForm.create({
    			fields: [
    				     {name: "rte", formItemType: "RichTextItem"}
    				]
    		});
    winDessin.addItem(richTextEditor);
    I have this log :
    Code:
    :DynamicForm:isc_DynamicForm_3:Problem initializing item: {name: "rte",
    formItemType: "RichTextItem",
    } - derived FormItem class is: RichTextItem.  Please make sure the relevant module is loaded
    What is the solution ?
    How load a module ? and here put this code ?

    Thank you

    #2
    Make sure you are loading ISC_RichTextEditor.js

    Comment


      #3
      What is the code line to load ISC_RichTextEditor.js ?

      Comment


        #4
        It's good, I have added :
        Code:
         isc.FileLoader.defaultModules = isc.FileLoader.defaultModules + ",RichTextEditor";

        Comment

        Working...
        X