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

  • Home
  • SEARCH
  • 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 8616303
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T05:35:10+00:00 2026-06-12T05:35:10+00:00

Here how I created CKeditor in index.php(I am using it with CKfinder): < textarea

  • 0

Here how I created CKeditor in index.php(I am using it with CKfinder):

< textarea id="text" name="text" >

< /textarea >

       <?php
        include_once 'ckeditor/ckeditor.php';
        require_once 'ckfinder/ckfinder.php' ;
        $ckeditor = new CKEditor();
        $ckeditor->basePath  = 'ckeditor/' ;
        CKFinder::SetupCKEditor( $ckeditor, 'ckfinder/' ) ;
        $config['height'] = '300';
        $ckeditor->editor('text', $initialValue, $config);
        ?>

and submit the value of the editor via this button to the ajax function below:

( < a onclick="submit();" > Send < /a > == > this perfectly calls the ajax function)

 function submit()
    {
    var textbox= CKEDITOR.instances.text.getData();
    $.ajax({
            type: "POST",
            url: "index2.php",
            data: "textbox="+textbox,
            error: function(){

              alert('Error while loading');
          },
                success: function(data){
                $('#content').html(data);
      }
      });
}

In index2.php I tried to get the value as

   $textbox= $_POST['textbox'];

and it did not work. I also tried to get it via

   $textbox= stripslashes($_POST['textbox']) ;
   $textbox=mysql_real_escape_string($textbox);

İt also did not work. I do not know what to do with this issue. Any idea will be appreciated

  • 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-12T05:35:11+00:00Added an answer on June 12, 2026 at 5:35 am

    I had a problem with CKEditor and posting it’s values when those values contained special characters..
    in my case it happened when a &nbsp; was inside the content of the editor.
    It “killed” the url since ?data=blabla&nbsp; is a malformed url..
    i used encodeURIComponent() to make sure such things wouldn’t happen.

    https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/encodeURIComponent

    not sure if this is exactly your problem (right now 😉 but you might want to look for this too.

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

Sidebar

Related Questions

I am using CKEditor with PHP. Using the sample PHP where the $code variable
I'm using CKEditor as a rich text editor for my website. On that site
Has anyone here created a Flash site or application that is ADA (Section 508)
I am trying to emulate another form that the other developer here created. In
I know that many threads has been created here & on the internet about
I am trying to add an attirubute to objects that i created.Here i created
Here is the deal: I created an SVN repository, say, foo. It is at
Here's our scenario: We've created a sharepoint 2007 calendar on our intranet site We
Here is a regular expression I created to use in JavaScript: var reg_num =
So here's my problem: I've created a custom AVCaptureSession that takes pictures. I'm not

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.