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 8485487
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T20:39:43+00:00 2026-06-10T20:39:43+00:00

I am trying to add a textarea and dynamically active it with tinyMCE.execCommand(‘mceAddControl’, false,’id’)

  • 0

I am trying to add a textarea and dynamically active it with

tinyMCE.execCommand('mceAddControl', false,'id')

I have tried it with other textareas and it works great, but is not working with this specific textarea:

'id_sguidepoint_set-'+index+'-gp_description'

Could it be that the name is too big? Or because some of the characters are not valid in tinyMCE?

Here is my tinyMCE initial configuration:

tinyMCE.init({
            mode : "textareas",
            theme : "advanced",
            plugins : "emotions,spellchecker,advhr,insertdatetime,preview,jbimages", 

            // Theme options - button# indicated the row# only
            theme_advanced_buttons1 : "newdocument,|,bold,italic,underline,|,justifyleft,justifycenter,justifyright,fontselect,fontsizeselect,formatselect",
            theme_advanced_buttons2 : "cut,copy,paste,|,bullist,numlist,|,outdent,indent,|,undo,redo,|,link,unlink,anchor,jbimages,|,code,preview,|,forecolor,backcolor",
            theme_advanced_buttons3 : "insertdate,inserttime,|,spellchecker,advhr,,removeformat,|,sub,sup,|,charmap,emotions",      
            theme_advanced_toolbar_location : "top",
            theme_advanced_toolbar_align : "left",
            theme_advanced_resizing : false ,
            relative_urls : false
    });

and this is the element that I want to activate:

<textarea id="id_sguidepoint_set-3-gp_description" rows="10" cols="40" name="sguidepoint_set-3-gp_description" style="display: none; " aria-hidden="true"></textarea>

Obviously there are more than one textarea, that is why I have to use an index to iterate through them

Any help will be really appreciated

Thanks in advance

  • 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-10T20:39:45+00:00Added an answer on June 10, 2026 at 8:39 pm

    Ok, after trying a lot of different thing I figured out that my problem was that the textarea was hidden:

    style= "display: none"
    

    So that was the problem, since the textarea can be drawn everything is ok.

    I hope it helps to other people that comes with the same issue.

    Regards

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to add text to textarea in current pointer position, here's the code
I am trying add picture boxes dynamically. My code is as PictureBox picture =
I'm trying to add things to a textarea. it's not working... <html><head></head><body> <div id=wrapper>
I'm trying to add formatted json string to my textarea field. But it doesn't
I have a working Ajax form, now I'm trying to add file upload to
im trying to make this div have the same styling properties as my textarea
i am trying like this: setup : function(ed, evt) { ed.onInit.add(function(ed, evt) { tinymce.dom.Event.add(ed.getDoc(),
I am trying to use JavaScript to add rows to a table dynamically using
I'm trying to add a textarea with rounded corners to my site. I'm using
I'm trying to add a custom textarea in the admin area of wordpress using

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.