Announcement

Do not use the forums to submit bug reports, feature requests or patches, submit a New Ticket instead.

#1 2009-04-06 11:22:23

digoico
New member
Registered: 2009-04-06
Posts: 4

Simple Example Var

Hello,

I'm using the simple example which is

<script type="text/javascript">
var _editor_url  = document.location.href.replace(/examples\/simple_example\.html.*/, '')
var _editor_lang = "pt_br";
var _editor_skin = 'blue-metallic'
</script>
<script type="text/javascript" src="../XinhaCore.js"></script>
<script type="text/javascript">
var xinha_plugins = [ 'Linker', 'Equation', 'ImageManager' ];
var xinha_editors = [ 'myTextArea'];

function xinha_init()
{
  if(!Xinha.loadPlugins(xinha_plugins, xinha_init)) return;
  var xinha_config = new Xinha.Config();
  xinha_editors = Xinha.makeEditors(xinha_editors, xinha_config, xinha_plugins);
  Xinha.startEditors(xinha_editors);
}
Xinha.addOnloadHandler(xinha_init);
</script>

But I've found a problem, and submitting it I can't find the Xinha's text area variable...
I mean, I'll do all things I want to on my Xinha's text area in this case 'myTextArea' but when submitting the form I just get the POST variable of myTextArea as empty

Is it possible to have access to the xinha's text area variable after or before I submit the form? because if I can get it before submit, I could make a javascript or something else to receive the information of Xinha's text area...

Thank you for your help.
Yours,
Diogo Araujo

Offline

#2 2009-04-29 10:47:02

douglas
New member
Registered: 2009-04-29
Posts: 5

Re: Simple Example Var

If you call Xinha.updateTextareas(), it will copy the document contents to the textarea...

Offline

#3 2009-05-07 14:49:54

digoico
New member
Registered: 2009-04-06
Posts: 4

Re: Simple Example Var

Thanks!!!!!!!!!!!!!!!!!!

Offline

Board footer

Powered by FluxBB