On Mon, Apr 28, 2008 at 2:53 PM, Michael Mehrle <[EMAIL PROTECTED]> wrote:
> It's being added like this:
>
> add(new TinyMCERichTextEditor("message"));
>
> inside a form's constructor...
>
> My colleague (who works on this) just told me that the form is inside a
> panel, which in turn is inside a tabbed panel. So, I guess this
> qualifies for being Ajax driven, correct?
not necessarily, not unless the tabs in the tabbedpanel are ajax driven
> Any workaround you can think of?
no. afaik tinymce's javascript does not support being included
dynamically. the only thing i can think of is for you to include
tinymce.js on all pages where you might use it.
-igor
>
> Thanks,
>
> Michael
>
>
>
> -----Original Message-----
> From: Igor Vaynberg [mailto:[EMAIL PROTECTED]
> Sent: Monday, April 28, 2008 2:42 PM
> To: [email protected]
> Subject: Re: AJAX: Invalid XML markup error
>
> are you adding the texteditor via ajax? thats the same thing.
>
> -igor
>
>
> On Mon, Apr 28, 2008 at 2:37 PM, Michael Mehrle <[EMAIL PROTECTED]>
> wrote:
> > He's FAST sometimes yes.
> >
> > Well, problem is that we're not using it in an AJAX context - here's
> > what we're doing:
> >
> > public class TinyMCERichTextEditor extends TextArea {
> >
> > public TinyMCERichTextEditor(String id) {
> > super(id);
> > this.add(new TinyMceBehavior(true));
> > }
> >
> > }
> >
> > When I commented out the behavior the error disappeared. But we still
> > need to find a way of adding it.
> >
> > Michael
> >
> >
> >
> >
> > -----Original Message-----
> > From: Martijn Dashorst [mailto:[EMAIL PROTECTED]
> > Sent: Monday, April 28, 2008 2:19 PM
> > To: [email protected]
> > Subject: Re: AJAX: Invalid XML markup error
> >
> > odd... I got the reply earlier than the question.... Igor truly is a
> > psychic and very fast typist when he can even type in the quoted bits
> > with his reply.
> >
> > Martijn
> >
> > On 4/28/08, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
> > > tinymce doesnt work if you load it via ajax...its a known
> limitation
> > >
> > > -igor
> > >
> > >
> > >
> > > On Mon, Apr 28, 2008 at 2:08 PM, Michael Mehrle
> > <[EMAIL PROTECTED]> wrote:
> > > > Getting a strange error when loading my page:
> > > >
> > > >
> > > >
> > > > INFO:
> > > >
> > > > INFO: Initiating Ajax GET request on
> > > >
> >
> ../../../../../../?wicket:interface=:2:eventTabbedPanel:panel:createEven
> > > > tForm:message::IBehaviorListener:0:6&random=0.6280901523407119
> > > >
> > > > INFO: Invoking pre-call handler(s)...
> > > >
> > > > INFO: Received ajax response (344 characters)
> > > >
> > > > INFO:
> > > > <?xml version="1.0"
> > > > encoding="UTF-8"?><ajax-response><evaluate><![CDATA[<script
> > > > type="text/javascript"><!--/*--><![CDATA[/*><!--*/
> > > > ]]></evaluate><evaluate><![CDATA[
> > > > tinyMCE.onLoad();
> > > > tinyMCE.execCommand('mceAddControl', true,
> > > > 'message56');]]></evaluate><evaluate
> encoding="wicket1"><![CDATA[
> > > > /*-->]^]^>*/</script>
> > > > ]]></evaluate></ajax-response>
> > > >
> > > > INFO: Response parsed. Now invoking steps...
> > > >
> > > > ERROR: Exception evaluating javascript: SyntaxError: invalid
> XML
> > markup
> > > >
> > > > ERROR: Exception evaluating javascript: SyntaxError: syntax
> error
> > > >
> > > > INFO: Response processed successfully.
> > > >
> > > > INFO: Invoking post-call handler(s)...
> > > >
> > > >
> > > >
> > > > Can't really find anything wrong in my template - any ideas how
> to
> > debug
> > > > something like this?
> > > >
> > > >
> > > >
> > > > Thanks,
> > > >
> > > >
> > > >
> > > > Michael
> > > >
> > > >
> > >
> > >
> > >
> ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> >
> >
> > --
> > Buy Wicket in Action: http://manning.com/dashorst
> > Apache Wicket 1.3.3 is released
> > Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.3
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]