Solved

Setfocus to tinyMCE editor

Posted on 2008-10-30
5
1,525 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
@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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
These days socially coordinated efforts have turned into a critical requirement for enterprises.
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…

763 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

9 Experts available now in Live!

Get 1:1 Help Now