Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Setfocus to tinyMCE editor

Posted on 2008-10-30
5
Medium Priority
?
1,673 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
4 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 111

Accepted Solution

by:
Ray Paseur earned 2000 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 111

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

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

Question has a verified solution.

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

Preface This is the third article about the EE Collaborative Login Project. A Better Website Login System (http://www.experts-exchange.com/A_2902.html) introduces the Login System and shows how to implement a login page. The EE Collaborative Logi…
Since pre-biblical times, humans have sought ways to keep secrets, and share the secrets selectively.  This article explores the ways PHP can be used to hide and encrypt information.
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…
Suggested Courses

783 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