Re: tinymce textarea in a modal window not letting to type

2014-02-07 Thread jchappelle
The original issue is pretty old but tinymce in a modal window worked in 1.5
and it is not working in 6.13.0. I guess I'm going to have to redesign my
pages to not use the tinymce in a modal window.

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/tinymce-textarea-in-a-modal-window-not-letting-to-type-tp1886534p4664309.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: tinymce textarea in a modal window not letting to type

2014-02-07 Thread Girts Ziemelis
I had similar problem and at the end it was easier to switch to 
ckeditor, which work fine in a modal window (so far tested only in 
development). There is no integration package for wicket AFAIK, but 
simple custom  integration for a specific use case is  simple.


On 02/07/2014 05:45 PM, jchappelle wrote:

The original issue is pretty old but tinymce in a modal window worked in 1.5
and it is not working in 6.13.0. I guess I'm going to have to redesign my
pages to not use the tinymce in a modal window.

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/tinymce-textarea-in-a-modal-window-not-letting-to-type-tp1886534p4664309.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org




-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: tinymce textarea in a modal window not letting to type

2014-02-07 Thread Gabriel Landon
I remember having the same problem on a project I've done last year.

Here's the code I'm using (I think that it's the TinyMceAjaxSubmitModifier
that is important) :

final TextAreaString textArea = new
TextAreaString(property, getModel());
textArea.add(new TinyMceBehavior(getTinyMCESettings()));
add(textArea);

// submit
add(new IndicatingAjaxButton(submit) {
/** serialVersionUID. */
private static final long serialVersionUID = 1L;

@Override
protected void onSubmit(final AjaxRequestTarget varTarget,
final Form? varForm) {
  modale.close(varTarget);
}

@Override
protected void onError(final AjaxRequestTarget varTarget,
final Form? varForm) {
varTarget.add(varForm);
}
}.add(new TinyMceAjaxSubmitModifier()));

Regards,
Gabriel.

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/tinymce-textarea-in-a-modal-window-not-letting-to-type-tp1886534p4664314.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: tinymce textarea in a modal window not letting to type

2014-02-06 Thread Andrea Del Bene
Hi,

as the original issue is pretty old, I think nothing has done about it
lately. I will open an issue with the quickstart project and try to
solve it when I will have some time.
 I am having this same issue in wicket 6.13.0. Any fixes as of yet?

 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/tinymce-textarea-in-a-modal-window-not-letting-to-type-tp1886534p4664214.html
 Sent from the Users forum mailing list archive at Nabble.com.

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: tinymce textarea in a modal window not letting to type

2014-02-05 Thread jchappelle
I am having this same issue in wicket 6.13.0. Any fixes as of yet?

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/tinymce-textarea-in-a-modal-window-not-letting-to-type-tp1886534p4664214.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: tinymce textarea in a modal window not letting to type

2014-01-23 Thread fachhoch
I created a quick start  project,   first time tinymce editor shows up fine, 
second time cannot type into editor. myproject.zip
http://apache-wicket.1842946.n4.nabble.com/file/n4663912/myproject.zip  
Please advice.  should I create a bug report for this.

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/tinymce-textarea-in-a-modal-window-not-letting-to-type-tp1886534p4663912.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: tinymce textarea in a modal window not letting to type

2014-01-22 Thread fachhoch
Sorry for replying to this very old thread , I am having a similar issue,
before modalwindow.show I am constructing  new instance of my panel call
setContent  , so every time modalwindow.show is called it displays a new
instance of my panel,  can you please give me the script which  should be
appended to target for tinymce to work


this script is not complete.


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/tinymce-textarea-in-a-modal-window-not-letting-to-type-tp1886534p4663884.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: tinymce textarea in a modal window not letting to type

2014-01-22 Thread fachhoch
here is my code trying   with tinymce and modalwindow





wicket  and tinymce 6.12.0



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/tinymce-textarea-in-a-modal-window-not-letting-to-type-tp1886534p4663886.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



TinyMCE + TextArea + Jackrabbit

2010-05-04 Thread Wilhelmsen Tor Iver
Using wicketstuff tinymce 1.4.1 attached to a TextArea, it seems I cannot get 
it to stop escaping the resulting HTML:

