Add/Remove FCKEditor dynamically

classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|

Add/Remove FCKEditor dynamically

Xin-4
Hi all,

I have come across a problem. I need your help. Thanks!

Basically, what I want is have multiple FCKEditor frame in one page. We can add new FCKEditor and remove the existing one.
The following image shows what I want.



However, the buttons are not really working.
Add New buttons will generate Error while processing response: htmlEditor has no properties
errors.

Remove buttons sometimes work but have problems which I don't know.

Have anyone done this before? Could you please share here? Thanks a lot!
I attached my xhtml code as well.




--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws

standardObjective.xhtml (14K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Add/Remove FCKEditor dynamically

Alessandro Vernet
Administrator
Xin,

On Nov 5, 2007 2:58 PM, Xin Chen <[hidden email]> wrote:
>  Basically, what I want is have multiple FCKEditor frame in one page. We can
> add new FCKEditor and remove the existing one.
>  The following image shows what I want.

The example you attached is using <xi:include href="input:data"/>, and
because of this does not run in the XForms sandbox. Would you be able
to create an example that runs in the XForms sandbox, so we can
reproduce this problem more easily?

You can also find more on reporting issue with an example that runs in
the sandbox in this FAQ entry:
http://www.orbeon.com/ops/doc/home-faq#reporting-issues

Alex
--
Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise
http://www.orbeon.com/


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Add/Remove FCKEditor dynamically

Xin-4
Hi,

Thanks!

I attached a simple sample which you can reproduce the error in sandbox.
1, remove : seems work,
2, add: difinitely not working.

Thanks!
cheney

Alessandro Vernet wrote:
Xin,

On Nov 5, 2007 2:58 PM, Xin Chen [hidden email] wrote:
  
 Basically, what I want is have multiple FCKEditor frame in one page. We can
add new FCKEditor and remove the existing one.
 The following image shows what I want.
    

The example you attached is using <xi:include href="input:data"/>, and
because of this does not run in the XForms sandbox. Would you be able
to create an example that runs in the XForms sandbox, so we can
reproduce this problem more easily?

You can also find more on reporting issue with an example that runs in
the sandbox in this FAQ entry:
http://www.orbeon.com/ops/doc/home-faq#reporting-issues

Alex
  

-- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: [hidden email] For general help: [hidden email] OW2 mailing lists service home page: http://www.ow2.org/wws



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws

switch-edit.xhtml (3K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Add/Remove FCKEditor dynamically

Xin-4
up :)

Xin Chen wrote:

> Hi,
>
> Thanks!
>
> I attached a simple sample which you can reproduce the error in sandbox.
> 1, remove : seems work,
> 2, add: difinitely not working.
>
> Thanks!
> cheney
>
> Alessandro Vernet wrote:
>
>>Xin,
>>
>>On Nov 5, 2007 2:58 PM, Xin Chen <[hidden email]> wrote:
>>  
>>
>>> Basically, what I want is have multiple FCKEditor frame in one page. We can
>>>add new FCKEditor and remove the existing one.
>>> The following image shows what I want.
>>>    
>>>
>>
>>The example you attached is using <xi:include href="input:data"/>, and
>>because of this does not run in the XForms sandbox. Would you be able
>>to create an example that runs in the XForms sandbox, so we can
>>reproduce this problem more easily?
>>
>>You can also find more on reporting issue with an example that runs in
>>the sandbox in this FAQ entry:
>>http://www.orbeon.com/ops/doc/home-faq#reporting-issues
>>
>>Alex
>>  
>>
>>------------------------------------------------------------------------
>>
>>
>>--
>>You receive this message as a subscriber of the [hidden email] mailing list.
>>To unsubscribe: mailto:[hidden email]
>>For general help: mailto:[hidden email]?subject=help
>>OW2 mailing lists service home page: http://www.ow2.org/wws
>>  
>>
>
>------------------------------------------------------------------------
>
>
>--
>You receive this message as a subscriber of the [hidden email] mailing list.
>To unsubscribe: mailto:[hidden email]
>For general help: mailto:[hidden email]?subject=help
>OW2 mailing lists service home page: http://www.ow2.org/wws
>  
>


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Add/Remove FCKEditor dynamically

Alessandro Vernet
Administrator
In reply to this post by Xin-4
On Nov 5, 2007 7:19 PM, Xin Chen <[hidden email]> wrote:
>  I attached a simple sample which you can reproduce the error in sandbox.
>  1, remove : seems work,
>  2, add: difinitely not working.

I see. The problem is the the FCK editor doesn't work in repeats at
this point. We already have a bug for this that I linked below. Now I
have 2 answers for this:

1) In the short term, since the FCK editor is a fairly heavy
component, it is often not very practical to have many FCK editors on
the page. So what others have done is to have just one FCK editor, for
instance in a dialog, that you display and bind to the right node when
the user clicks on an "edit this" trigger.

2) We are planning to switch to another rich editor (the YUI RTE),
which will be a lighter component, and will work in repeats. The plan
is to still support the FCK editor for those who absolutely depend on
it, but the RTE will be used by default.

http://forge.objectweb.org/tracker/?group_id=168&atid=350207&func=detail&aid=305555

Alex
--
Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise
http://www.orbeon.com/


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Add/Remove FCKEditor dynamically

Xin-4
Hi Alex,

Thanks a lot for this!
It seems FCK editor can work in xform:repeats. It just doesn't work for
add new: <xforms:insert ev:event="DOMActivate"
I am just wondering is it worth for me to try to modify some core code
to fix this? Is it very complicate inside?

The solution one sounds good for me as well. If the core code is too
hard to modify, I will go for this one.

