]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-admin/js/dashboard.js
WordPress 3.8.1
[autoinstalls/wordpress.git] / wp-admin / js / dashboard.js
index f88be70fd99effca948aa0f961ffb2e3c27c8b2f..4d4eb50d0ca031ccc0fb97f2f3f5d3da8c7faf3f 100644 (file)
@@ -159,9 +159,9 @@ jQuery(document).ready( function($) {
                editor.on('focus input propertychange', function() {
                        var $this = $(this),
                                //   is to ensure that the height of a final trailing newline is included.
-                               textareaContent = $this.val().replace(/\n/g, '<br>') + '&nbsp;',
+                               textareaContent = $this.val() + '&nbsp;',
                                // 2px is for border-top & border-bottom
-                               cloneHeight = clone.css('width', $this.css('width')).html(textareaContent).outerHeight() + 2;
+                               cloneHeight = clone.css('width', $this.css('width')).text(textareaContent).outerHeight() + 2;
 
                        // Default to having scrollbars
                        editor.css('overflow-y', 'auto');