Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2005-04-15 01:33:17

wilshire
Plugin Author
From: Akron, Ohio
Registered: 2004-08-27
Posts: 656
Website

[plugin] [ORPHAN] rss_admin_resize: Textarea Resizing

The rss_admin_resize plugin allows you to customize the size of the primary textareas and input fields while editing articles, pages, styles and forms. Your settings can be completely customized on a new tab that will be added to your admin interface (admin -> resize). If you work on multiple computers you’ll be able to customize the sizing for each to maxmize your workspace. The plugin has been tested out in Firefox, Opera, and even appears to work in IE.

Details

Download

Last edited by wilshire (2005-10-29 16:32:43)

Offline

#2 2005-04-15 03:56:53

valdok
Member
From: Chicago
Registered: 2004-03-14
Posts: 31
Website

Re: [plugin] [ORPHAN] rss_admin_resize: Textarea Resizing

Nice work.

Offline

#3 2005-04-15 04:25:21

Jeremie
Member
From: Provence, France
Registered: 2004-08-11
Posts: 1,578
Website

Re: [plugin] [ORPHAN] rss_admin_resize: Textarea Resizing

Nice work, thanks a lot.

Since you are at it, I have a question :p Would it be difficult for an admin plugin to add text inside the tab’s page content ?

I would like to add text (and hyperlink) mainly in the writers/authors areas (article tab, files, links, etc.) to give advice, explain things, rules, and so on.

I was going to hack the files, but if a admin plugin could do it that would be much better.

Offline

#4 2005-04-15 05:04:32

wilshire
Plugin Author
From: Akron, Ohio
Registered: 2004-08-27
Posts: 656
Website

Re: [plugin] [ORPHAN] rss_admin_resize: Textarea Resizing

In short, yes, thats exactly how plugins such as this one or rss_admin_quikpik work.

You have the ability to use javascript to modify the DOM of any page. It can be a bit tricky though depending on how involved the changes and/or additions are. What I can tell you without a doubt is that Firefox’s DOM Inspector is indispensable if you’re going to write a plugin to do this.

Offline

#5 2005-04-15 05:22:52

Jeremie
Member
From: Provence, France
Registered: 2004-08-11
Posts: 1,578
Website

Re: [plugin] [ORPHAN] rss_admin_resize: Textarea Resizing

I’m not :( I have absolutely no javascript knowledge, but I mean… none. But that’s good news, maybe someone will do it :)

Offline

#6 2005-04-15 07:14:15

marios
Archived Plugin Author
Registered: 2005-03-12
Posts: 1,253

Re: [plugin] [ORPHAN] rss_admin_resize: Textarea Resizing

wilshire,this is great,besides this being a wonderfull plugin it resolved a nasty problem that I had with the font-size in (ONly Firefox)Presentation>pages>texterea .I have been fiddling around with the texterea function and textpattern.css,I have been scratching my head repeatedly,
Now I have a font-size that is readable without a microscope,5 stars

Thanks a lot for this wonderfull plugin

regards,marios


⌃ ⇧ < ⌃ ⇧ >

Offline

#7 2005-04-15 10:05:44

davidm
Member
From: Paris, France
Registered: 2004-04-27
Posts: 719

Re: [plugin] [ORPHAN] rss_admin_resize: Textarea Resizing

Yeah I had the same issue, marios, and also I wanted to modify the excerpt area size, so this will come in very handy !

THX !!!


.: Retired :.

Offline

#8 2005-04-15 10:34:20

andreas
Member
Registered: 2004-02-28
Posts: 453
Website

Re: [plugin] [ORPHAN] rss_admin_resize: Textarea Resizing

Great plugin, wilshire.

One issue: in Opera 8beta3 the resizing doesn’t work for all input fields. The title works ok, but article and excerpt textareas don’t.

Perhaps (I haven’t tested it) it’s the input elements that work and textareas that don’t.

Last edited by andreas (2005-04-15 10:41:46)

Offline

#9 2005-04-15 13:13:54

wilshire
Plugin Author
From: Akron, Ohio
Registered: 2004-08-27
Posts: 656
Website

Re: [plugin] [ORPHAN] rss_admin_resize: Textarea Resizing

andreas – I tested in Opera 7.54u2 and the plugin seems to work fine. I thought someone had told me it worked in beta3 but can you see if its generating any javascript errors?

Offline

#10 2005-04-15 15:29:07

marz
Archived Plugin Author
From: Barbados
Registered: 2004-11-13
Posts: 43
Website

Re: [plugin] [ORPHAN] rss_admin_resize: Textarea Resizing

Awesome plugin wilshire. It really helps alot :)

One thing though, is it also possible to change the font used in the textarea boxes?

Offline

#11 2005-04-15 15:48:57

andreas
Member
Registered: 2004-02-28
Posts: 453
Website

Re: [plugin] [ORPHAN] rss_admin_resize: Textarea Resizing

wilshire, no javascript errors – at least none in the javascript console. Are there any other places whare they might turn up?

I looked at the page source and found this

<code><pre>addLoadEvent(function() { ta = document.forms0.Body; ta.setAttribute(‘style’,’‘); ta.setAttribute(‘cols’,‘20’); ta.setAttribute(‘rows’,‘35’);

ta = document.forms0.Excerpt; ta.setAttribute(‘style’,’‘); ta.setAttribute(‘cols’,‘20’); ta.setAttribute(‘rows’,‘15’); ta = document.forms0.Title; ta.setAttribute(‘size’,‘50’);

});</pre></code>

Is this the JS used to resize the textarea? If so, the correct values are inserted because I used the 20 cols in the body area to test the plugin — but they don’t seem to get applied by Opera.

Last edited by andreas (2005-04-15 15:49:37)

Offline

#12 2005-04-15 15:55:40

wilshire
Plugin Author
From: Akron, Ohio
Registered: 2004-08-27
Posts: 656
Website

Re: [plugin] [ORPHAN] rss_admin_resize: Textarea Resizing

Is that really what the source looks like or did textile screw it up in the forum?

EDIT: And so I see its textile…

That’s the js that should be resizing. Do you have any other admin plugins that are modifying the article page?

Last edited by wilshire (2005-04-15 15:57:18)

Offline

Board footer

Powered by FluxBB