Textpattern CMS support forum

You are not logged in. Register | Login | Help

#11 2008-07-04 10:47:05

Gocom
Plugin Author
Registered: 2006-07-14
Posts: 4,524
Website

Re: rah_expanding // Dynamically growing textareas

wet wrote:

This would make a fine extension for the public-facing side when attached to .txpCommentInputMessage, I think.

Yep, it could ;) Anyone wanting frontend version of this? :P

the_ghost wrote:

For myself i’ve done a little more interesting thing…

Yep. Okay. Smthn. :)

Nicemo wrote:

Cool plugin ! I love it !

Thx :-)

Offline

#12 2008-07-04 12:18:31

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 3,844

Re: rah_expanding // Dynamically growing textareas

Gocom wrote:

Anyone wanting frontend version of this? :P

Yup! :)

At the beginning of the year Gerhard Lazu announced text areas for custom fields. This will be really interesting for those, too, in order to save as much space as possible. Looks like it’s almost just css to hack, once they’ve arrived :)


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

#13 2008-07-14 12:11:55

husainhk
Member
From: Dubai, UAE
Registered: 2007-08-12
Posts: 104
Website

Re: rah_expanding // Dynamically growing textareas

Great plugin! Can it be modified to auto-expand the pages/forms/style textareas too?

Offline

#14 2008-07-14 13:26:28

Gocom
Plugin Author
Registered: 2006-07-14
Posts: 4,524
Website

Re: rah_expanding // Dynamically growing textareas

husainhk wrote:

Great plugin! Can it be modified to auto-expand the pages/forms/style textareas too?

By adding to line 19 more selectors ($("textarea#body, textarea#excerpt").autogrow();), in example the IDs of those textareas. Then you must also alter the CSS, as Textareas will require min-height and static line-height to plugin work properly.

Offline

#15 2009-01-30 23:40:51

alanfluff
Member
From: Ottawa, Canada
Registered: 2008-09-15
Posts: 220
Website

Re: rah_expanding // Dynamically growing textareas

Wow!

Lovely – will read-back now to see how increased width can be achieved too — I’m doing a ton of content input and this plugin solves much of my slight small-space-frustration — Thanks!


At LAST I’ve cheerfully donated to the core devs at #TXP. I only wish I were able to give more. Thanks to the devs and ALL fellow TXPers. -A

Offline

#16 2009-02-21 11:00:56

Destry
Moderator
From: Alemannia
Registered: 2004-08-04
Posts: 3,299
Website

Re: rah_expanding // Dynamically growing textareas

Wonderful plugin, Gocom! Just stumbled on this gem.

I haven’t actually used it yet outside of running some Lorum ipsum text to see the behavior so I have one question…when you save the article does it save the height of the adjusted text areas or does it collapste back to the default heights? (Ed. — Looks like it stays. Nice!)

The reason I ask is because it does not appear to be recursive with articles I’ve already written. (Ed. — this is less important as it’s not likely anyone needs to go back and edit old articles often, but it wouldn’t be a bad thing if possible.)

Last edited by Destry (2009-02-21 11:41:42)

Offline

#17 2009-02-21 11:55:21

Destry
Moderator
From: Alemannia
Registered: 2004-08-04
Posts: 3,299
Website

Re: rah_expanding // Dynamically growing textareas

Ah, I see. There’s a max character point where if passed then Txp’s default behavior returns for that article. That’s a bit of a bummer as my articles tend to be long and will break that limit frequently. Any way to extend that, or make it possible to configure as a preference?

Offline

#18 2009-02-21 20:42:07

Gocom
Plugin Author
Registered: 2006-07-14
Posts: 4,524
Website

Re: rah_expanding // Dynamically growing textareas

New version, 0.3, released. It’s a major update which changes rah_autogrowing_textarea a lot, and makes some tasty additions.

Changelog:

  • Added: Admin panel (interface) under Extensions.
  • Added: Able to define which textareas autogrow.
  • Added: Max. height limit, line height and other optional style settings are now adjustable.
  • Improved code.

More info and donwloads

And now some forum post replies. Battime.

Destry wrote:

Wonderful plugin, Gocom! Just stumbled on this gem.

Thanks :)

Destry wrote:

There’s a max character point where if passed then Txp’s default behavior returns for that article.

Not character limit, but height limit of 3000px. Starting from version 0.3, it’s adjustable via interface.

Destry wrote:

Looks like it stays. Nice!

It stays. It’s activately calculated from line count, upon page load.

Destry wrote:

The reason I ask is because it does not appear to be recursive with articles I’ve already written

It is.

Offline

#19 2009-02-21 21:23:42

gerhard01
Plugin Author
Registered: 2006-12-07
Posts: 108

Re: rah_expanding // Dynamically growing textareas

New version, 0.3, released […]

Changelog:

  • Added: Admin panel (interface) under Extensions.

Thanks a lot for the update. Plugin works for me, however, clicking on the admin panel just leads to the following error message in my case:

Fatal error: Call to undefined function rah_plugin_download_install() in [PATH]/textpattern/lib/txplib_misc.php(570) : eval()'d code on line 190

Last edited by gerhard01 (2009-02-21 21:24:25)

Offline

#20 2009-02-21 22:08:16

Gocom
Plugin Author
Registered: 2006-07-14
Posts: 4,524
Website

Re: rah_expanding // Dynamically growing textareas

gerhard01 wrote:

Thanks a lot for the update. Plugin works for me, however, clicking on the admin panel just leads to the following error message in my case:

Thank you for reporting. Accidently left a one development template function there. Fixed.

Released version 0.3.2. Changelog:

  • Fixed: Removed lost child sceleton function; Fixes error: Fatal error: Call to undefined function rah_plugin_download_install().

More info and downloads

Offline

Board footer

Powered by FluxBB