Hi Raymond,
when doing ajax, you have to re-init the tinymce editor, in your case something
like should work :
ProblematiqueTab : AjaxTabbedPanelTab {
name = "Problematique";
isSelected = problematiqueTabSelected;
id = tabProblematiqueId;
onLoad = "function() { tinyMCE.execCommand('mceAddControl', false,
'problematik'); }";
}
Cheers,
Alex
Le 9 déc. 2011 à 12:43, Raymond NANEON a écrit :
> Hi All,
>
> I introduced AjaxTabbedPanel (range textareas in tabs) to my app but I am
> surprised to see AjaxTabbedPanel disabled tinyMCE in textareas. So how can I
> reactivate tinyMCE ?
>
> Html :
> ...
> <!-- TinyMCE -->
> <wo name = "tinyMCE" />
> <wo name = "tinyMCEInit" />
> <!-- /TinyMCE -->
> <webobject name = "Tabs">
> <webobject name = "ContexteTab"><wo name = "ctx" /></webobject>
> <webobject name = "ProblematiqueTab"><wo:text name = "problematik" value =
> "$session.problematik" id = "problematik" rows = "30" cols = "120" onKeyDown
> = "limitText(declaration.problematik,4000);" onKeyUp =
> "limitText(declaration.problematik,4000);" /></webobject>
> <webobject name = "ObjectifsTab"><wo:text name = "objectifs" value =
> "$session.objectifs" id = "objectifs" rows = "30" cols = "120" onKeyDown =
> "limitText(declaration.objectifs,4000);" onKeyUp =
> "limitText(declaration.objectifs,4000);" /></webobject>
> <webobject name = "MethodologieTab"><wo name = "metho" /></webobject>
> </webobject>
> ...
>
> in WOD :
> ...
> tinyMCE : ERXJavaScript {
> id="tinyMCE";
> filename = "tiny_mce/tiny_mce.js";
> }
>
> tinyMCEInit : ERXJavaScript {
> id="tinyMCEInit";
> filename = "tiny_mce/tinyMCEInit.js";
> }
>
> Tabs : AjaxTabbedPanel {
> id = tabsId;
> }
>
> ContexteTab : AjaxTabbedPanelTab {
> name = "Contexte";
> isSelected = contexteTabSelected;
> id = tabContexteId;
> }
>
> ctx : WOText {
> value = session.contexte;
> name="ctx";
> rows = "30";
> cols = "120";
> onKeyDown = "limitText(declaration.ctx,4000);";
> onKeyUp = "limitText(declaration.ctx,4000);";
> }
>
> ProblematiqueTab : AjaxTabbedPanelTab {
> name = "Problematique";
> isSelected = problematiqueTabSelected;
> id = tabProblematiqueId;
> }
>
> ObjectifsTab : AjaxTabbedPanelTab {
> name = "Objectifs";
> isSelected = objectifsTabSelected;
> id = tabObjectifId;
> }
>
> MethodologieTab : AjaxTabbedPanelTab {
> name = "Methodologie";
> isSelected = methodologieTabSelected;
> id = tabMethodologieId;
> }
>
> metho : WOText {
> value = session.metho;
> name="metho";
> rows = "30";
> cols = "120";
> onKeyDown = "limitText(declaration.metho,4000);";
> onKeyUp = "limitText(declaration.metho,4000);";
> }
>
> ...
>
> Thanks
> Envoyé depuis iCloud
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list ([email protected])
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/webobjects-dev/alexis.tual%40gmail.com
>
> This email sent to [email protected]
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com
This email sent to [email protected]