google-code-export / lwrte

Automatically exported from code.google.com/p/lwrte
1 stars 0 forks source link

Multiple rte instances. A safe way to switch from design to source? #58

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. I have two TEXTAREAs, succsessfully turned into RTEs
2. I switch the first RTE to "source mode"
3. I submit the form

What is the expected output? What do you see instead?
The $_POST array (php) contains only the value comingi from the first RTE.

What version of the product are you using? On what operating system?
1.2

Please provide any additional information below.
In general if I have at least "one" RTE switched to "source mode", the form
will pass only the values coming from every RTE switched to "source mode",
ignoring the RTEs in "design mode"

Thanks!

Original issue reported on code.google.com by damiano....@gmail.com on 25 May 2010 at 2:05

GoogleCodeExporter commented 9 years ago
Edit:
This is the way I call your function:
$('textarea').rte({
  css: ['../../css.css'],
  controls_rte: rte_toolbar
});

I was also trying to switch at one time all of the elements.
My aim was clicking "source mode" on the first RTE e seeing every RTE switching 
to
"source mode", so that all of the RTEs are always in the same mode (source or 
design,
it doesen't matter).

Thank you!

Original comment by damiano....@gmail.com on 25 May 2010 at 2:09

GoogleCodeExporter commented 9 years ago
In the form onSubmit run this code before submitting the form works for me.

$("textarea").submit();

Original comment by spambot....@googlemail.com on 1 Sep 2010 at 3:22