src/trumbowyg.js
function () {
            var t = this;
            t.$ed.removeClass('autogrow-on-enter');
            var oldHeight = t.$ed[0].clientHeight;
            t.$ed.height('auto');
            var totalHeight = t.$ed[0].scrollHeight;
            t.$ed.addClass('autogrow-on-enter');
            if (oldHeight !== totalHeight) {
                t.$ed.height(oldHeight);
                setTimeout(function () {
                    t.$ed.css({height: totalHeight});
                    t.$c.trigger('tbwresize');
                }, 0);
            }
        }
function () {
            var t = this;
            t.$ed.removeClass('autogrow-on-enter');
            var oldHeight = t.$ed[0].clientHeight;
            t.$ed.height('auto');
            var totalHeight = t.$ed[0].scrollHeight;
            t.$ed.addClass('autogrow-on-enter');
            if (oldHeight !== totalHeight) {
                t.$ed.height(oldHeight);
                setTimeout(function () {
                    t.$ed.css({height: totalHeight});
                    t.$c.trigger('tbwresize');
                }, 0);
            }
        }
function ( ) { var t = this ; t . $ed . removeClass ( 'autogrow-on-enter' ) ; var oldHeight = t . $ed [ 0 ] . clientHeight ; t . $ed . height ( 'auto' ) ; var totalHeight = t . $ed [ 0 ] . scrollHeight ; t . $ed . addClass ( 'autogrow-on-enter' ) ; if ( oldHeight !== totalHeight ) { t . $ed . height ( oldHeight ) ; setTimeout ( function ( ) { t . $ed . css ( { height : totalHeight } ) ; t . $c . trigger ( 'tbwresize' ) ; } , 0 ) ; } }
autogrow when entering logic
autogrow when entering logic