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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T05:29:45+00:00 2026-05-26T05:29:45+00:00

In my php program I display input forms either regular way on page load

  • 0

In my php program I display input forms either regular way on page load or in a dialog box using ajax calls.

There are two methods to create a CKEditor from textarea. Either to use jQuery

$("#textareaid").ckeditor();

or

window["textareaid"] = CKEDITOR.replace("textareaid");

Both methods creates my rich text editor inplace of my textarea in both cases either on page load or after an ajax call. That’s fine.

Here starts the problems. In these conditions CKEditor initiates without any console errors, but it never updates textarea value and always sends old value.

1) If I create my textarea on page load and use $("#textareaid").ckeditor();. CKEditor initiates ok without any console errors but on regular form submit, the sent value is empty (old value).

2) If I create my textarea after an ajax call and use window["textareaid"] = CKEDITOR.replace("textareaid"); . Again CKEditor initiates correctly but if I do $(“form”).serialize() and alert the result I see that textarea value is empty (old value).

I can’t create a demo page and upload right now and I know that no one will try to replicate this issue without my codes (at least I wouldn’t because I’m so lazy)

I’ll prepare a demo page to replicate this issue for you guys but until then I’m asking if someone here faced the same problem and know the reason or found a solution?

Thanks

  • 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-05-26T05:29:45+00:00Added an answer on May 26, 2026 at 5:29 am

    You should be ok if you call:

     CKEDITOR.instances[your instance].updateElement();
    

    ‘your instance’ in the eaxmple would be simply textareaid since that’s what you’re using in the CKEDITOR.replace() function

    before you serialize the form.

    Had the exact same problems a couple of days ago 🙂

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

Sidebar

Related Questions

I'm planning to make a very simple program using php and mySQL. The main
I have a program in php that should display the random images without repetition,I
I need to display a link at a very specific time using PHP. The
What is the best way to send messages from PHP script to Java program
Debugging a PHP program, is there any add-on/plug-in for browser which I can view
I have a PHP program that has been written keeping in mind a single
I am working on a php program that needs to store many Event objects
I am working on a php program that requires javascript on every form control.
my aim is to invoke a shell script from a PHP program and then
I have a SQL update statement I am running from inside a PHP program.

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.