Hello Tim,
That would be great! If you would like, we could then try to integrate
your code into 1.2 or 1.4.
All the best,
Renaud
Tim Hannigan wrote:
Hi Renaud,
I'm working with Lenya 1.2.4, and so far I'm very impressed with
TinyMCE on many levels. From the architecture of the editor, to the
consistent conventions used, and the valid HTML code produced as
output, TinyMCE has impressed me.
I would be happy to share my code with the community. I'll try
throwing up my code this week.
-Tim
On 18-Feb-06, at 8:47 PM, Renaud Richardet wrote:
Hello Tim and Derek,
Thank you very much for sharing your experiences on the list. It
helps Lenya getting better :-)
Please find my 2cents inline.
Tim Hannigan wrote:
To be fair to TinyMCE,
I'm not entirely finished with my integration.
Are you working with 1.2 or 1.4? Would you mind sharing your code
with the community?
The Asset management (both images and URL's) portion isn't finished
yet.
Initially, the approach I'm taking is to make a slight
modification to the UploadAsset.java to create the lists (both
image and url/link are stored as javascript array in text files)
in the appropriate resources sub-directory (the UploadAsset class
will parse and append an existing list).
For images, the editor will look for the respective image list
inside the node's resources folder and display the results
accordingly.
An image list file looks like this
"
var tinyMCEImageList = new Array(
// Name, URL
["Logo 1", "example_data/logo.jpg"],
["Logo 2 Over", "example_data/logo_over.jpg"]
);
"
This way, Asset management is handled by Lenya's built-in
mechanism. At the moment, files are still uploaded through the
assets tab within Lenya site-management, but I'm hoping to
leverage the existing Asset management XSL files and use them
directly from inside TinyMCE.
OK, makes sense.
The other major piece remaining in the image integration is
similar to Bob Harner's work on FCK Integration. TinyMCE will
create images as <img> tags, not <object> tags. I'm looking at
Bob's initial code on doing that conversion on Open/Exit editor.
Regarding how TinyMCE will handle internal URL's, that's another
story entirely. It maintains a javascript-based url-list similar
to the image-list, but having Lenya maintain that means will be
redundant to having a sitetree.xml. If only I could get it to
somehow parse Sitetree.xml.. I've found a js based XML parser that
I haven't used yet (http://xmljs.sourceforge.net/); does anybody
have any experience with one?
Not sure I am following you here. You should be able to reuse the
same popup as BXE. Also, you might find something interesting in
lenya1.4.x/src/modules/fckeditor/resources/javascript/insertLink.js
I'm also looking closely at Bob's work on FCK and node/document
browsing for URL's. So far, his work here looks quite inspiring
and I'm wondering how difficult it would be to rip it out from FCK
and extend TinyMCE.
For those of you who might be wondering why we're doing all this
work with TinyMCE, you should take a look at their demo (http://
tinymce.moxiecode.com/example_full.php?example=true). It's a very
slick Editor, with a clean code base that's easy to configure
(http:// tinymce.moxiecode.com/tinymce/docs/
reference_configuration.html), great features, and functions quite
well for the average user (where Kupu and BXE have sloppy quirks).
Do you have a list of the "quirks" of BXE and Kupu. Maybe we could
work on these limitations.
I'll report on my experience as we get further. FYI, Derek Cooper
is my "average user" tester and has an entire department ready to
test this system for us. He'll probably report more on the user
experiences of our Lenya pilot.
-Tim
On 16-Feb-06, at 7:03 PM, Derek Cooper wrote:
Ok, here goes.
We started with the two regulars, BitFlux and Kupu. Neither of
which made the cut cause they aren't really going to be usable by
the average individual - we're talking normal staff positions in
a department.
We then started testing FCK, which has a terrific interface and
great features, including:
1) copy from Word
2) copy to plain text
3) URL linking is very slick
Testing was going great with FCK, until we started running into
problems. They started with unordered lists and anchors. Adding
an anchor resulted in very strange behaviour - the anchors got
added multiple times within a document, and an additional rect
was added to the anchor comment. We couldn't recover from this
problem and felt it was a major problem with the code as written.
A quick look at the code made it clear to us that editing it
would have been a nightmare given the way it was written.
We also found that the code validation in FCK wasn't effective -
a page edited in FCK, then edited in source resulted in numerous
code problems, resulting in validation failures.
Yes. We might end up using Tidy to clean the code.
Next, we had issues with assets - after creating an asset, there
doesn't appear to be a way to edit the title if you've made a
mistake other than deleting the asset and adding it again. Kludgy.
Next, adding assets, like PDFs, and then linking to them from
within FCK results in them staying in the /authoring tree after
publishing, so they won't be accessible. How are we supposed to
add downloadable assets that will be moved to the /live section?
This could have been a Lenya issue though.
Our last problem occurred with Undo - it doesn't work (neither
keyboard shortcut or cute little undo button in nav), WinXP
Firefox 1.5.0.1. Not good, as you can appreciate.
Our next client was TinyMCE. Very similar to FCK, but the code is
much cleaner and we didn't have the same problems as we
experienced with our FCK testing. Some of the things we're
grappling with at the moment:
1) Asset management isn't nearly as slick as FCK. You can add an
asset, but it doesn't appear in the asset list when adding images
(probably works if you buy the optional plug-in)
2) URL linking is really lacking when compared to FCK.
Basically, you have to know the URL before editing the page. FCK
really has this aspect nailed.
We're continuing our evaluation of TinyMCE and we'll see what we
determine. In the end, we have to be able to let loose our staff
people who aren't HTML'ers and need to really have that aspect of
the site abstracted. TinyMCE is close - a few more days of
testing and we'll know if we can tweak the code to our liking.
Does this help?
Yes, definitively. Good luck with the evaluation and integration.
Thanks,
Renaud
Derek
--
Renaud Richardet
COO America
Wyona Inc. - Open Source Content Management - Apache Lenya
office +1 857 776-3195 mobile +1 617 230 9112
renaud.richardet <at> wyona.com http://www.wyona.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
Renaud Richardet
COO America
Wyona Inc. - Open Source Content Management - Apache Lenya
office +1 857 776-3195 mobile +1 617 230 9112
renaud.richardet <at> wyona.com http://www.wyona.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]