Where do you want the content of the text area to be saved? Your text
area doesn't even have a name so it isn't submitted to the server when
you save the page. I suggest you read
http://platform.xwiki.org/xwiki/bin/view/DevGuide/FAQTutorialManual .

Hope this helps,
Marius

On Mon, Oct 7, 2013 at 4:43 PM, Michael Born <[email protected]> wrote:
> Hi guys,
> I need in my XWiki page a TextArea whose content I can edit and save.
>
> Currently I have a normal Textarea in HTML macro and whenever I edit the
> content of this box inwysiwyg or inline mode it will not be saved.
>
> Here is the document content:
>
> {{velocity}}
> $xwiki.jsfx.use("js/xwiki/wysiwyg/xwe/XWikiWysiwyg.js", {'forceSkinAction':
> true, 'lazy': true})
>
> {{html}}<br/>
>  <div class='container'>
>   <div class='delegation_container'>
>       <a href='/xwiki/bin/view/MySpace/MyPage'>MyPage</a>
>   </div>
>   <div class='shadow_box'>
>       <table class='activity_table'>
>        <tr style='border: 0px;'>
>      <td style='border: 0px;'>
>       <div class='body_identifier'>ID</div>
>      </td>
>
>                  <td><input id='ID' type='text'
> class='task_page_text_content' value='84978164'/></td>
>          </tr>
>        <tr style='border: 0px;'>
>      <td style='border: 0px;'>
>       <div class='body_identifier'>Name</div>
>      </td>
>
>                  <td><input id='Name' type='text'
> class='task_page_text_content' value='Projektmanagment'/></td>
>          </tr>
>        <tr style='border: 0px;'>
>      <td style='border: 0px;'>
>       <div class='body_identifier'>Arbeit</div>
>      </td>
>
>                  <td><input id='Arbeit' type='text'
> class='task_page_text_content' value='10.0'/></td>
>          </tr>
>        <tr style='border: 0px;'>
>      <td style='border: 0px;'>
>       <div class='body_identifier'>Startzeit</div>
>      </td>
>
>                  <td><input id='Startzeit' type='text'
> class='task_page_text_content' value='02.10.2013'/></td>
>          </tr>
>        <tr style='border: 0px;'>
>      <td style='border: 0px;'>
>       <div class='body_identifier'>Endzeit</div>
>      </td>
>
>                  <td><input id='Endzeit' type='text'
> class='task_page_text_content' value='17.10.2013'/></td>
>          </tr>
>        <tr style='border: 0px;'>
>      <td style='border: 0px;'>
>       <div class='body_identifier'>Einschrenkung</div>
>      </td>
>
>                  <td><input id='Einschrenkung' type='text'
> class='task_page_text_content' value='none'/></td>
>          </tr>
>        <tr style='border: 0px;'>
>      <td style='border: 0px;'>
>       <div class='body_identifier'>Art</div>
>      </td>
>
>                  <td><input id='Art' type='text'
> class='task_page_text_content' value='work'/></td>
>          </tr>
>        <tr style='border: 0px;'>
>      <td style='border: 0px;'>
>       <div class='body_identifier'>Kommentar</div>
>      </td>
>
>            <td>*<**textarea **id='84978164_ta' title='Comment'
> class='task_page_comment_container'></**textarea**>*</td>
>          </tr>
>        <tr style='border: 0px;'>
>      <td style='border: 0px;'>
>       <div class='body_identifier'>Vorgänger</div>
>      </td>
>
>                        <td><input id='Vorgänger' type='text'
> class='task_page_text_content' value=''/></td>
>          </tr>
>        <tr style='border: 0px;'>
>      <td style='border: 0px;'>
>       <div class='body_identifier'>Projekt</div>
>      </td>
>
>                  <td><input id='Projekt' type='text'
> class='task_page_text_content' value='00122'/></td>
>          </tr>
>       </table>
>
>      </div>
>  </div>
> <br/>
>
> ** This was just a attempt **
>
> <script type="text/javascript">
> Wysiwyg.onModuleLoad(function() {
>  alert("HELLO WOLRD");
>  new WysiwygEditor({hookId:'84978164_ta'});
> });
> </script>
>
> *************************
> {{/html}}
> {{/velocity}}
>
>
> What should I do so that I can save the contents of the textarea?
>
> About help I would be very grateful.
>
> Yours sincerely,
> Michael Born
> _______________________________________________
> users mailing list
> [email protected]
> http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________
users mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/users

Reply via email to