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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T19:39:21+00:00 2026-05-24T19:39:21+00:00

TinyMCE color formating is putting in to span tag, now I need when ever

  • 0

TinyMCE color formating is putting in to span tag,
now I need when ever user change color for a text add
one extra character
(for those who may wonder way I need this, read this: Inserting HTML tag in the middle of Arabic word breaks word connection (cursive))

so this is how TinyMCE normaly format text:

<p><span style="color: #ff6600;">forma</span>tings</p>

this is how I need to be:

<p>X<span style="color: #ff6600;">forma</span>tings</p>

so before any span I need to add one extra character.

I was searching throug TinyMCE source but I couldn’t find where it assembly this.

  • 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-24T19:39:21+00:00Added an answer on May 24, 2026 at 7:39 pm

    I totaly understand your need for a word-joiner.
    Depending on the browser you might be able to insert this character using a css-pseudo element – in this case before: http://www.w3schools.com/cssref/sel_before.asp

    Your tinymce content css (use the tinymce init setting content_css) should contain the following:

    body span:before {
        content:'\2060'; // use '\00b6' to get something visible for testing
    }
    

    UPDATE: Approch2:

    You can do this check to enter your word joiners:

    var ed = tinymce.get('content') || tinymce.editors[0];
    
    var span = $(ed.getBody()).find('span:not(.has_word_joiner)').each(function(index) {
      ed.selection.select(this);
      ed.execCommand('mceInsertContent', false, '\u2060<span class="has_word_joiner">'+this.innerHTML+'</span>'); // you might want to add the formerspan attributes too, but that is a minor issue
    });
    

    You might need to call this using an own plugin on special events.

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

Sidebar

Related Questions

Is there a tinymce plugin that wraps text within the tag? Something similar to
I use TinyMCE to allow minimal formatting of text within my site. From the
I have problem with TinyMCE editor. I have form with few text fields and
Running an ASP.Net website and using TinyMCE for content management. Users need to be
I changed my css in /tinymce/jscripts/tiny_mce/themes/advanced/skins/default/content.css scrollbar-base-color: #32332E; scrollbar-arrow-color: #32332E; scrollbar-3dlight-color: #3F423B; scrollbar-darkshadow-color: #92968A;
I am implementing ForeColor in TinyMCE Rich Text Editor. it uses style to apply
Consider this snippet: <div> <span style=color:red;>a</span> <span style=color:blue;>a</span> <span style=color:white;>a</span> </div> How can you
I'm using TinyMCE to provide users the capability of simple text formatting (bold, italics,
I'm using TinyMce and even though the danger of a script attack, I need
I want TinyMCE applied on a TextArea when user role is admin otherwise show

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.