Farcry 4.0 Richtexteditor error

View: New views
3 Messages — Rating Filter:   Alert me  

Farcry 4.0 Richtexteditor error

by monkeyvu-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


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?






--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "farcry-user" group.
To post to this group, send email to farcry-user@...
To unsubscribe from this group, send email to farcry-user+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/farcry-user?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: Farcry 4.0 Richtexteditor error

by monkeyvu-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


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>


On Sep 21, 11:21 am, monkeyvu <phamanhvu101...@...> wrote:

> 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?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "farcry-user" group.
To post to this group, send email to farcry-user@...
To unsubscribe from this group, send email to farcry-user+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/farcry-user?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: Farcry 4.0 Richtexteditor error

by modius :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


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/

On Sep 21, 2:21 pm, monkeyvu <phamanhvu101...@...> wrote:

> 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.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "farcry-user" group.
To post to this group, send email to farcry-user@...
To unsubscribe from this group, send email to farcry-user+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/farcry-user?hl=en
-~----------~----~----~----~------~----~------~--~---