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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T17:22:38+00:00 2026-05-25T17:22:38+00:00

The problem: CKEditor is adding tons of <span> tags to plain text, such as

  • 0

The problem:

CKEditor is adding tons of <span> tags to plain text, such as the example below.

The code:

The setup is a php page, calling ckeditor and saving entries into a PostgreSQL table. I believe most settings on CKEditor is default. Here’s some of the code:

include ('./ckeditor/ckeditor.php') ;
$CKEditor = new CKEditor() ;
$CKEditor->returnOutput = true;
$CKEditor->basePath = '/ckeditor/';
$CKEditor->config['width'] = 560;
$CKEditor->config['height'] = 300;
$CKEditor->textareaAttributes =
                array("cols" => 90, "rows" => 70);
$CKEditor->config['DefaultLanguage'] = "sv" ;
//$CKEditor->config['EnterMode'] = CKEDITOR.ENTER_BR;
$config['toolbar'] = array(
        array( 'Source', '-', 'Bold', 'Italic', 'Underline', 'Strike', '-' ),
        array( 'Image', 'Link', 'Unlink', '-', 'Table', 'NumberedList','BulletedList' )
);
$config['skin'] = 'v2';

Example input/output (in source):

The input:

En hel del av er

Becomes:

En <span data-scayt_word="hel" data-scaytid="2">hel</span> del 
<span data-scayt_word="av" data-scaytid="3">av</span> 
<span data-scayt_word="er" data-scaytid="4">er</span>

Is there a way to avoid this behaviour?

  • 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-25T17:22:39+00:00Added an answer on May 25, 2026 at 5:22 pm

    The easiest way: disable the spellchecker (scayt – spellcheck as you type)

    $CKEditor->config['removePlugins'] ='scayt'; // comma separated if many
    

    How to remove unused plugins

    If you want to leave SCAYT available, but prevent the feature from being turned on automatically:

    $CKEditor->config['scayt_autoStartup'] = false;
    

    But this is strange behavior, how do you retrieves the content from ckeditor instance? Just try to get data from firebug to see the not dirty content:

    console.log( CKEDITOR.instances.your_instance_name.getData() );
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've got a problem with a CKEditor plugin. I need PHP code to make
I've got a problem with CKEditor. Especially the br- and img-Tags are transformed to
<textarea name=page[content] id=content class=medium-width style=height:100px;></textarea> <script type=text/javascript> CKEDITOR.replace( 'page[content]' ); $('#btn').click(function(){ CKEDITOR.instances.page[content].updateElement(); }); </script>
I dont want the ckeditor to escape text written. I use the editor such
Problem is described and demonstrated on the following links: Paul Stovell WPF: Blurry Text
Problem solved: Thanks guys, see my answer below. I have a website running in
I am using the CKEditor for my website along with PHP, and want to
I need to be able to swap CKEditor rich text areas throughout my webpage.
I've created a page that uses the CKEditor javascript rich edit control. It's a
I have a node with a text area editable with CKEditor. THis means my

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.