Sign in or 

|
kristenkuhns |
css showing when pasting data copied from websites
Jun 11 2008, 7:35 PM EDT
During testing, I took data from techcrunch blog and pasted the data into a wiki page. Most of it seems to be relatively good pasting, but towards the bottom there seems to be css that is showing. I realize that TC has many widgets and apps built into its blog, but you might want to take a look at this.http://nuwire.tiersolution.com/NuWire/wiki/pages/TechCrunch-test.aspx here is an example of what is showing: .cbw{ padding: 1px; border: 1px solid #b6b6b6; margin: .6em 0 .6em 0 !important;} .cbw a{ color: #3F87BB !important; border: 0 !important; text-decoration: none !important;} .cbw a:hover{ color: #165d91 !important; border: 0 !important; text-decoration: none !important;} .cbw_header{ font-size: .9em; font-weight: bold; position: relative;} .cbw_header_text{ background: #f4f4f4 !important; padding: 1em 1em 1em 1em !important;} .cbw_header_toggle{ display: block; position: absolute; top: 1em; right: 1em; _right: 3.5em; font-weight: bold; cursor: pointer;} .cbw_subheader{ padding: .7em .7em .5em .7em !important; border: 0 !important; margin: 0 !important; font-size: 1.2em !important; background: #f4f4f4 !important; font-weight: bold;} .cbw_subcontent{ font-size: 0.95em; line-height: 1.2em !important; margin: .15em 0 .15em 0 !important; padding: .7em !important; background: white !important; border-top: 2px solid #f4f4f4 !important; border-bottom: 2px solid #f9f9f9 !important; overflow: hidden; height: auto;} .cbw_subcontent p{ margin: .45em .15em .45em .15em !important; padding: 0 !important;} .cbw_subcontent_left{ float: right !important; margin: 0 0 .5em .5em !important;} .cbw img{ max-width: 150px !important; max-height: 150px !important; border: 0 !important; padding: 0 !important;} .cbw img:hover, .cbw_subcontent_left a:hover{ important;} .cbw_subcontent .td_left{ width: 40px !important; font-weight: bold !important;} .cbw_footer{ padding: .8em !important; font-size: .9em !important; text-align: right !important; background: #f9f9f9 ! Do you find this valuable?
Keyword tags:
css
cut + paste
displays
editor
pasting
|
|
ryan_wetpaint |
1. RE: css showing when pasting data copied from websites
Jun 12 2008, 1:12 PM EDT
Depending on how another website is constructed, this may occur. To be safe, we have a whitelist of allowed tags -- STYLE is not one of them. If the site contains CSS in a style tag and the browser chooses to copy that as content, we will remove the tag but allow the content within the tag.We've found that most all-page cut and pastes are from users who are inconsiderate of copyright and content ownership -- so we haven't been racing to improve this behavior. Most legitimate copy and pastes are more selective. Finally, this is pretty easy for users to correct -- just find the unwanted text and delete it. I'll add your findings to our log of this behavior. Thanks for digging into this! Do you find this valuable? |