Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
[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.
Last edited by wilshire (2005-10-29 16:32:43)
Offline
Re: [plugin] [ORPHAN] rss_admin_resize: Textarea Resizing
Nice work.
Offline
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
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
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
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
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
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
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
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