ElkArte Community

Elk Development => Feature Discussion => Topic started by: forumsearch0r on July 16, 2015, 12:12:12 pm

Title: autosize support
Post by: forumsearch0r on July 16, 2015, 12:12:12 pm
Something I really love to use in my current web projects:

http://www.jacklmoore.com/autosize/

Especially relevant if you write long(ish) texts. You might consider to add it.
Title: Re: autosize support
Post by: emanuele on July 16, 2015, 12:20:00 pm
/me likes the idea.
Title: Re: autosize support
Post by: forumsearch0r on July 16, 2015, 12:24:32 pm
/me would submit a pull request but he's at work, so here's the code:

Code: [Select]
$.fn.autosize = function() {
    // wrap it in a jQuery plug-in so it's easier not to mess up the syntax.
    return autosize(this);
};

$(document).ready(function() {
    $(".sceditor-container textarea").autosize();
});
Title: Re: autosize support
Post by: Spuds on July 16, 2015, 09:35:12 pm
Thats kind of a cool thing to do ...