Cheers,
cheney

Alessandro Vernet wrote:

>On Nov 5, 2007 7:19 PM, Xin Chen <[hidden email]> wrote:
>  
>
>> I attached a simple sample which you can reproduce the error in sandbox.
>> 1, remove : seems work,
>> 2, add: difinitely not working.
>>    
>>
>
>I see. The problem is the the FCK editor doesn't work in repeats at
>this point. We already have a bug for this that I linked below. Now I
>have 2 answers for this:
>
>1) In the short term, since the FCK editor is a fairly heavy
>component, it is often not very practical to have many FCK editors on
>the page. So what others have done is to have just one FCK editor, for
>instance in a dialog, that you display and bind to the right node when
>the user clicks on an "edit this" trigger.
>
>2) We are planning to switch to another rich editor (the YUI RTE),
>which will be a lighter component, and will work in repeats. The plan
>is to still support the FCK editor for those who absolutely depend on
>it, but the RTE will be used by default.
>
>http://forge.objectweb.org/tracker/?group_id=168&atid=350207&func=detail&aid=305555
>
>Alex
>  
>
>------------------------------------------------------------------------
>
>
>--
>You receive this message as a subscriber of the [hidden email] mailing list.
>To unsubscribe: mailto:[hidden email]
>For general help: mailto:[hidden email]?subject=help
>OW2 mailing lists service home page: http://www.ow2.org/wws
>  
>


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Add/Remove FCKEditor dynamically

Xin-4
sorry about my English....

I mean if it is too hard(coding) to have multiple FCK editors working
for <xforms:insert , I would like to choose solution one you suggest. It
is faster and easier.

Cheers

Xin Chen wrote:

> Hi Alex,
>
> Thanks a lot for this!
> It seems FCK editor can work in xform:repeats. It just doesn't work
> for add new: <xforms:insert ev:event="DOMActivate"
> I am just wondering is it worth for me to try to modify some core code
> to fix this? Is it very complicate inside?
>
> The solution one sounds good for me as well. If the core code is too
> hard to modify, I will go for this one.
>
> Cheers,
> cheney
>
> Alessandro Vernet wrote:
>
>> On Nov 5, 2007 7:19 PM, Xin Chen <[hidden email]> wrote:
>>  
>>
>>> I attached a simple sample which you can reproduce the error in
>>> sandbox.
>>> 1, remove : seems work,
>>> 2, add: difinitely not working.
>>>  
>>
>>
>> I see. The problem is the the FCK editor doesn't work in repeats at
>> this point. We already have a bug for this that I linked below. Now I
>> have 2 answers for this:
>>
>> 1) In the short term, since the FCK editor is a fairly heavy
>> component, it is often not very practical to have many FCK editors on
>> the page. So what others have done is to have just one FCK editor, for
>> instance in a dialog, that you display and bind to the right node when
>> the user clicks on an "edit this" trigger.
>>
>> 2) We are planning to switch to another rich editor (the YUI RTE),
>> which will be a lighter component, and will work in repeats. The plan
>> is to still support the FCK editor for those who absolutely depend on
>> it, but the RTE will be used by default.
>>
>> http://forge.objectweb.org/tracker/?group_id=168&atid=350207&func=detail&aid=305555 
>>
>>
>> Alex
>>  
>>
>> ------------------------------------------------------------------------
>>
>>
>> --
>> You receive this message as a subscriber of the [hidden email]
>> mailing list.
>> To unsubscribe: mailto:[hidden email]
>> For general help: mailto:[hidden email]?subject=help
>> OW2 mailing lists service home page: http://www.ow2.org/wws
>>  
>>
>
>------------------------------------------------------------------------
>
>
>--
>You receive this message as a subscriber of the [hidden email] mailing list.
>To unsubscribe: mailto:[hidden email]
>For general help: mailto:[hidden email]?subject=help
>OW2 mailing lists service home page: http://www.ow2.org/wws
>  
>


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Add/Remove FCKEditor dynamically

Xin-4
In reply to this post by Alessandro Vernet
Hi Alex,

Thanks for your information.
I think we will wait Orbeon to support YUI RTE.
Does YUI RTE support custom plugins?

Just a question, how can we trace when it will be supported by Orbeon?

Cheers,
cheney

Alessandro Vernet wrote:

>On Nov 5, 2007 7:19 PM, Xin Chen <[hidden email]> wrote:
>  
>
>> I attached a simple sample which you can reproduce the error in sandbox.
>> 1, remove : seems work,
>> 2, add: difinitely not working.
>>    
>>
>
>I see. The problem is the the FCK editor doesn't work in repeats at
>this point. We already have a bug for this that I linked below. Now I
>have 2 answers for this:
>
>1) In the short term, since the FCK editor is a fairly heavy
>component, it is often not very practical to have many FCK editors on
>the page. So what others have done is to have just one FCK editor, for
>instance in a dialog, that you display and bind to the right node when
>the user clicks on an "edit this" trigger.
>
>2) We are planning to switch to another rich editor (the YUI RTE),
>which will be a lighter component, and will work in repeats. The plan
>is to still support the FCK editor for those who absolutely depend on
>it, but the RTE will be used by default.
>
>http://forge.objectweb.org/tracker/?group_id=168&atid=350207&func=detail&aid=305555
>
>Alex
>  
>
>------------------------------------------------------------------------
>
>
>--
>You receive this message as a subscriber of the [hidden email] mailing list.
>To unsubscribe: mailto:[hidden email]
>For general help: mailto:[hidden email]?subject=help
>OW2 mailing lists service home page: http://www.ow2.org/wws
>  
>


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws