Details
-
Bug
-
Resolution: Fixed
-
Major
-
2.0 Final
-
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!