Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Apr 24th, 2012  |  syntax: None  |  size: 0.90 KB  |  hits: 11  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. tinyMCE editor not able to insert content in another textareas while it allows only first text area
  2. var configArray = [{
  3. theme : "advanced",
  4. mode : "none",
  5. language : "en",
  6. height:"200",
  7. width:"100%",
  8. theme_advanced_layout_manager : "SimpleLayout",
  9. theme_advanced_toolbar_location : "top",
  10. theme_advanced_toolbar_align : "left",
  11. theme_advanced_buttons1 : "bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull",
  12. theme_advanced_buttons2 : "",
  13. theme_advanced_buttons3 : ""
  14. },{
  15. theme : "advanced",
  16. mode : "none",
  17. language : "en",
  18. width:"100%",
  19. theme_advanced_layout_manager : "SimpleLayout",
  20. theme_advanced_toolbar_location : "top",
  21. theme_advanced_toolbar_align : "left"`enter code here`
  22. }];
  23.  
  24. tinyMCE.settings = configArray[0];
  25. tinyMCE.execCommand('mceAddControl', true, "overview");
  26.  
  27. tinyMCE.settings = configArray[1];
  28. tinyMCE.execCommand('mceAddControl', true, "key_featured");