TextAreaString textArea = new 
TextAreaString(threadSubjectTextInput, new ModelString());
textArea.setEscapeModelStrings(false);
TinyMCESettings settings = new TinyMCESettings();
settings.setToolbarLocation(TinyMCESettings.Location.top);
TinyMceBehavior behavior = new TinyMceBehavior(settings);
textArea.add(behavior);

Obtaining value:
String article = 
getForm().get(threadSubjectTextInput).getDefaultModelObjectAsString();

Setting property on JCR node:

articleNode.setProperty(articleText, article);

Rendering the output from the Jackrabbit Node:

   articleItem.add(new Label(forumArticle, 
article.getArticleText()).setEscapeModelStrings(false));

Is there some other code which might escape the HTML?

Med vennlig hilsen

TOR IVER WILHELMSEN
Senior systemutvikler
Arrive AS
T (+47) 48 16 06 18
E-post: toriv...@arrive.no
http://www.arrive.no
http://servicedesk.arrive.no





SV: TinyMCE + TextArea + Jackrabbit

2010-05-04 Thread Wilhelmsen Tor Iver
 Using wicketstuff tinymce 1.4.1 attached to a TextArea, it seems I
 cannot get it to stop escaping the resulting HTML:
 
 TextAreaString textArea = new
 TextAreaString(threadSubjectTextInput, new ModelString());
 textArea.setEscapeModelStrings(false);
 TinyMCESettings settings = new TinyMCESettings();
 settings.setToolbarLocation(TinyMCESettings.Location.top);
 TinyMceBehavior behavior = new TinyMceBehavior(settings);
 textArea.add(behavior);

Forget it, it was code from a copy  paste developer, worked when I added the 
escape call to the other copy of this code... 

- Tor Iver

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: making tinyMce TextArea readonly

2010-01-12 Thread fachhoch

I did as you said , recreated   , the jar using latest js files .  Please
tell me what setting I should add to add spell checker and to make copy from
word and paste   to tinymce ?

Linkan wrote:
 
 You have to download the source and repack it with new javascripts to 
 make it work.
 http://old.nabble.com/making-tinymce-textarea-read-only-td23160313.html#a23170821
 
 //Swanthe
 
 tubin gen wrote:
 I ma trying to make TextArea with TinyMce behaviour readonly  , I added
 the following custom settings but it did not work
 tinyMCESettings.addCustomSetting(readonly : true);
 tinyMCESettings.addCustomSetting(mode : textareas);

 please suggest me   how to make  it readonly ?

   
 
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 

-- 
View this message in context: 
http://old.nabble.com/making-tinyMce-TextArea-readonly-tp26611935p27136175.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: making tinyMce TextArea readonly

2010-01-12 Thread Steve Swinsburg
Here's a class I created which extends the default TinyMCESettings class. I use 
this as my configuration and can customise it to my hearts content, adding and 
removing buttons:

/**
 * A configuration class for the TinyMCE Wicket component, used by textareas.
 * If more are required for different purposes, create a new class.
 */
