Changeset 31621
- Timestamp:
- 03/05/2015 12:35:10 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/js/mce-view.js
r31620 r31621 29 29 30 30 var views = {}, 31 instances = {}, 32 textarea = document.createElement( 'textarea' ); 31 instances = {}; 33 32 34 33 wp.mce = wp.mce || {}; 35 36 /**37 * Decode HTML entities in a givin string.38 *39 * @param {String} html The string to decode.40 */41 function decodeHTML( html ) {42 textarea.innerHTML = html;43 html = textarea.value;44 45 textarea.innerHTML = textarea.value = '';46 47 return html;48 }49 34 50 35 /** … … 105 90 */ 106 91 setMarkers: function( content ) { 107 var pieces = [ { content: decodeHTML( content )} ],92 var pieces = [ { content: content } ], 108 93 self = this, 109 94 current;
Note: See TracChangeset
for help on using the changeset viewer.