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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T21:05:02+00:00 2026-05-18T21:05:02+00:00

How do some WYSIWYG editors keep formatting of pasted text? As an example, I

  • 0

How do some WYSIWYG editors keep formatting of pasted text? As an example, I copied italic red text from a text-editor into a WYSIWYG and it kept the text’s color and style, how is this happening? For the longest I thought JavaScript had access the clipboards text only. Is this not the case? If so then, what is it?

  • 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-18T21:05:02+00:00Added an answer on May 18, 2026 at 9:05 pm

    There’s a content type negotiation between the source and target during the copy/paste operation. It happens sort of like this:

    1. You copy something into the copy and paste buffer. The copied data is tagged with, more or less, a MIME type and who put it there.
    2. When you paste, the paste target tells the copy-and-paste system that it understands a specific list of MIME types.
    3. The copy-and-paste system matches the available formats to the desired formats and finds text/html in both lists.
    4. Someone (probably the original source of the data) then converts the paste buffer to text/html and drops it in the editor.

    That’s pretty much how things worked back when I was doing X11/Motif development (hey! get off my lawn you rotten kids!) so I’d guess that everyone does it pretty much the same way.

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

Sidebar

Related Questions

I've been looking into some of the WYSIWYG editors (TinyMCE, FCKEditor, etc.) and they
I have some data (which users input using WYSIWYG editor). I have created a
Im trying to hammer togehter a WYSIWYG-edit in c# following some examples from here
My website has a wysiwyg editor- logged in users save text to an SQL
following the instructions at: http://www.farinspace.com/multiple-wordpress-wysiwyg-visual-editors/ i've got some nice WYSIWYG editors in my metaboxes
I'm searching for WYSIWYG editor, which has some built-in (or maybe plug-in) extra functions
Thanks to some great help on SO, I managed to get a WYSIWYG editor
Is there some sort of HTML designer (WYSIWYG) available that allows me to draw
I am writing a plugin to an old IE-only WYSIWYG-editor which resides in an
When it comes to WYSIWYG editors WYSI rarely WYG. The problem I always have

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.