You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Stefano Mazzocchi <st...@apache.org> on 2001/11/22 22:03:13 UTC
sharing microsoft experience
Despite the title that looks suspiciously close to marketing bullshit,
I'm still searching for the easiest way to come up with a "decent"
editor for semi-structured content.
I know I should be helping you guys coming up with the Cocoon final
release, but this work is for somebody that will hopefully pay me, so
you'll probably understand why my priorities shifted a little (besides,
you guys are doing a great job anyway!)
So, searching for the perfect editor, I was at friend of mine's place
and he was using HotMail over IE 6 to edit his email. Ok, not that fancy
so far. But he was using the "rich text email editor" build-in into the
browser window.
I jumped home, created a useless hotmail account (no way they are going
to lock me in their Passport stuff), downloaded the source of that
editor and recostructed the whole thing on my disk.
Note 1: it took me hours to do it!
Note 2: I'm probably illegally talking about it since the "mile-long"
click-wrap license probably says that now all my thoughts belong to
Microsoft Corp., so I'm probably discosing some of *their* ideas and
comments. I don't know and I don't care.
Ok, so, for the first time, I had access to the "source code" of some
Microsoft product. (IE 5.5 supports binary encoded javascript that is
supposed to obfuscate the code, but luckily they didn't use it for this)
Note: in order to reduce bandwidth (gosh, I hope so!) they removed all
the whitespace from the javascripts besides newlines.
Note: in order to reduce bandwidth (??? any other good reason?) they
removed all the ending ';' from the javascript lines! Yes, I'm serious!
Note: in order to reduce bandwitdh (or to obfuscate the code?) they
remove all the curly braces that aren't needed! I'm not joking, look at
it yourself!
[I strongly *HOPE* they transform their javascript source code like this
*only* for publishing and they keep a readable and commented version
inside, but if they not, I'm won't be that surprised after looking at
their code!]
Result: their code is *almost* already obfuscated. This is why it took
me hours to understand what was going on.
Ok, here's the feeling I got.
Remember the days when you wrote your first servlet and you ended up
having a bunch of stuff like:
println("<html>"
+ "<body>"
+ myStuff
+ "</body>"
+ "</html>"
);
Do you remember how much you hated it?
Can you imagine going back to those days once you are used to the beauty
of SoC?
Exactly.
This hotmail rich text editing code is something like 1200 lines of
javascript (after pretty printing). Not that much after all.
Well, 40% of it is hardcoded println-style HTML.
Go figure.
No wonder their release cycles blow up and they can't keep up with their
software complexity. Guess why! Hopefully C# will help them gain some
elegance in software design, but for some people used to monumentary
hacks such as hungarian notation, I'm not sure even the best language
helps.
Anyway,
despite this huge amount of hardcoded HTML, the logic behind the design
of the inline-editing concept is a *very* nice one.
Ok, people, calm down: we are talking about HTML editing, not general
XML editing and not even something you can drive with a schema (you need
MSXML for that, as Xopus does, but I didn't touch that side yet).
But the nice part is that such XHTML editor is *pure*.
In the hotmail RTF editor there is an undocumented (well, "unused in
hotmail") feature that allows you to have access to the source view.
I was *delighted* (to say the least) to see something like this:
<div>
<p>This is a paragraph <strong>and this is a bold string</strong></p>
</div>
I almost jumped across the ceiling!
IE inline editing is *semantic*! (well, it's as semantic as XHTML
allows, but it's already a big win!)
So, here's the idea:
1) Connect the inline-editor with a few lines of javascript that copy
the nodes included in the editing section (normally a DIV with special
ID) in the FORM body,
2) Connect some botton on the screen to the POST action of the form
3) direct the action to Cocoon,
4) use the StreamGenerator
5) transform the semantic XHTML to your semantic markup
6) write a transformer to save it into your favorite CMS
7) style the resulting information
8) send it back to the client
Voila'! the simplest and most widely available semi-structured editor
you can have right now! Without even having to install software on your
clients! (well, most of them)
See attachement for a working example (again, requires IE 5.5+) with a
bunch of neat functionalities (such as IE-like CSS buttons, draggable
toolbar with stickyness) I'm still missing the form-sending part so it
doesn't really do nothing useful.
I'll work on the remaining part in the next few days.
Ah, I forgot: I hate scripting languages! I want strong typing!!!!
scripting is easy to do easy stuff, but it becomes a nightmare for doing
more complex stuff.
Besides, IE *sucks* at error reporting: it took me a hour to understand
they have a bug that indicates the error in the line *below* the actual
line and if you include multiple scripts, it doesn't even tell you
*which one* of those scripts!
AAAAAAAAAAAAAAAAAAAHHHHHHHHHHHHH!
Besides I'm so used to the elegance of component models that I can't
program without them anymore! And javascript is sooooooooo limited :(((
But it's a pretty cool toy :)
Anyway, I totally understand (now) wh the mozilla guys invented a bunch
of technologies around the simple scripting.
Microsoft did not (well they have their "HTML components" markup but it
sucks dry compared to XUL+XBL).
Who believes that IE has more future than Mozilla only because *today*
it owns almost the entire browser market is definately blind, or a
*very* bad programmer.
Enjoy the first fancy DHTML I ever wrote :)
If I can do such things with IE, I can't even think of what I can do
with the full source of the browser at hand :)
Mozilla, here I come! :)
[well, in the future, not IE is a lot easier and faster since it
contains the functionality I need]
--
Stefano Mazzocchi One must still have chaos in oneself to be
able to give birth to a dancing star.
<st...@apache.org> Friedrich Nietzsche
--------------------------------------------------------------------
Re: sharing microsoft experience
Posted by Robert Koberg <ro...@contentdiscovery.com>.
I see some of you hitting the server with the wrong browser.
I should have mentioned :( this only works on IE5.5+ on windows :( (hence
the applet...)
----- Original Message -----
From: "Robert Koberg" <ro...@koberg.com>
To: <co...@xml.apache.org>
Sent: Friday, November 23, 2001 9:36 AM
Subject: Re: sharing microsoft experience
> I was playing around with this when it came out. Here is an attempt (from
a
> long time ago... it needs a lot of work...) to rounddtrip html back to
xml:
>
> http://www.koberg.com/ed/test_ed.htm
>
> You can do simple edits on the text. Then when you click submit it will
> roundtrip the html back to the original xml. I have been making a wysiwig
> editing system (that should work for cocoon too). I started trying to do
it
> browser based (IE, using CONTENTEDITABLE) but have since moved to a swing
> applet. Anyway maybe it can give someone some clues to make it happen in
the
> browser.
>
> best,
> -Rob
>
>
>
> ----- Original Message -----
> From: "Stefano Mazzocchi" <st...@apache.org>
> To: "Apache Cocoon" <co...@xml.apache.org>
> Sent: Thursday, November 22, 2001 1:03 PM
> Subject: sharing microsoft experience
>
>
> > Despite the title that looks suspiciously close to marketing bullshit,
> > I'm still searching for the easiest way to come up with a "decent"
> > editor for semi-structured content.
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> For additional commands, email: cocoon-dev-help@xml.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org
AW: sharing microsoft experience
Posted by Jörn Heid <he...@fh-heilbronn.de>.
I've developed another approach.
My 'CMS' (I wouldn't call it so ;) uses a Java applet to change the content
of a page.
This applet is 'just' a xml editor (like XML Spy, with syntax highlighting,
code completion, information about the elements/attributes, right click for
special tags (e.g. you can upload, scale... your graphics), spell checking)
which supports schema.
If you click 'Save' you can see your webpage altered in your browser (the
applet is opened in another window).
The CMS is built on top of C2 and should work with all plugin enabled
browsers .
Well, that's not direct WYSIWYG as the MSIE/JS scripts does but works on
nearly all paltforms ;)
JOERN
-----Ursprüngliche Nachricht-----
Von: Robert Koberg [mailto:rob@koberg.com]
Gesendet: Freitag, 23. November 2001 18:36
An: cocoon-dev@xml.apache.org
Betreff: Re: sharing microsoft experience
I was playing around with this when it came out. Here is an attempt (from a
long time ago... it needs a lot of work...) to rounddtrip html back to xml:
http://www.koberg.com/ed/test_ed.htm
You can do simple edits on the text. Then when you click submit it will
roundtrip the html back to the original xml. I have been making a wysiwig
editing system (that should work for cocoon too). I started trying to do it
browser based (IE, using CONTENTEDITABLE) but have since moved to a swing
applet. Anyway maybe it can give someone some clues to make it happen in the
browser.
best,
-Rob
----- Original Message -----
From: "Stefano Mazzocchi" <st...@apache.org>
To: "Apache Cocoon" <co...@xml.apache.org>
Sent: Thursday, November 22, 2001 1:03 PM
Subject: sharing microsoft experience
> Despite the title that looks suspiciously close to marketing bullshit,
> I'm still searching for the easiest way to come up with a "decent"
> editor for semi-structured content.
>
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org
Re: sharing microsoft experience
Posted by Robert Koberg <ro...@koberg.com>.
I was playing around with this when it came out. Here is an attempt (from a
long time ago... it needs a lot of work...) to rounddtrip html back to xml:
http://www.koberg.com/ed/test_ed.htm
You can do simple edits on the text. Then when you click submit it will
roundtrip the html back to the original xml. I have been making a wysiwig
editing system (that should work for cocoon too). I started trying to do it
browser based (IE, using CONTENTEDITABLE) but have since moved to a swing
applet. Anyway maybe it can give someone some clues to make it happen in the
browser.
best,
-Rob
----- Original Message -----
From: "Stefano Mazzocchi" <st...@apache.org>
To: "Apache Cocoon" <co...@xml.apache.org>
Sent: Thursday, November 22, 2001 1:03 PM
Subject: sharing microsoft experience
> Despite the title that looks suspiciously close to marketing bullshit,
> I'm still searching for the easiest way to come up with a "decent"
> editor for semi-structured content.
>
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org
Re: sharing microsoft experience
Posted by Bertrand Delacretaz <bd...@codeconsult.dsvr.co.uk>.
On 26.11.2001 16:38:33, Gianugo Rabellino <gi...@rabellino.it> wrote:
(about XHTML editing in mozilla)
>Count me in. See if we can get a group discount rate for the Stroustrup
>book...:)
Count me in for C++ assistance - as I said before I won't have enough time for coding but could certainly help you regarding C++ if you have enough time to code. My C++ is a bit rusty but I've done quite a lot of it in the past.
- Bertrand
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org
Re: sharing microsoft experience
Posted by Gianugo Rabellino <gi...@rabellino.it>.
>>But yes, such XHTML editing would be killer to have in mozilla - IMHO it
>>would be sufficient for a lot of simple content editing needs.
>>
>
> Yes, I totally agree.
>
> If any of you are interested in this, maybe we could join and bootstrap
> some effort, what do you think?
Count me in. See if we can get a group discount rate for the Stroustrup
book...:)
Ciao,
--
Gianugo
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org
Re: sharing microsoft experience
Posted by Michael Hartle <mh...@hartle-klug.com>.
Bertrand Delacretaz wrote:
>On 26.11.2001 16:31:46, Stefano Mazzocchi <st...@apache.org> wrote:
>
>(about XHTML editing in mozilla)
>
>>If any of you are interested in this, maybe we could join and
>>bootstrap some effort, what do you think?
>>
>
>Interested definitely - I have very little time right now, probably not enough to help coding, but I'd be willing to give input and very interested in testing the results.
>
Count me in, currently I am really busy looking into how to achieve a
free XML-based authoring solution, and Mozilla sounds like a very
promising solution.
Best regards,
Michael
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org
Re: sharing microsoft experience
Posted by Bertrand Delacretaz <bd...@codeconsult.dsvr.co.uk>.
On 26.11.2001 16:31:46, Stefano Mazzocchi <st...@apache.org> wrote:
(about XHTML editing in mozilla)
>If any of you are interested in this, maybe we could join and
>bootstrap some effort, what do you think?
Interested definitely - I have very little time right now, probably not enough to help coding, but I'd be willing to give input and very interested in testing the results.
- Bertrand
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org
Re: sharing microsoft experience
Posted by Stefano Mazzocchi <st...@apache.org>.
Bertrand Delacretaz wrote:
>
> On Saturday 24 November 2001 12:44, Stefano Mazzocchi wrote:
> > . . .
> > Should we try to bombmail mozilla's bugzilla with this feature request?
>
> Most probably they would appreciate code contributions better than
> bombmailing ;-)
Don't worry, I'm looking into this. The problem is that my C++ skills
suck *bbbbbiiiiiiiigggg* time.
> But yes, such XHTML editing would be killer to have in mozilla - IMHO it
> would be sufficient for a lot of simple content editing needs.
Yes, I totally agree.
If any of you are interested in this, maybe we could join and bootstrap
some effort, what do you think?
--
Stefano Mazzocchi One must still have chaos in oneself to be
able to give birth to a dancing star.
<st...@apache.org> Friedrich Nietzsche
--------------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org
Re: sharing microsoft experience
Posted by Matt Sergeant <ma...@sergeant.org>.
On Mon, 26 Nov 2001, Stefano Mazzocchi wrote:
> > Mozilla comes with an editor, and Zope are using this via XUL as part of
> > their CMS interface.
>
> yes, I knew this (even if I heard the project was discontinued) but I
> haven't tried it myself.
Ah, didn't know it was discontinued. See what happens when you're three
months off the 'net :-)
> Matt, do you know if they are able to edit just parts of the content or
> the entire document was turned on for editing?
I'm not sure, I never used it.
> > I doubt they'd start changing their HTML
> > implementation any more than you'd advocate them changing their XML
> > implementation!
>
> ?!? what do you mean? we are not planning to propose a change in their
> HTML implementation, but just to add the ability to turn on editing mode
> on an element level, like IE does.
Well, this is a change to HTML. contentEditable is not a valid HTML or
XHTML attribute. The only way you could do it in a "legal" way is via CSS
extensions. No shock really that MS didn't go the "legal" route.
--
<Matt/>
/|| ** Founder and CTO ** ** http://axkit.com/ **
//|| ** AxKit.com Ltd ** ** XML Application Serving **
// || ** http://axkit.org ** ** XSLT, XPathScript, XSP **
// \\| // ** mod_perl news and resources: http://take23.org **
\\//
//\\
// \\
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org
Re: sharing microsoft experience
Posted by Stefano Mazzocchi <st...@apache.org>.
Matt Sergeant wrote:
>
> On Sun, 25 Nov 2001, Bertrand Delacretaz wrote:
>
> > On Saturday 24 November 2001 12:44, Stefano Mazzocchi wrote:
> > > . . .
> > > Should we try to bombmail mozilla's bugzilla with this feature request?
> >
> > Most probably they would appreciate code contributions better than
> > bombmailing ;-)
> >
> > But yes, such XHTML editing would be killer to have in mozilla - IMHO it
> > would be sufficient for a lot of simple content editing needs.
>
> Mozilla comes with an editor, and Zope are using this via XUL as part of
> their CMS interface.
yes, I knew this (even if I heard the project was discontinued) but I
haven't tried it myself.
Matt, do you know if they are able to edit just parts of the content or
the entire document was turned on for editing?
> I doubt they'd start changing their HTML
> implementation any more than you'd advocate them changing their XML
> implementation!
?!? what do you mean? we are not planning to propose a change in their
HTML implementation, but just to add the ability to turn on editing mode
on an element level, like IE does.
This shouldn't impact the rest too much and might also be useful for
them (there a few bugs about inline editing of bookmark links, tab panes
and stuff like that on XUL, maybe they already have something like this
but they didn't reply to my mail... wish they used a mail list system
instead of that stupid NNTP stuff).
--
Stefano Mazzocchi One must still have chaos in oneself to be
able to give birth to a dancing star.
<st...@apache.org> Friedrich Nietzsche
--------------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org
Re: sharing microsoft experience
Posted by Robert Koberg <ro...@koberg.com>.
you might want to check out the amaya project at w3c:
http://www.w3.org/Amaya/
"W3C's Editor/Browser
Amaya is a browser/authoring tool that allows you to publish documents on
the Web. It is used to demonstrate and test many of the new developments in
Web protocols and data formats. Given the very fast moving nature of Web
technology, Amaya has a central role to play. It is versatile and extensible
and is available on both Unix and Windows '95/NT platforms."
best,
-Rob
----- Original Message -----
From: "Matt Sergeant" <ma...@sergeant.org>
To: <co...@xml.apache.org>; <bd...@codeconsult.ch>
Sent: Sunday, November 25, 2001 9:39 AM
Subject: Re: sharing microsoft experience
> On Sun, 25 Nov 2001, Bertrand Delacretaz wrote:
>
> > On Saturday 24 November 2001 12:44, Stefano Mazzocchi wrote:
> > > . . .
> > > Should we try to bombmail mozilla's bugzilla with this feature
request?
> >
> > Most probably they would appreciate code contributions better than
> > bombmailing ;-)
> >
> > But yes, such XHTML editing would be killer to have in mozilla - IMHO it
> > would be sufficient for a lot of simple content editing needs.
>
> Mozilla comes with an editor, and Zope are using this via XUL as part of
> their CMS interface. I doubt they'd start changing their HTML
> implementation any more than you'd advocate them changing their XML
> implementation!
>
> --
> <Matt/>
>
> /|| ** Founder and CTO ** ** http://axkit.com/ **
> //|| ** AxKit.com Ltd ** ** XML Application Serving **
> // || ** http://axkit.org ** ** XSLT, XPathScript, XSP **
> // \\| // ** mod_perl news and resources: http://take23.org **
> \\//
> //\\
> // \\
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> For additional commands, email: cocoon-dev-help@xml.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org
Re: sharing microsoft experience
Posted by Matt Sergeant <ma...@sergeant.org>.
On Sun, 25 Nov 2001, Bertrand Delacretaz wrote:
> On Saturday 24 November 2001 12:44, Stefano Mazzocchi wrote:
> > . . .
> > Should we try to bombmail mozilla's bugzilla with this feature request?
>
> Most probably they would appreciate code contributions better than
> bombmailing ;-)
>
> But yes, such XHTML editing would be killer to have in mozilla - IMHO it
> would be sufficient for a lot of simple content editing needs.
Mozilla comes with an editor, and Zope are using this via XUL as part of
their CMS interface. I doubt they'd start changing their HTML
implementation any more than you'd advocate them changing their XML
implementation!
--
<Matt/>
/|| ** Founder and CTO ** ** http://axkit.com/ **
//|| ** AxKit.com Ltd ** ** XML Application Serving **
// || ** http://axkit.org ** ** XSLT, XPathScript, XSP **
// \\| // ** mod_perl news and resources: http://take23.org **
\\//
//\\
// \\
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org
Re: sharing microsoft experience
Posted by Bertrand Delacretaz <bd...@codeconsult.ch>.
On Saturday 24 November 2001 12:44, Stefano Mazzocchi wrote:
> . . .
> Should we try to bombmail mozilla's bugzilla with this feature request?
Most probably they would appreciate code contributions better than
bombmailing ;-)
But yes, such XHTML editing would be killer to have in mozilla - IMHO it
would be sufficient for a lot of simple content editing needs.
- Bertrand
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org
Re: sharing microsoft experience
Posted by Stefano Mazzocchi <st...@apache.org>.
Bertrand Delacretaz wrote:
>
> On Thursday 22 November 2001 22:03, Stefano Mazzocchi wrote:
> > Enjoy the first fancy DHTML I ever wrote :)
> I did - thanks for sharing this!
>
> I also tried to create a minimal version of it.
> If I understand right, given IE 5.5. and a document containing:
>
> <p class="editable" contentEditable="true">
> Type your text here.
> </p>
>
> After selecting "your text" and typing CTRL-B to set it to bold, one can
> easily obtain
>
> <p>Type <strong>your text</strong></p>
>
> from javascript?
Yes, but it's not guaranteed that the result will come up well-formed,
you have to serialize the DOM yourself (thanks to Alberto for pointing
this out to me) or perform Tidy on the server side.
> If yes, this is definitely killer, even if not very portable at the time....
Should we try to bombmail mozilla's bugzilla with this feature request?
:)
(they already clone M$ XMLHTTP, why shouldn't they clone this
functionality?)
--
Stefano Mazzocchi One must still have chaos in oneself to be
able to give birth to a dancing star.
<st...@apache.org> Friedrich Nietzsche
--------------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org
Re: sharing microsoft experience
Posted by Bertrand Delacretaz <bd...@codeconsult.ch>.
On Thursday 22 November 2001 22:03, Stefano Mazzocchi wrote:
> Enjoy the first fancy DHTML I ever wrote :)
I did - thanks for sharing this!
I also tried to create a minimal version of it.
If I understand right, given IE 5.5. and a document containing:
<p class="editable" contentEditable="true">
Type your text here.
</p>
After selecting "your text" and typing CTRL-B to set it to bold, one can
easily obtain
<p>Type <strong>your text</strong></p>
from javascript?
If yes, this is definitely killer, even if not very portable at the time....
-Bertrand
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org
RE: sharing microsoft experience
Posted by Paulo Gaspar <pa...@krankikom.de>.
Since I am being flooded with replies from mail filtering
software complaining about the JavaScript files I attached,
here goes the whole thing zipped.
Have fun,
Paulo Gaspar
RE: sharing microsoft experience
Posted by Paulo Gaspar <pa...@krankikom.de>.
(Sorry, the previous one went without the attachments.)
Stefano,
Talking about first DHTML experiences and learning from
other guys scripts (in my case editthispage.com) here is
a small HTML editor I have been playing with.
Unlike yours it is form oriented, but it has some other
features - more formatting and 2 editing modes (WYSIWYG
and source). Maybe you can use some code from it. I sure
can use some code from yours.
You just have to replace "$saveURL" in:
<form method="post" action="$saveURL" ...
with the URL to which you want to post the resulting
HTML and it SHOULD work.
I made this sample simpler by stripping out a load of
stuff. I tested some editing but did not test posting.
That is why I say that it "SHOULD" work... if I did not
strip out too much code or something like that.
Have fun,
Paulo Gaspar
Re: sharing microsoft experience (mozilla examples)
Posted by Bertrand Delacretaz <bd...@codeconsult.ch>.
On Monday 10 December 2001 10:52, Marc van Kempen wrote:
> I started trying out the new mozilla
> javascript and came up with two possible solutions.
Your examples look good, but what I find missing is the ability to edit *rich
text blocks*.
For many applications, I think, documents can be structured as a number of
"text blocks with simple formatting" in a hierarchical structure (sections,
subsections, etc.).
I'd like the the user to forget about structure when editing one of these
blocks, while seeing the higher-level structure (sections etc.).
So, for me a killer criteria for a content editor is to allow the user to
visually edit these rich text blocks, containing for example bold, italic,
line and paragraph marks.
-- Bertrand Delacrétaz, www.codeconsult.ch
-- web technologies consultant - OO, Java, XML, C++
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org
Re: sharing microsoft experience
Posted by Marc van Kempen <ma...@bowtie.nl>.
Stefano Mazzocchi wrote:
> Steven Noels wrote:
>
>>>-----Original Message-----
>>>From: Stefano Mazzocchi [mailto:stefano@apache.org]
>>>Sent: donderdag 22 november 2001 22:03
>>>To: Apache Cocoon
>>>Subject: sharing microsoft experience
>>>
>>>
>>>Despite the title that looks suspiciously close to marketing bullshit,
>>>I'm still searching for the easiest way to come up with a "decent"
>>>editor for semi-structured content.
>>>
>>there's even a commercial Win32-only product available who does XHTML-editing across
>>the web:
>>
>>http://www.ektron.com/ewebeditpro.cfm
>>
>>regards,
>>
>></Steven>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
>>For additional commands, email: cocoon-dev-help@xml.apache.org
>>
>
> uh, going to check it out... thanks for the hint
>
Sorry to step in this late in the discussion, but this problem has been
bugging me too for some time. I started trying out the new mozilla
javascript and came up with two possible solutions.
test1.html is obviously the most interesting approach, but the event api
lacks the possibility to determine the position of the mouse cursor in
the text, so I didn't find a way to get to textselections, much less
make copy/paste work.
test4.html is my poorman's solution, it still gives you the possibility
of some kind of inline editing, but not as nice as the first example.
Still you can use tab and return to navigate through the editable content.
These examples work in mozilla, but should require only a little work to
make them work in explorer.
Regards,
Marc.
--
----------------------------------------------------
Marc van Kempen tel. +31 40 2 64 98 60
BowTie Technology fax. +31 40 2 64 98 61
Raiffeisenstraat 7 mailto:marc@bowtie.nl
5611 CH Eindhoven http://www.bowtie.nl
----------------------------------------------------
Re: sharing microsoft experience
Posted by Stefano Mazzocchi <st...@apache.org>.
Steven Noels wrote:
>
> > -----Original Message-----
> > From: Stefano Mazzocchi [mailto:stefano@apache.org]
> > Sent: donderdag 22 november 2001 22:03
> > To: Apache Cocoon
> > Subject: sharing microsoft experience
> >
> >
> > Despite the title that looks suspiciously close to marketing bullshit,
> > I'm still searching for the easiest way to come up with a "decent"
> > editor for semi-structured content.
>
> there's even a commercial Win32-only product available who does XHTML-editing across
> the web:
>
> http://www.ektron.com/ewebeditpro.cfm
>
> regards,
>
> </Steven>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> For additional commands, email: cocoon-dev-help@xml.apache.org
uh, going to check it out... thanks for the hint
--
Stefano Mazzocchi One must still have chaos in oneself to be
able to give birth to a dancing star.
<st...@apache.org> Friedrich Nietzsche
--------------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org
RE: sharing microsoft experience
Posted by Steven Noels <st...@outerthought.org>.
> -----Original Message-----
> From: Stefano Mazzocchi [mailto:stefano@apache.org]
> Sent: donderdag 22 november 2001 22:03
> To: Apache Cocoon
> Subject: sharing microsoft experience
>
>
> Despite the title that looks suspiciously close to marketing bullshit,
> I'm still searching for the easiest way to come up with a "decent"
> editor for semi-structured content.
there's even a commercial Win32-only product available who does XHTML-editing across
the web:
http://www.ektron.com/ewebeditpro.cfm
regards,
</Steven>
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org
RE: sharing microsoft experience
Posted by Paulo Gaspar <pa...@krankikom.de>.
Stefano,
Talking about first DHTML experiences and learning from
other guys scripts (in my case editthispage.com) here is
a small HTML editor I have been playing with.
Unlike yours it is form oriented, but it has some other
features - more formatting and 2 editing modes (WYSIWYG
and source). Maybe you can use some code from it. I sure
can use some code from yours.
You just have to replace "$saveURL" in:
<form method="post" action="$saveURL" ...
with the URL to which you want to post the resulting
HTML and it SHOULD work.
I made this sample simpler by stripping out a load of
stuff. I tested some editing but did not test posting.
That is why I say that it "SHOULD" work... if I did not
strip out too much code or something like that.
Have fun,
Paulo Gaspar
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org