[Scottish] Anybody know a good text editor which can run in a browser

Colin McKinnon colin.mckinnon at ntlworld.com
Mon May 17 23:21:59 BST 2004


On Sunday 16 May 2004 21:31, Ewan wrote:
> Colin McKinnon wrote:
> > The subject says it all really - I want to be able to edit some text
> > (code actually) from a browser and post the data back to the server. I
> > guess this is the kind of thing which Java should be good for but typing
> > 'Java code editor applet' into Google turns up a LOT of noise (mostly
> > tools for editing java applets - not java applets for editing text).
> >
> > There are no end of WYSIWYG editors (actually most of them are buttons
> > stuck in front of the editor buit-in to Microsoft's IE) but I really want
> > to edit PHP and javascript.
> >
> > I did find netedit which is little more than a textarea with buttons on
> > (http://www.chipsoftinc.com/products/netEdit/). ViD looked promising
> > (http://www.oursland.net/vid/) but I don't get the cursor in the right
> > place in any of the browsers I've tried.
>
> You can use php to read a file and drop it into a textarea for you to
> edit. You can then use POST to submit it to a php script which can write
> the textarea back into the file.
>
> http://uk2.php.net/manual/en/function.fread.php
> http://uk2.php.net/manual/en/function.fwrite.php
>
Thanks, but:
> > I did find netedit which is little more than a textarea with buttons on

Problem is that a lot of things are quite difficult to do with a textarea 
field using (portable) javascript - like moving the caret. There also seems 
to be a limit of 1024 chars per (basic) element when posting from Konqueror 
(files are uploaded at any size I've tested). Mozilla also truncates the 
contents of a hidden field to 1k - never tried with a textarea field.

C.




More information about the Scottish mailing list