public class TextareaTinyMceSettings extends TinyMCESettings {

private static final long serialVersionUID = 1L;

public TextareaTinyMceSettings () {
super(TinyMCESettings.Theme.advanced);

/*
add(Button.bullist, TinyMCESettings.Toolbar.first, 
TinyMCESettings.Position.after);
add(Button.numlist, TinyMCESettings.Toolbar.first, 
TinyMCESettings.Position.after);

disableButton(Button.styleselect);
disableButton(Button.sub);
disableButton(Button.sup);
disableButton(Button.charmap);
disableButton(Button.image);
disableButton(Button.anchor);
disableButton(Button.help);
disableButton(Button.code);
disableButton(Button.link);
disableButton(Button.unlink);
disableButton(Button.formatselect);
disableButton(Button.indent);
disableButton(Button.outdent);
disableButton(Button.undo);
disableButton(Button.redo);
disableButton(Button.cleanup);
disableButton(Button.hr);
disableButton(Button.visualaid);
disableButton(Button.separator);
disableButton(Button.formatselect);
disableButton(Button.removeformat);
*/

ListButton firstRowButtons = new ArrayListButton();
firstRowButtons.add(Button.bold);
firstRowButtons.add(Button.italic);
firstRowButtons.add(Button.underline);
firstRowButtons.add(Button.strikethrough);
firstRowButtons.add(Button.separator);
firstRowButtons.add(Button.sub);
firstRowButtons.add(Button.sup);
firstRowButtons.add(Button.separator);
firstRowButtons.add(Button.link);
firstRowButtons.add(Button.unlink);
firstRowButtons.add(Button.separator);
firstRowButtons.add(Button.bullist);
firstRowButtons.add(Button.numlist);
firstRowButtons.add(Button.separator);
firstRowButtons.add(Button.code);

//set first toolbar
setToolbarButtons(TinyMCESettings.Toolbar.first, 
firstRowButtons);

//remove the second and third toolbars
setToolbarButtons(TinyMCESettings.Toolbar.second, new 
ArrayListButton());
setToolbarButtons(TinyMCESettings.Toolbar.third, new 
ArrayListButton());
setToolbarButtons(TinyMCESettings.Toolbar.fourth, new 
ArrayListButton());

setToolbarAlign(TinyMCESettings.Align.center);
setToolbarLocation(TinyMCESettings.Location.top);
setStatusbarLocation(null);
setResizing(true);
setHorizontalResizing(true);

}

}


It's then used like so:
TextArea otherInformation = new TextArea(otherInformation, new 
PropertyModel(userProfile, otherInformation));

//add TinyMCE control
otherInformation.add(new TinyMceBehavior(new TextareaTinyMceSettings()));


You might be able to play with the settings above to find what you need. Check 
out the settings available in the base class.

cheers,
Steve


On 13/01/2010, at 9:43 AM, fachhoch wrote:

 
 I did as you said , recreated   , the jar using latest js files .  Please
 tell me what setting I should add to add spell checker and to make copy from
 word and paste   to tinymce ?
 
 Linkan wrote:
 
 You have to download the source and repack it with new javascripts to 
 make it work.
 http://old.nabble.com/making-tinymce-textarea-read-only-td23160313.html#a23170821
 
 //Swanthe
 
 tubin gen wrote:
 I ma trying to make TextArea with TinyMce behaviour readonly  , I added
 the following custom settings but it did not work
 tinyMCESettings.addCustomSetting(readonly : true);
 tinyMCESettings.addCustomSetting(mode : textareas);
 
 please suggest me   how to make  it readonly ?
 
 
 
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 
 
 -- 
 View this message in context: 
 http://old.nabble.com/making-tinyMce-TextArea-readonly-tp26611935p27136175.html
 Sent from the Wicket - User mailing list archive at Nabble.com

Re: making tinyMce TextArea readonly

2010-01-12 Thread fachhoch

thank you for   the post, but none of those settings will help me I have to
add some custom settings to add spell checker , 

to add spell checker tinymce tells
tinyMCE.init({
theme : advanced,
mode : textareas,
plugins : spellchecker,
theme_advanced_buttons3_add : spellchecker,
spellchecker_languages : +English=en,Swedish=sv
});


I added this through  addCustomSettings  , but it did not helped me , please
tell me what am I missing , wicket tinymce   comes with jazzy spell check
plugin  , please tell me how to use that ? 


