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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T02:06:45+00:00 2026-06-03T02:06:45+00:00

I applied tinyMCE to a text area in my sites admin area. Now there

  • 0

I applied tinyMCE to a text area in my sites admin area.
Now there is a page “create category” and and page “edit category.”

In edit category, there is a drop-down of the categories, I select one and the text area for category description is filled in with AJAX and a tinyMCE function:_

tinyMCE.activeEditor.setContent(responce);

The category description is filled into the text area on which tinyMCE is applied. But when I click submit, NOTHING happens at all.Similarly, on the create category page, there is no drop down, but when you click submit, nothing happens at all.

This problem does not occur when tinyMCE is not applied. But on the edit category page, it was submitting but not filling in the text area with the category description, when instead of

tinyMCE.activeEditor.setContent(responce);

I used

$("#lang_description").html(responce);

in the callback function for jQuery AJAX.

So the main problem is that the forms are not being submitted and that was the story.

Someone suggested to use the tinyMCE function getContent before I post but I dont understand where and how I would do that.

  • 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-03T02:06:46+00:00Added an answer on June 3, 2026 at 2:06 am

    I’ve faced a situation once like yours and what I did that was first i set in tinyMCE.init

    tinyMCE.init({
        mode : "exact", // Used exact
        elements : "page_content", // I gave the textarea id and name 'page_content'
        ...
    });
    

    Then I’ve wrote a function as follows

    function get_page_content()
    {
        var ed = tinyMCE.get('page_content');
        return ed.getContent();
    }
    

    Then inside my form submit event handler/function I just did

    $('#page_content').val(get_page_content()); // I populated my textarea (id=page_content) before the form submission
    

    I received the data using $page_content=$_POST['page_content'] in my php script

    Update: May be you can use

    var ed=tinyMCE.activeEditor.getContent(); // when you didn't set the mode : "exact" in init function
    

    Reference: getContent and setContent

    May be not a solution but If this helps then I’ll be glad to know. Also notice Sparky672’s comment.

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

Sidebar

Related Questions

I want TinyMCE applied on a TextArea when user role is admin otherwise show
Can glow effects be applied on text inside UITextView? If so, how?
I Applied a patch to a asp.net page using the tortoise svn Apply Patch
I already applied a custom order for the toplevel navigation of my page, but
I have applied the class of pagination in the search result to page search-result.php
I applied the following CSS to the above text. How to make the underline
I applied spring validation in my registration page .but the follwing error are shown
I have a textarea that has tinyMCE applied to it when the dialog is
I applied partitioning to my tables today, and would now like to see stats
I applied Forms authentication to my monorail project. In login page, all static files

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.