Farcry 4.0 Richtexteditor error

1 view
Skip to first unread message

monkeyvu

unread,
Sep 21, 2009, 12:21:42 AM9/21/09
to farcry-user
Hi all,

I'm having an issue with Rich Text Editor in Farcry 4.0

I can't have 2 editors in the same page.

For example:

When I use:

<widgets:richTextEditor textareaName="description"
value="#output.description#" fieldLabel="Description:"><br />

It's ok. But when I add 1 more editor:

<widgets:richTextEditor textareaName="dimensions"
value="#output.dimensions#" fieldLabel="Dimensions:">

The first editor will be disappear and it becomes a normal text area.
The second one is ok.

Do you know this issue?





monkeyvu

unread,
Sep 21, 2009, 3:32:14 AM9/21/09
to farcry-user
I've saved the website as HTML page then looked at the source code. We
embed the JS 2 times:

<script type="text/javascript" src="content_overview_data/
tiny_mce.js"></script>
....
.....
<script type="text/javascript" src="content_overview_data/
tiny_mce.js"></script>

And we have functions TinyMCE_getSelectedText and insertHTML appear 2
times in the code as well.

I think that is the reason. Can we just only embed those things only
one?

My source code is as below:

<widgets:plpWrapper>
<cfoutput>

<form action="#CGI.script_name#?#CGI.query_string#" method="post"
name="editform" class="f-wrap-1 wider f-bg-short">
<label for="sourceCitation">
<widgets:richTextEditor textareaName="sourceCitation"
value="#output.sourceCitation#" fieldLabel="Source Citation:"><br />
</label>

<label for="sourceCitation1">
<widgets:richTextEditor textareaName="sourceCitation1" value=""
fieldLabel="Source Citation1:"><br />
</label>

<input style="display:none;" type="submit" name="buttonSubmit"
value="submit" />
</form>

</cfoutput>
</widgets:plpWrapper>

modius

unread,
Sep 22, 2009, 8:36:39 PM9/22/09
to farcry-user
Developer related questions will get a much better response on the
developer forum here:
http://groups.google.com/group/farcry-dev

You should not be using the "widgets" tag library in FarCry 4+ -- it
is there for backward compatibility reasons only -- the entire tag
library is deprecated. You should be using the "formtools" rich text
editor. To understand formtools you will need to run through the Jump
Start course (even the version 5.0 course would give you a sense of
how formtools work).

Jump Start Course:
v5.x: http://docs.farcrycms.org/display/FCDEV50/Book+of+FarCry
v4.x: http://docs.farcrycms.org/display/FCDEV40/Developer+Training+Course

Hope that helps,

-- geoff
http://www.daemon.com.au/
Reply all
Reply to author
Forward
0 new messages