Uploaded image for project: 'Magnolia'
  1. Magnolia
  2. MAGNOLIA-384

Adding multiple richEdit components to a dialog does not function properly

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 3.0 Final
    • 2.0 Final
    • build
    • None
    • Firefox 1.0 windows

    Description

      A. Create a new dialog called "twoRichEdits"

      B. Add a New Content Node named "content"

      C. Add the following data nodes:
      1. name: content
      2. type: String
      3. label: First Rich Edit
      4. controlType: richEdit

      D. Add another New Content Node named "content0:
      E. Add the following data nodes:
      1. name: content0
      2. type: String
      3. label: second Rich Edit
      4. controlType: richEdit

      F. In the appropriate paragraphs directory create a jsp file that contains references to both content nodes, for example:

      <%@ taglib uri="cms-taglib" prefix="cms" %>
      <%@ taglib uri="cms-util-taglib" prefix="cmsu" %>
      <%@ taglib uri="JSTL" prefix="c" %>
      <tr>
      <td>
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
      <cms:ifNotEmpty nodeDataName="content">
      <tr>
      <td>
      <cms:out nodeDataName="content" />
      </td>
      </tr>
      </cms:ifNotEmpty>
      </table>
      </td>
      <td>
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
      <cms:ifNotEmpty nodeDataName="content0">
      <tr>
      <td>
      <cms:out nodeDataName="content0" />
      </td>
      </tr>
      </cms:ifNotEmpty>
      </table>
      </td>
      </tr>

      G. Add the paragraph twoRichEdits node to a contentNodeCollectionName tag in the appropriate jsp file.

      H. Create new paragraph using the twoRichEdits dialog.
      I. Choose the Number List button for the first RichEdit content area.
      J. Notice that both content and content0 textareas have numbered lists.
      K. clear both dialogs. In the content dialog click the bold button. Return to content0 and type "test" notice test is bold.

      Other notes:
      If you just add two edit fields, everything works properly. I checked the javascript and it appears that the first control is not being referenced properly, but I must admit your javascript is unique and I am having trouble following it.

      Thx!

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              kraft Boris Kraft
              buzzterrier Terry Jeske
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Checklists

                  Bug DoR
                  Task DoD