Solved

Setfocus to tinyMCE editor

Posted on 2008-10-30
5
1,574 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 109

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 109

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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Currency in SQL? 2 30
How to display div value on input field value in php 11 52
XML extra information 8 28
Wordpress Security 29 47
Build an array called $myWeek which will hold the array elements Today, Yesterday and then builds up the rest of the week by the name of the day going back 1 week.   (CODE) (CODE) Then you just need to pass your date to the function. If i…
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…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

791 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