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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T10:16:33+00:00 2026-06-18T10:16:33+00:00

I am running WYSIHTML5 to allow myself to enter email text and format it

  • 0

I am running WYSIHTML5 to allow myself to enter email text and format it for sending as HTML. However when I view HTML of the formatted text I get classes associated with elements for Colors. This is expected behavior but since I need to send the output in an email hence I would like to have those colors to be in Inline CSS, since I cannot attach CSS files with the email like that. Example here

<span class="wysiwyg-color-green">Testing</span>

That is if I select green color for text: Testing. Is there any way to modify that green to become part of html itself like

<span style="color:green">Testing</span>

I have tried to search for this but could not find, so I am not asking without first looking for it. If anybody could please just point somewhere. Even a link to any guide to this, will do. I do not wish that you spend time writing code for me.

  • 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-18T10:16:34+00:00Added an answer on June 18, 2026 at 10:16 am

    You could do it with php :

    str_replace ( 'class="wysiwyg-color-green"', 'style="color:green"' ,$html)
    

    You can do the same with javascript, altrough it’s always safer to do everything server-side.
    http://www.w3schools.com/jsref/jsref_replace.asp

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

Sidebar

Related Questions

Running the debugger in Xcode when you set a breakpoint you get a view
Running this: bcp MyDb.dbo.uvwMyView out c:\Test.txt -SMyServer -T -c I get this error: SQLState
Running this prints out both statements #!/bin/bash echo Hello && echo World However, running
Running my site through http://validator.w3.org/check , I get a lot of error messages saying
Running rvmsudo passenger-install-nginx-module , I get: Checking for required software... * GNU C++ compiler...
running sqlbulkcopy in c# and I get an error: WriteToServer: Connection property has not
Running a wordcount example provided by http://developer.yahoo.com/hadoop/tutorial/module3.html#running I am running hadoop on a VM
Running this xul app: <?xml version=1.0?> <?xml-stylesheet href=chrome://global/skin/ type=text/css?> <window width=400 height=300 style=background-color:transparent; xmlns=http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul>
Running into a problem where on certain servers we get an error that the
Running FxCop on my code, I get this warning: Microsoft.Maintainability : 'FooBar.ctor is coupled

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.