Show HN: WideArea – an expandable textarea
usablica.github.io
usablica.github.io
The only thing I could change here is the "x" icon when expanded. Someone mentioned here that they would be unnerved hitting an "x" button with a lot of text - this is definitely valid, I felt the same thing when trying it out. A simple change to an "exit full screen" icon (like this http://findicons.com/files/icons/1667/iconic/32/fullscreen_e...), would solve the problem nicely : )
http://i.imgur.com/4mwx7ty.png
Awesome project nevertheless.
I did something similar myself django-writingfield[1], but it is Django specific.
I much prefer your UI and the switching of dark text/light background is really slick.
"X"s are frightening. You might just give it some tooltip text.
It is a very nice UI control.
As an aside: It is a shame this "breaks" Chrome's ability to let you re-scale the non-full-screen box. So it is an all or nothing choice, you have to give up something to get something...
It looks like you disabled Chrome's resizing on purpose too, which seems unnecessary/annoying. Why break existing functionality just to add new functionality?
I think overall this is an improvement to text boxes generally which is why I can forgive the breakage of one bit of existing functionality.
That functionality can be re-enabled by changing the "resize" CSS style[0].
I use a similar fullscreen textarea toggle (actually an ACE editor), that is very simple. For the Javascript, you just need to add a new class to the text area. For the CSS, you need to make the '.fullscreen' class the following:
.fullscreen {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
Now, this doesn't get you the little button in the upper right corner and the styling for the full screen textarea, but it is very functional, very configurable (just style with CSS), and quite small. Add a small button of your own and let the browser do all of the heavy work, by just adding a CSS class.Oh, and this doesn't break Chrome/webkit's ability to resize the textarea when not in fullscreen mode...
And when I'm typing into a browser, I'm usually replying to something. Being able to read that thing I'm replying to as I'm typing has a lot of value to me.
I don't really know the better way, but when I have more than one page of text, I end up with two scroll bars.
https://dl.dropboxusercontent.com/u/37659951/WideArea%20-%20...
Non-ideal, perhaps a different style of scroll bar, or pushing it right to the edge.
Personally, I prefer having my browser launch an external editor for textareas. However, this is better for most people because it does not require any installation or configuration.
Nice work!
Edit: s/Randy/Rangy/
I'm assuming you can style colours, width of text in the wide editor, etc? Going back to the small window with an "X" would be a bit unnerving with lots of text typed in.