Making WordPress.org

Changeset 9022


Ignore:
Timestamp:
07/04/2019 02:27:29 AM (5 years ago)
Author:
dd32
Message:

Trac: Add the wp-exclude-emoji class to the ticket description and comment textareas to avoid WordPress emoji converting emoji's to <img> which strips them from the textarea.

Fixes #3838.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/trac.wordpress.org/templates/site.html

    r8974 r9022  
    286286    </py:match>
    287287</py:if>
     288
     289<!--! Add the wp-exclude-emoji class to the Ticket Description / Ticket Comment fields to prevent emoji's being converted to <img> tags. Note: Must re-define all attributes here otherwise they'll be stripped. -->
     290<py:match path="textarea[@id='field-description' or @id='comment' or @name='edited_comment']">
     291    <textarea class="${select('@class')} wp-exclude-emoji" id="${select('@id')}" name="${select('@name')}" rows="${select('@rows')}" cols="${select('@cols')}">${select('*|comment()|text()')}</textarea>
     292</py:match>
    288293
    289294<body py:match="body" id="wordpress-org" class="${project_slug} trac wporg-make make-${project_slug}" py:attrs="select('@*')">
Note: See TracChangeset for help on using the changeset viewer.