internet explorer - Why does what gets pasted into contenteditable change when the div is created in javascript? -
code:
I'm trying to paste rich text / html (a website / Google To say) docs / words). So in the example, copy some rich text (say something bold or have a color) and see the difference for the dynamic = true
and dynamic = false
in the output of JSBN.
If you change the mobility on the right, then the stuck content is not the correct style and basically becomes plain text.
code> If there is dynamic lie (use content from html), then pasted content Is: I would like to place styling adhesive material, but create the div dynamically, maybe I kept it wrong Am I "Armam Ipsum is the industry"
"& lt; span id = \" docs-internal-guid-e65c220d-7af8-1058-1ff7-d7af0ef00ef9 \ "style = 'color: RGB (255, 0, 0 Font-family: \ "courier new \", font-size: 11px; font-style: italic; font-variant: normal; font-weight: bold; text-decoration: underlined; vertical-align: base line; Background-color: RGB (255, 255, 0); '& gt; Lorem Ipsum has been the industry & Lt; / span & gt; & lt; br & gt; "
OK because it's just plain instead of
! Document.documentElement
Document.body
Comments
Post a Comment