Chris Falkenstein Posted August 29, 2017 Share Posted August 29, 2017 Hi all, I'm interested in making a small enhancement to the textarea fields that display in the panel/backend (when a user is editing a page). I want the textarea fields to expand automatically based on the content within the field. To do this I want to apply 'Autosize', a small stand alone js script. I don't know how to make this happen. Before I begin an epic journey through PW's less than awesome docs can you good folks point me in the right direction? Link to comment Share on other sites More sharing options...
tpr Posted August 29, 2017 Share Posted August 29, 2017 https://github.com/rolandtoth/AdminOnSteroids/wiki#misc 2 Link to comment Share on other sites More sharing options...
louisstephens Posted August 29, 2017 Share Posted August 29, 2017 @Chris Falkenstein, There is also the "Auto Grow" plugin for ckeditor. Simply download the plugin (and expand/unzip), and put it under : "site->modules->InputfieldCKEditor" . Edit the textarea field in question (make sure ckeditor is selected under details), navigate to the "Input" tab, and select "autogrow" from additional plugins and save. I just tested it out and it seems to work perfectly for me. 1 Link to comment Share on other sites More sharing options...
Chris Falkenstein Posted August 29, 2017 Author Share Posted August 29, 2017 "tpr", I do appreciate that resource. Thank you. That would in fact get me to where I want to be but it's a bit much. I like to keep it light and tidy. I only need about 1% of what that module offers. "louisstephens", Thanks. I'm using a Markdown formatter on a textarea field. I suppose 'Auto Grow' won't fit the bill for that? Link to comment Share on other sites More sharing options...
tpr Posted August 29, 2017 Share Posted August 29, 2017 You can disable all other submodules within AdminOnSteroids and enable only the Autosize tweak at the Misc submodule. If it's still too much you'll have to add your custom JavaScript to the admin (along with AutoSize js) and apply on document.ready(). Link to comment Share on other sites More sharing options...
Chris Falkenstein Posted August 29, 2017 Author Share Posted August 29, 2017 Gotcha. Thanks. I found this article for those in the same boat as me. Link to comment Share on other sites More sharing options...
tpr Posted August 29, 2017 Share Posted August 29, 2017 Or you can use the original Autosize Textareas module (sorry I didn't remember :)). Link to comment Share on other sites More sharing options...
Chris Falkenstein Posted August 29, 2017 Author Share Posted August 29, 2017 This is exactly what I needed. Exactly! Thanks. And I should thank you for pretty much co-developing this module. 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now