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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T07:09:52+00:00 2026-05-28T07:09:52+00:00

If you use the in-browser HTML editor that comes with SharePoint 2010, when you

  • 0

If you use the in-browser HTML editor that comes with SharePoint 2010, when you insert certain CSS selectors (like nth-child) or any JavaScript at all, SharePoint will strip those elements out before saving the page. One could argue that this is for security, but on an intranet site it doesn’t matter (what security threat could nth-child pose? Really?).

So I’m getting frustrated at how much SharePoint decides it wants to strip out of whatever HTML you enter in, and I’d like to know how to disable that, so I can enter whatever I like in the HTML editor.

Or am I asking for too much, and is there another, easier way to edit pages without having anything removed?

  • 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-28T07:09:53+00:00Added an answer on May 28, 2026 at 7:09 am

    This is a 2 part question since the styles need to be addressed in one way and the JavaScript in another.

    1. Styles

    “If the HTML editor detects new Cascading Style Sheet (CSS) classes
    whose names have the prefix ms-rteCustom-XXXX, where XXXX is the
    display name of the classes unique to the page, it displays the new
    set of custom styles instead of the default set.”

    http://msdn.microsoft.com/en-us/library/ms551040.aspx

    1. JavaScript

    SharePoint 2010 HTML Editor does not like in-line scripts. Instead you should save the script as a text file and reference it in the HTML editor:

    http://sharepointadam.com/2010/08/31/insert-javascript-into-a-content-editor-web-part-cewp/

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

Sidebar

Related Questions

HI, I started implementing a HTML Browser in Swing. I want to use the
Can I use specific html if the browser is IE? (Assuming FF is the
When I use my browser to test my web service, it opens at http://localhost:4832/
I know I can use Request.Browser.IsMobileDevice . But does anyone know how it works,
I am looking for a solution for user use the browser's back button to
I want to use the Web Browser control within an mono application, but when
I want to use an external browser window to implement a preview functionality in
How do you force a web browser to use POST when getting a url?
I'm trying to figure out how to use Emacs Code Browser (ECB) and one
I use Firefox as default browser in my computer. I need to develop the

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.