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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T01:51:14+00:00 2026-05-14T01:51:14+00:00

I recently added CKEditor to my app and I would like to include my

  • 0

I recently added CKEditor to my app and I would like to include my own CSS stylesheets within the editor so that I can select them within the editor.

How do I accomplish this? My code so far looks like this:

<script type="text/javascript">

    CKEDITOR.replace( 'editor1',{
        uiColor : '#9AB8F3',
    });

</script>
  • 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-14T01:51:15+00:00Added an answer on May 14, 2026 at 1:51 am

    Please look at @metavida answer for a better answer than this

    <script type="text/javascript">
    
        CKEDITOR.replace( 'editor1',{
    
              uiColor : '#9AB8F3',
              stylesSet.add('default', [
                   { name: 'My Custom Block', element: 'h3', styles: { color: 'Blue'} },
                   { name: 'My Custom inline style', element: 'q'}
              ]);    
        });
    
    </script>
    

    Though if you’re using this in more than one place it’d be best to look at putting this into the stylescombo\styles\default.js file and updating your config.js file accordingly as per api.

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

Sidebar

Related Questions

I recently added namespaces to my rails app. I had a form that will
I've recently added the JQuery autocomplete plug in and have a textbox that autocompletes
I recently added devise confirmable module to my rails app. My application runs well
I recently added a new column to a MySQL database (featured), then added that
I've recently added the wibiya toolbar to my site. Since doing that, my jquery
I recently added some namespaces to my web.config file so that all of my
We recently added a feature to our software that requires .NET 2.0 SP2. This
I recently added some css to my website, it works perfectly fine in all
I'm new to rails and I recently discovered rails_admin. I added CKEditor using the
My company has recently added some new code styling rules, and I would was

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.