Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8169803
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T20:57:45+00:00 2026-06-06T20:57:45+00:00

I have webpage (index.pl), in it’s div (id = ‘right’) i have dynamically loaded

  • 0

I have webpage (index.pl), in it’s div (id = ‘right’) i have dynamically loaded a page(editor.pl) containing textarea.To change this textarea as TinyMce editor I have dyanamically loaded a js file (include_tiny_mce.js) which has tinyMce.init() function as below :

$.ajax({
    type:'POST',
    url:'editor.pl',
    success:function(msg){
    $("#right").html(msg);
    $("head").append("<script src='/include_tiny_mce.js'></script><script src='/scripts.js'></script>");

    },

Now all this is working fine and all textareas are changed to tinyMce but when I am using
tinyMCE.activeEditor.setContent("hello world");
from a js file (script.js, already included in index.pl) to set content in tinyMce it is not showing the content.
Anyone can tell me the solution for this ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T20:57:47+00:00Added an answer on June 6, 2026 at 8:57 pm

    The variable activeEditor gets set when you first “activate/use” it (like clicking into it).
    In case you are using only one single editor you may use tinymce.editors[0] :

    tinymce.editors[0].setContent("hello world");
    

    In all other cases use the tinymce instance object this way

    tinymce.get('right').setContent("hello world");
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

On my index page I have a link to my login.php page with this
DIV's (longer than page length) background stops repeating I have HTML webpage with a
I currently have this on a webpage I'm making: HTML <div id=pageHeader> <nav id=siteNav>
I have the following directory structure : /script/x.js /includes/x.txt /1/2/index.html After hooking a webpage
i have a dynamic php web page localhost/ctd/index.php All working good except if i
I have a webpage including the following div: <div class='book_box'> <table border=0 cellspacing=0> <tr>
I have a webpage that redirects to another webpage like this: http://www.myOtherServer.com/Sponsor.php?RedirectPage=http://mylink.com/whereIwasgoingtogo.html Then the
I have a webpage that displays a very large list of data. Since this
I have a webpage with a div which contains several other divs WITHOUT an
I have an webpage where I am displaying news comments dynamically, the Comment link

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.