473,406 Members | 2,467 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

In-browser Javascript Editor ala FCKeditor

I've been playing with some javascript code and have produced a very
rough proof of concept source code editor written in javascript (a bit
like FCKeditor). Its not ready for release ((L)GPL>2 when it is) but I
thought I'd ask for any guidance and tips.
The intention is to provide a language nuetral source code editor
writen purely in html and javascript so that it can provide code
highlighting/completion etc, eventually as part of an ajax(ish) IDE so
with fckeditor you can manage web sites completely remotely.
There is a temptation to try and use mozilla/venkman but I'd like it to
run on small handhelds too so I will stick to writing it in pure
Javascript/Html.
The intial plan is to produce a javascript editor and then a stylesheet
editor (using the CSS editor on Firefox may make this a low priority)
but I'd like it to be configurable for any language so almost any
coding can be done over the web.
Anybody know any examples of similar that I could plagiarise to get the
basic architecture right?
Tom

Nov 22 '06 #1
10 2125
ma********@yahoo.com wrote:
I've been playing with some javascript code and have produced a very
rough proof of concept source code editor written in javascript (a bit
like FCKeditor). Its not ready for release ((L)GPL>2 when it is)
BSD or MIT license will make it easier for people to use.
The intention is to provide a language nuetral source code editor
writen purely in html and javascript so that it can provide code
highlighting/completion etc, eventually as part of an ajax(ish) IDE so
with fckeditor you can manage web sites completely remotely.
There is a temptation to try and use mozilla/venkman
Venkman is a debugger, yes? What does that have to do with an editor
running in a web page?

I think that not all browsers support the features that a WYSIWYG
editor needs.

Peter

Nov 22 '06 #2
I think that not all browsers support the features that a WYSIWYG
editor needs.
If it runs javascript it will work!

Nov 23 '06 #3
ma********@yahoo.com said the following on 11/23/2006 4:25 AM:
>I think that not all browsers support the features that a WYSIWYG
editor needs.
If it runs javascript it will work!
If you make that claim, then you won't ever write an in-browser editor
that is worth having.

--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Nov 23 '06 #4
Randy,
I'll clarify - by javascript I mean javascript that can access and
modify the DOM and intercept keystrokes.
Remember that a textarea can be used at the very worst - its a text
editor though not very useful - but the computing world was built on
bits and bytes and coding productivity is often slowed by having
editors that 'think for you'.
So, other than lack of vision, commitment, a desire to protect your own
investment, or fantasy patents that wont apply in most of the world,
have you any proof it can't be done?
Otherwise thanks for your help!
Tom

Nov 25 '06 #5
ma********@yahoo.com said the following on 11/25/2006 4:37 AM:
Randy,
I'll clarify - by javascript I mean javascript that can access and
modify the DOM and intercept keystrokes.
NN4 can do either but you can't very well create a decent text editor in
NN4 using it. Your claim was that "If it runs javascript it will work! "
and that is a bogus claim at best.
Remember that a textarea can be used at the very worst - its a text
editor though not very useful - but the computing world was built on
bits and bytes and coding productivity is often slowed by having
editors that 'think for you'.
::yawn::
So, other than lack of vision, commitment, a desire to protect your own
investment, or fantasy patents that wont apply in most of the world,
have you any proof it can't be done?
You mean other than almost a year fighting the different implementations
on the web that won't support a rich text editor yet?

--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Nov 25 '06 #6
So , since some code wont work on a few % of PC's nothing should be
written - is that what your trying to say?

Nov 25 '06 #7
ma********@yahoo.com said the following on 11/25/2006 5:49 AM:
So , since some code wont work on a few % of PC's nothing should be
written - is that what your trying to say?
What are you babbling about now? I never said that. I said that your
statement was blatantly false. I never did say you couldn't satisfy 95%
or so of your visitors.

--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Nov 25 '06 #8
Hi Randy,

Randy Webb wrote:
>
You mean other than almost a year fighting the different implementations
on the web that won't support a rich text editor yet?
What did you learn about the Rich Text Editors and their
implementations and browser support?

I saw that Hard Core Text Editor supports IE, FF, and Safari2. The
FCKeditor supports IE, FF and Opera, I think. So is there an editor
that covers the four big browsers?

I haven't bothered much learning about RTEs because the web doesn't
seem ready yet but I think they are likely to be future work for any
JavaScript programmer.

Thanks,
Peter

Nov 25 '06 #9
Peter Michaux said the following on 11/25/2006 12:45 PM:
Hi Randy,

Randy Webb wrote:
>You mean other than almost a year fighting the different implementations
on the web that won't support a rich text editor yet?

What did you learn about the Rich Text Editors and their
implementations and browser support?
At the time that I would never get it to work on a MAC. But, at the time
Safari2 wasn't out yet.
I saw that Hard Core Text Editor supports IE, FF, and Safari2. The
FCKeditor supports IE, FF and Opera, I think. So is there an editor
that covers the four big browsers?
If one can support 3 and another can support the 4th then an educated
guess would be that there could be one written to support those 4 browsers.
I haven't bothered much learning about RTEs because the web doesn't
seem ready yet but I think they are likely to be future work for any
JavaScript programmer.
That is the reason I stopped working on mine. It was part of a larger
message board type project and I wanted the RTE for creating posts.

--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Nov 26 '06 #10
I think you'll find the babbling started when YOU decided I was going
to write a rich text editor.

Nov 30 '06 #11

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Curious Expatriate | last post by:
Hi- I'm completely stumped. I'm trying to write some code that will parse a file and rewrite it with all URLs replaced by something else. For example: if the file looks like this: <b>click...
1
by: JS Bangs | last post by:
I started using PHP's object-oriented stuff a little while ago, which has mostly been a joy. However, I've noticed that they don't seem to echo as I would like. Eg: $this->field = 255;...
5
by: lawrence | last post by:
I've waited 6 weeks for an answer to my other question and still no luck, so let me rephrase the question. I know I can do this: <form method="post" action="$self"> <input type="text"...
0
by: Ben Eisenberg | last post by:
I'm trying to run a php script setuid. I've tried POSIX_setuid but you have to be root to run this. The files are located on a public access unix system and have me as the owner and nobody as the...
2
by: Felix | last post by:
Hi, I've a problem: I want to have the result of my Mysql Query in a Table in my php file. Now I've this: <?
1
by: James | last post by:
What is the best way to update a record in a MYSQL DB using a FORM and PHP ? Where ID = $ID ! Any examples or URLS ? Thanks
1
by: Patrick Schlaepfer | last post by:
Why this code is not working on Solaris 2.8 host. Always getting: PHP Fatal error: swfaction() : getURL('http://www.php.net' ^ Line 1: Reason: 'syntax error' in /.../htdocs/ming2.php on...
1
by: phpkid | last post by:
Howdy I've been given conflicting answers about search engines picking up urls like: http://mysite.com/index.php?var1=1&var2=2&var3=3 Do search engines pick up these urls? I've been considering...
1
by: lawrence | last post by:
What is the PHP equivalent of messaging, as in Java?
3
by: Quinten Carlson | last post by:
Is there a way to conditionally define a function in php? I'm trying to run a php page 10 times using the include statement, but I get an error because my function is already defined. The docs...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.