there is a tinymce-component in distribution.
but it is very heavyloaded and I want to start a wysiwyg-textarea for wicket.
the license should be apache, so wicket can incorporate it.
as a first time component for me I started reading source-codes (datepicker),
the pro wicket book and got confused about component creation....

I started based on this article:
http://www.bewebmaster.com/55.php

I managed to display the iframe (is donw with javascript...), but can not
replace javascript-component-creation with dynamic
wicket-java-component-creation.
how is it possible to replace this javascript:

//Javascript function dislpayEditor will create the textarea.

function displayEditor(editor, html, width, height) {
   if(isEditable){
       document.writeln('<iframe id="' + editor + '" name="' + editor + '"
width="' + width + 'px" height="' + height + 'px"></iframe>');
//create a hidden field that will hold everything that is typed in the textarea
       document.writeln('<input type="hidden" id="hidden' + editor + '"
name="hidden' + editor + '" value="">');
//assign html (textarea value) to hiddeneditor
      document.getElementById('hidden' + editor).value = html;
//call function designer
      designer(editor, html);
   }else{
     document.writeln('<textarea name="' + editor + '" id="' + editor + '"
cols="39" rows="10">' + html + '</textarea>');
   }
}

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to