Steve Swinsburg-3 wrote:
 
 Here's a class I created which extends the default TinyMCESettings class.
 I use this as my configuration and can customise it to my hearts content,
 adding and removing buttons:
 
 /**
  * A configuration class for the TinyMCE Wicket component, used by
 textareas.
  * If more are required for different purposes, create a new class.
  */
 public class TextareaTinyMceSettings extends TinyMCESettings {
 
   private static final long serialVersionUID = 1L;
   
   public TextareaTinyMceSettings () {
   super(TinyMCESettings.Theme.advanced);
   
   /*
   add(Button.bullist, TinyMCESettings.Toolbar.first,
 TinyMCESettings.Position.after);
   add(Button.numlist, TinyMCESettings.Toolbar.first,
 TinyMCESettings.Position.after);
 
   disableButton(Button.styleselect);
   disableButton(Button.sub);
   disableButton(Button.sup);
   disableButton(Button.charmap);
   disableButton(Button.image);
   disableButton(Button.anchor);
   disableButton(Button.help);
   disableButton(Button.code);
   disableButton(Button.link);
   disableButton(Button.unlink);
   disableButton(Button.formatselect);
   disableButton(Button.indent);
   disableButton(Button.outdent);
   disableButton(Button.undo);
   disableButton(Button.redo);
   disableButton(Button.cleanup);
   disableButton(Button.hr);
   disableButton(Button.visualaid);
   disableButton(Button.separator);
   disableButton(Button.formatselect);
   disableButton(Button.removeformat);
   */
   
   ListButton firstRowButtons = new ArrayListButton();
   firstRowButtons.add(Button.bold);
   firstRowButtons.add(Button.italic);
   firstRowButtons.add(Button.underline);
   firstRowButtons.add(Button.strikethrough);
   firstRowButtons.add(Button.separator);
   firstRowButtons.add(Button.sub);
   firstRowButtons.add(Button.sup);
   firstRowButtons.add(Button.separator);
   firstRowButtons.add(Button.link);
   firstRowButtons.add(Button.unlink);
   firstRowButtons.add(Button.separator);
   firstRowButtons.add(Button.bullist);
   firstRowButtons.add(Button.numlist);
   firstRowButtons.add(Button.separator);
   firstRowButtons.add(Button.code);
 
   //set first toolbar
   setToolbarButtons(TinyMCESettings.Toolbar.first, 
 firstRowButtons);
 
   //remove the second and third toolbars
   setToolbarButtons(TinyMCESettings.Toolbar.second, new
 ArrayListButton());
   setToolbarButtons(TinyMCESettings.Toolbar.third, new
 ArrayListButton());
   setToolbarButtons(TinyMCESettings.Toolbar.fourth, new
 ArrayListButton());
 
   setToolbarAlign(TinyMCESettings.Align.center);
   setToolbarLocation(TinyMCESettings.Location.top);
   setStatusbarLocation(null);
   setResizing(true);
   setHorizontalResizing(true);
 
   }
   
 }
 
 
 It's then used like so:
 TextArea otherInformation = new TextArea(otherInformation, new
 PropertyModel(userProfile, otherInformation));
   
 //add TinyMCE control
 otherInformation.add(new TinyMceBehavior(new TextareaTinyMceSettings()));
 
 
 You might be able to play with the settings above to find what you need.
 Check out the settings available in the base class.
 
 cheers,
 Steve
 
 
 On 13/01/2010, at 9:43 AM, fachhoch wrote:
 
 
 I did as you said , recreated   , the jar using latest js files .  Please
 tell me what setting I should add to add spell checker and to make copy
 from
 word and paste   to tinymce ?
 
 Linkan wrote:
 
 You have to download the source and repack it with new javascripts to 
 make it work.
 http://old.nabble.com/making-tinymce-textarea-read-only-td23160313.html#a23170821
 
 //Swanthe
 
 tubin gen wrote:
 I ma trying to make TextArea with TinyMce behaviour readonly  , I added
 the following custom settings but it did not work
 tinyMCESettings.addCustomSetting(readonly : true

Re: making tinyMce TextArea readonly

2009-12-03 Thread Swanthe Lindgren
You have to download the source and repack it with new javascripts to 
make it work.

http://old.nabble.com/making-tinymce-textarea-read-only-td23160313.html#a23170821

//Swanthe

tubin gen wrote:

I ma trying to make TextArea with TinyMce behaviour readonly  , I added
the following custom settings but it did not work
tinyMCESettings.addCustomSetting(readonly : true);
tinyMCESettings.addCustomSetting(mode : textareas);

please suggest me   how to make  it readonly ?

  




-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



making tinyMce TextArea readonly

2009-12-02 Thread tubin gen
I ma trying to make TextArea with TinyMce behaviour readonly  , I added
the following custom settings but it did not work
tinyMCESettings.addCustomSetting(readonly : true);
tinyMCESettings.addCustomSetting(mode : textareas);

please suggest me   how to make  it readonly ?


RE: making tinyMce TextArea readonly

2009-12-02 Thread Alex Rass
Yeah, would be good to update the whole tinyMCE thing.
It's SO popular!
It's rather outdated from what's on tinyMCE site.
It should really be repackaged with some helper stuff like 
setReadOnly(true/false).
And provide with a convenient tabbed panel for HTML/RAW edit window.

Anyone who knows how to wants to help?


-Original Message-
From: tubin gen [mailto:fachh...@gmail.com] 
Sent: Wednesday, December 02, 2009 11:34 AM
To: users
Subject: making tinyMce TextArea readonly

I ma trying to make TextArea with TinyMce behaviour readonly  , I added
the following custom settings but it did not work
tinyMCESettings.addCustomSetting(readonly : true);
tinyMCESettings.addCustomSetting(mode : textareas);

please suggest me   how to make  it readonly ?


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



tinymce textarea hidden in form

2009-11-02 Thread tubin gen
My form has tinymce text area so I added TinyMceAjaxButton  , now due to new
requirements   sometimes I have to hide tinymce textarea  , anytime I hide
tinymce text area the TinyMceAjaxButton  submit button does not work   ,
Is there a way I can use the  TinyMceAjaxButton  without tinynmce textarea ?


Re: tinymce textarea in a modal window not letting to type

2009-07-04 Thread Cristi Manole
Fixed

Just add the tinyMCE again after the modal is displayed

target.appendJavascript(tinyMCE.execCommand('mceRemoveControl',false,' +
...

target.appendJavascript(tinyMCE.execCommand('mceAddControl',false,' + ...


On Sat, Jul 4, 2009 at 4:01 AM, Cristi Manole cristiman...@gmail.comwrote:

 Hey,

 Did you manage to solve this? I'm facing the same problem - tinymce added
 to a modal (based on panel) works the first time, second time it is
 displayed nicely but cannot do anything with it (cannot focus so cannot
 type).

 Or anybody else?

 Thanks


 On Sat, Apr 25, 2009 at 6:23 AM, balingen tame 
 euuesundtrin...@gmail.comwrote:

 I  am using tinymce text area in several pages, today I added this to a
 wicket modal window, the   tinymce textarea shows up fine but when I type
 nothing goes into it , its not disabled  , I can click on the editor
 buttons, it does not take the mouse , please help me resolve this




 --
 Cristi Manole

 Nova Creator Software
 www.novacreator.com




-- 
Cristi Manole

Nova Creator Software
www.novacreator.com


Re: tinymce textarea in a modal window not letting to type

2009-07-03 Thread Cristi Manole
Hey,

Did you manage to solve this? I'm facing the same problem - tinymce added to
a modal (based on panel) works the first time, second time it is displayed
nicely but cannot do anything with it (cannot focus so cannot type).

Or anybody else?

Thanks

On Sat, Apr 25, 2009 at 6:23 AM, balingen tame euuesundtrin...@gmail.comwrote:

 I  am using tinymce text area in several pages, today I added this to a
 wicket modal window, the   tinymce textarea shows up fine but when I type
 nothing goes into it , its not disabled  , I can click on the editor
 buttons, it does not take the mouse , please help me resolve this




-- 
Cristi Manole

Nova Creator Software
www.novacreator.com


tinymce textarea in a modal window not letting to type

2009-04-24 Thread balingen tame
I  am using tinymce text area in several pages, today I added this to a
wicket modal window, the   tinymce textarea shows up fine but when I type
nothing goes into it , its not disabled  , I can click on the editor
buttons, it does not take the mouse , please help me resolve this


Re: making tinymce textarea read only

2009-04-22 Thread Swanthe Lindgren
I solved the problem by downloading the tinymce source from the svn 
repository together with the javascript lib from tinymce.moxiecode.com 
and repacking it. The latest version of the scripts handles the readonly 
option correct.


//Swanthe

tubin gen wrote:

I am trying to make   teaxarea  with a tinymce behavior readonly   below is
the code for that , but this is not working , please help me make this
readonly.


tinyMCESettings.addCustomSetting(readonly : true);

  




-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: tinymce textarea

2009-04-22 Thread fachhoch

Tinymce text is formatted with html and when I add text to label i  see the 
text with html , please tell me how can I tell wicket   that model also has
html tags and browser should interpet them and   not display ?  If I set
model of a 
label as html text   I   am expecting to seehtml parsed by browser  and
not the same html I set as model 
attached is the image   , it shows the same text i sert as model and i am
expecting browser to parse those html tags and not just display , please
help me how to acheieve this ?
\
Linkan wrote:
  http://www.nabble.com/file/p23175527/textarea-read-only.png   
 
 
 What you get out and put in tinymce is html, so why not continue with 
 pre tags? Or perhaps put it in a div tag with some style, like 
 border-left: 2px solid blue; padding-left: 5px;.
 
 //Swanthe
 
 fachhoch wrote:
 It worked , that's good, need one more suggestion , Usually without
 tinymce
 we show comments  to display  inside a pre tag  to retain the line breaks
 etc , but in case of tinymce   what's the best  way to display comments  
 ?


 Linkan wrote:
   
 Try add TinyMceAjaxSubmitModifier to your submit button

 //Swanthe

 
 
 
 
 tubin gen wrote:
 
 I am trying to make my text editor (text area )  to rich text eitors
   using timymce.First I tried wicket timymce behaviour , the problem
 is the  tinymce java scriopt is repalce my textarea html with an
 iframe


 this  is my html , but the   style=display: none; is added by tinymce
 textarea maxlength=4000 cols=120 rows=8
 name=reassignmentComments wicket:id=reassignmentComments
 id=reassignmentComments style=display: none;/

 and code generated by tinymce is   lot,  but the problem is it uses
 iframe and because of  which the textarea value is not posted to my
 form   , please help me integrating tinymce

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org


   
   

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



 

   
 
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 

-- 
View this message in context: 
http://www.nabble.com/tinymce-textarea-tp23138273p23175527.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: tinymce textarea

2009-04-22 Thread Swanthe Lindgren

I suggest that you display the text in a read only tinymce text area.

TinyMCESettings mceSettings = new TinyMCESettings(Theme.advanced);
mceSettings.addCustomSetting(readonly:true);

This only works if you update the tinymce javascripts as in  
http://www.nabble.com/Re%3A-making-tinymce-textarea-read-only-p23170821.html


fachhoch wrote:
Tinymce text is formatted with html and when I add text to label i  see the 
text with html , please tell me how can I tell wicket   that model also has

html tags and browser should interpet them and   not display ?  If I set
model of a 
label as html text   I   am expecting to seehtml parsed by browser  and
not the same html I set as model 
attached is the image   , it shows the same text i sert as model and i am

expecting browser to parse those html tags and not just display , please
help me how to acheieve this ?
\
Linkan wrote:
  
 http://www.nabble.com/file/p23175527/textarea-read-only.png   



What you get out and put in tinymce is html, so why not continue with 
pre tags? Or perhaps put it in a div tag with some style, like 
border-left: 2px solid blue; padding-left: 5px;.


//Swanthe

fachhoch wrote:


It worked , that's good, need one more suggestion , Usually without
tinymce
we show comments  to display  inside a pre tag  to retain the line breaks
etc , but in case of tinymce   what's the best  way to display comments  
?



Linkan wrote:
  
  

Try add TinyMceAjaxSubmitModifier to your submit button

//Swanthe







tubin gen wrote:



I am trying to make my text editor (text area )  to rich text eitors
  using timymce.First I tried wicket timymce behaviour , the problem
is the  tinymce java scriopt is repalce my textarea html with an
iframe


this  is my html , but the   style=display: none; is added by tinymce
textarea maxlength=4000 cols=120 rows=8
name=reassignmentComments wicket:id=reassignmentComments
id=reassignmentComments style=display: none;/

and code generated by tinymce is   lot,  but the problem is it uses
iframe and because of  which the textarea value is not posted to my
form   , please help me integrating tinymce

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org


  
  
  

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org





  
  


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org






  




-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: tinymce textarea

2009-04-21 Thread Swanthe Lindgren

Try add TinyMceAjaxSubmitModifier to your submit button

//Swanthe


tubin gen wrote:

I am trying to make my text editor (text area )  to rich text eitors
  using timymce.First I tried wicket timymce behaviour , the problem
is the  tinymce java scriopt is repalce my textarea html with an
iframe


this  is my html , but the   style=display: none; is added by tinymce
textarea maxlength=4000 cols=120 rows=8
name=reassignmentComments wicket:id=reassignmentComments
id=reassignmentComments style=display: none;/

and code generated by tinymce is   lot,  but the problem is it uses
iframe and because of  which the textarea value is not posted to my
form   , please help me integrating tinymce

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org


  




-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: tinymce textarea

2009-04-21 Thread fachhoch

It worked , that's good, need one more suggestion , Usually without tinymce
we show comments  to display  inside a pre tag  to retain the line breaks
etc , but in case of tinymce   what's the best  way to display comments   ?


Linkan wrote:
 
 Try add TinyMceAjaxSubmitModifier to your submit button
 
 //Swanthe
 
 
 tubin gen wrote:
 I am trying to make my text editor (text area )  to rich text eitors
   using timymce.First I tried wicket timymce behaviour , the problem
 is the  tinymce java scriopt is repalce my textarea html with an
 iframe


 this  is my html , but the   style=display: none; is added by tinymce
 textarea maxlength=4000 cols=120 rows=8
 name=reassignmentComments wicket:id=reassignmentComments
 id=reassignmentComments style=display: none;/

 and code generated by tinymce is   lot,  but the problem is it uses
 iframe and because of  which the textarea value is not posted to my
 form   , please help me integrating tinymce

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org


   
 
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 

-- 
View this message in context: 
http://www.nabble.com/tinymce-textarea-tp23138273p23157424.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



making tinymce textarea read only

2009-04-21 Thread tubin gen
I am trying to make   teaxarea  with a tinymce behavior readonly   below is
the code for that , but this is not working , please help me make this
readonly.


tinyMCESettings.addCustomSetting(readonly : true);


Re: making tinymce textarea read only

2009-04-21 Thread fachhoch

I resolved it with adding additional property 

tinyMCESettings.addCustomSetting(mode : textareas);  

it works but new problem appeared   the readonly text area displays html tag 
I will attach images of  textarea in read-only and editable
read-only
http://www.nabble.com/file/p23160955/textarea-read-only.png 
editable
http://www.nabble.com/file/p23160955/textarea-editable.png 


please  tell me how to resolve this



tinymce settings for readonly 
TinyMCESettings tinyMCESettings=  new 
TinyMCESettings(Theme.advanced);
tinyMCESettings.addCustomSetting(readonly : true);
tinyMCESettings.addCustomSetting(mode : textareas);

and generated html code 
script type=text/javascript !--/*--![CDATA[/*!--*/
 tinyMCE.init({
mode : exact,
elements : tinymcecomments65,
language : en,
theme : advanced,
readonly : true,
mode : textareas });

/*--]]*//script

i dont know if i can control   property mode ,by default tinymcesetting puts 
value exact and if i dont put mode textareas i will get a editable textarea.


fachhoch wrote:
 
 I am trying to make   teaxarea  with a tinymce behavior readonly   below
 is
 the code for that , but this is not working , please help me make this
 readonly.
 
 
 tinyMCESettings.addCustomSetting(readonly : true);
 
 

-- 
View this message in context: 
http://www.nabble.com/making-tinymce-textarea-read-only-tp23160313p23160955.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



tinymce textarea

2009-04-20 Thread tubin gen
I am trying to make my text editor (text area )  to rich text eitors
  using timymce.First I tried wicket timymce behaviour , the problem
is the  tinymce java scriopt is repalce my textarea html with an
iframe


this  is my html , but the   style=display: none; is added by tinymce
textarea maxlength=4000 cols=120 rows=8
name=reassignmentComments wicket:id=reassignmentComments
id=reassignmentComments style=display: none;/

and code generated by tinymce is   lot,  but the problem is it uses
iframe and because of  which the textarea value is not posted to my
form   , please help me integrating tinymce

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: tinymce textarea

2009-04-20 Thread jcgarciam

Agreed with @Jeremy,

I have used to TinyMCE myself to update a CLOB fields mapped to my Entity
Object and its value get submitted like a charm, but i remember seen this
problem in my project a while before, when the form was submitted using
Ajax, since i didn't make too much research i just switch to normal
SubmitLink and the problem was resolved. 



Jeremy Thomerson-5 wrote:
 
 I think TinyMCE always uses an iframe - because it loads an editable
 document in it.  I don't think that's your problem.  Show us all of the
 relevant code (your java and html code).
 
 --
 Jeremy Thomerson
 http://www.wickettraining.com
 
 
 
 On Mon, Apr 20, 2009 at 9:50 AM, tubin gen fachh...@gmail.com wrote:
 
 I am trying to make my text editor (text area )  to rich text eitors
  using timymce.First I tried wicket timymce behaviour , the problem
 is the  tinymce java scriopt is repalce my textarea html with an
 iframe


 this  is my html , but the   style=display: none; is added by tinymce
 textarea maxlength=4000 cols=120 rows=8
 name=reassignmentComments wicket:id=reassignmentComments
 id=reassignmentComments style=display: none;/

 and code generated by tinymce is   lot,  but the problem is it uses
 iframe and because of  which the textarea value is not posted to my
 form   , please help me integrating tinymce

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org


 
 

-- 
View this message in context: 
http://www.nabble.com/tinymce-textarea-tp23138273p23138719.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: tinymce textarea

2009-04-20 Thread fachhoch


here my code for textarea

public class CustomTextAreaT extends TextAreaT {

/**
 * 
 */
private static final long serialVersionUID = 1L;

public static final AttributeModifier  rows=new
AttributeModifier(rows,true, new ModelString(8));

public static final AttributeModifier  cols=new
AttributeModifier(cols,true, new ModelString(120));

public static final AttributeModifier  maxlength=new
AttributeModifier(maxlength,true, new ModelString(4000));


public CustomTextArea(String id) {
super(id);
add(rows);
add(cols);
add(maxlength);
add(new AuditBehaviour.TextAreaBeahaviour());
}



}


code for  AuditBehaviour.TextAreaBeahaviour()

public static class TextAreaBeahaviour  extends  JQueryBehavior{
@Override
public void renderHead(IHeaderResponse response) {
super.renderHead(response);
response.renderJavascriptReference(TEXTAREA_MAX_LENGTH);
response.renderJavascriptReference(TINY_MCE);

response.renderJavascript(((AuditWicketApplication)Application.get()).getTextAreaMaxLengthScript(),
null); 

response.renderJavascript(((AuditWicketApplication)Application.get()).getTinymceScript(),
null); 
}
}

scripts 

for max length i am using jquery   maxlength validation


jQuery(document).ready(function($) {
 //Set maxlength of all 
the textarea (call plugin)
 $().maxlength();
})


for text area

inyMCE.init({ mode : textareas });  

 and as the later guy suggested I am using ajaxlink to submit my form  does 
ajaxlink has any issues with tinynmce ?
and when form is posted the my model get updated with   pbr
mce_bogus=1/p  and not the actual text   









Jeremy Thomerson-5 wrote:
 
 I think TinyMCE always uses an iframe - because it loads an editable
 document in it.  I don't think that's your problem.  Show us all of the
 relevant code (your java and html code).
 
 --
 Jeremy Thomerson
 http://www.wickettraining.com
 
 
 
 On Mon, Apr 20, 2009 at 9:50 AM, tubin gen fachh...@gmail.com wrote:
 
 I am trying to make my text editor (text area )  to rich text eitors
  using timymce.First I tried wicket timymce behaviour , the problem
 is the  tinymce java scriopt is repalce my textarea html with an
 iframe


 this  is my html , but the   style=display: none; is added by tinymce
 textarea maxlength=4000 cols=120 rows=8
 name=reassignmentComments wicket:id=reassignmentComments
 id=reassignmentComments style=display: none;/

 and code generated by tinymce is   lot,  but the problem is it uses
 iframe and because of  which the textarea value is not posted to my
 form   , please help me integrating tinymce

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org


 
 

-- 
View this message in context: 
http://www.nabble.com/tinymce-textarea-tp23138273p23145724.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org