Solved

Setfocus to tinyMCE editor

Posted on 2008-10-30
5
1,545 Views
Last Modified: 2013-11-19
Hi Friends,

I have a PHP page and it having three textareas. And many users of that page create four more textareas dynamically(I wrote this using dom). And i want to give tinyMCE feature to all textareas.

Now i having two issues.

1) I can't set foucs to any of the text Area using Javascript.
2) While creating new textarea am calling tinyMCE Init, to assign tinyMCE to newly created textarea.
    But when posting the page i only get the value of lasted created Textarea other textareas having  
    blank values.

Pls help
 
0
Comment
Question by:logicslab
  • 2
5 Comments
 
LVL 6

Expert Comment

by:fourice
ID: 22838890
1) Do you get any JS errors?
2) Do the textarea's have different names of the same? If they are the same, you only get the last indeed.
0
 

Author Comment

by:logicslab
ID: 22839057
I don't get any javascript errors and each textarea's name is different.

Thank you
0
 
LVL 108

Accepted Solution

by:
Ray Paseur earned 500 total points
ID: 22840394
I have used TinyMCE extensively and I have never seen TinyMCE work correctly when there is more than one textarea on the page.  You might want to revisit the design concept so that you have no more than one TinyMCE textarea per page.

Good luck, ~Ray
0
 
LVL 108

Expert Comment

by:Ray Paseur
ID: 23285968
@logicslab: Would you please explain the grade of "C" - If you understand the grading guidelines, this is insulting.  If you do not understand the guidelines, please read them and consider whether your grade is in consonance with the letter and spirit of the EE community.  In particular, you should NEVER give a grade of "C" without attempting to give the Experts a change to help you further.  Thank you, ~Ray

Here is the link to the grading guidelines:
http://www.experts-exchange.com/help.jsp#hi403

Please also see the nearby paragraph entitled, The correct answer to some questions is "You can't do that."
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
what is best version of php to use 6 46
PHP warning 4 30
Testing a string condition in PHP 6 8
str_replace not working in php script 4 13
Introduction Since I wrote the original article about Handling Date and Time in PHP and MySQL (http://www.experts-exchange.com/articles/201/Handling-Date-and-Time-in-PHP-and-MySQL.html) several years ago, it seemed like now was a good time to updat…
Styling your websites can become very complex. Here I'll show how SASS can help you better organize, maintain and reuse your CSS code.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

867 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now