Make WordPress Core

Ticket #44621: 44621.5.diff

File 44621.5.diff, 972 bytes (added by garrett-eclipse, 5 years ago)

Updated patch to address the regression of the styled copied content and improve the pasted content for classic editor Text tab and external rich text editors (Word/TextEdit/etc)

  • src/wp-admin/css/edit.css

     
    729729        margin-top: 6px;
    730730}
    731731
     732.hide-privacy-policy-tutorial {
     733        background-color: #fff;
     734}
     735
    732736.hide-privacy-policy-tutorial .privacy-policy-tutorial {
    733         visibility: hidden;
     737        display: none;
    734738}
    735739
    736 .wp-suggested-text p {
    737         font-style: italic;
     740.wp-suggested-text p:not(.privacy-policy-tutorial) {
     741        background-color: #fff;
     742        margin: 0;
     743        padding: 1em;
    738744}
    739745
    740 .wp-suggested-text p.privacy-policy-tutorial {
    741         font-style: normal;
     746.wp-suggested-text p:not(.privacy-policy-tutorial) + p:not(.privacy-policy-tutorial) {
     747        padding-top: 0;
    742748}
    743749
     750.hide-privacy-policy-tutorial p:not(.privacy-policy-tutorial) {
     751        margin: 1em 0;
     752        padding: 0;
     753}
     754
     755strong.privacy-policy-tutorial {
     756        display: block;
     757        margin: 0 0 1em;
     758}
     759
    744760.notice.wp-pp-notice {
    745761        margin: 15px 0 3px;
    746762}