[ANN] WYMeditor filter

Hi list,

I finally got round to finishing wym editor filter. If you haven’t heard
of
WYM before, it beats the crap out of most RTE’s qua keeping your content
w3c
valid. I quote;

“WYMeditor has been created to generate perfectly structured XHTML
strict
code, to conform to the W3C XHTML specifications and to facilitate
further
processing by modern applications.”

This extension uses (requires) the shards extension

Available from
svn://zuurstof.openminds.be/home/kaizer/svn/rails_stuff/radiant_extensions/wym_editor_filter

Installation steps on
SumoCoders, geeks coding with body or in the
README

I also added this to the thirdparty extension list

Regards,

Benny D.

Dear Benny,

Excellent work. I just installed the extension fine and enjoying
playing
around with it. One question though. Your website mentions that you

“… use WYM in combination with page attachments. This gives us the
luxury of drag-and-drop image inserting, clients totally dig it!”

I tried to see if I could perform the ‘drag-and-drop image inserting’,
but
have no success. I am logging into the Radiant administrative interface
from a Linux OS and I have the page attachments installed as well.

Any further tips will be much appreciated. Thanks once again for this
great exte
nsion.

saji

This extension uses (requires) the shards extension
Regards,

Benny D.


Radiant mailing list
Post: [email protected]
Search: http://radiantcms.org/mailing-list/search/
Site: http://lists.radiantcms.org/mailman/listinfo/radiant


Saji N. Hameed

APEC Climate Center +82 51 668 7470
National Pension Corporation Busan Building 12F
Yeonsan 2-dong, Yeonje-gu, BUSAN 611705 [email protected]
KOREA

Has anyone used WYMeditor alongside page_attachments to get file
drag-and-drop as the install instructions claim?

http://www.gorilla-webdesign.be/artikel/48-WYM+on+Radiant

I just wanted to ping you guys for info before I had a chance to play
with this myself next week.

David P. wrote:

Has anyone used WYMeditor alongside page_attachments to get file
drag-and-drop as the install instructions claim?

SumoCoders, geeks coding with body

I just wanted to ping you guys for info before I had a chance to play
with this myself next week.

Hi David

Did you try this? I haven’t seen any responses about this, but was
wondering what you thought.

Cheers,
Mohit.
1/28/2008 | 11:59 PM.

Mohit S. wrote:

Did you try this? I haven’t seen any responses about this, but was
wondering what you thought.

Not yet, but with any luck I’ll be trying it tomorrow.

  • Dave

Erik van Oosten wrote:

I just tried this on Safari. But that doesn’t work (nor do they claim
it does).
A pity because their idea is very good.

Regards,
Erik.

Thanks Erik & David.

Cheers,
Mohit.
1/29/2008 | 11:47 AM.

David P. wrote:

Has anyone used WYMeditor alongside page_attachments to get file
drag-and-drop as the install instructions claim?

SumoCoders, geeks coding with body

I created a new 0.6.4 project from gem and installed the newest Shards,
Page_Attachments, and WYMeditor. I added the following in
environment.rb…

config.extensions = [ :shards, :page_attachments, :wym_editor_filter,
:all ]

Things seem to be working well for basic editing, however…

Adding Radius tags seems to be allowed only in the code view, and
editing these tags is difficult because WYMeditor adds a custom


tag
to support tags appearing in the editor window.

Page_Attachments drag-and-drop doesn’t work at all for me, with either
images or other file types. I’m not sure what is supposed to happen when
both Page_Attachments and WYMeditor are installed together, but so far
nothing is different about using Page_Attachments.

David P. wrote:

Page_Attachments drag-and-drop doesn’t work at all for me, with either
images or other file types. I’m not sure what is supposed to happen when
both Page_Attachments and WYMeditor are installed together, but so far
nothing is different about using Page_Attachments.

So the developer says “This gives us the luxury of drag-and-drop image
inserting”. I’m not using the ruby gems that allow for thumbnail
generation, so maybe this will work for people who are seeing image
thumbnails…?

The developer never says anything about other file attachment types, so
I guess those don’t drag-and-drop either.

woops…
i answered this to somebody else via regular email, should’ve copied it
to the list…
The ‘catch’ is that you first have to activate a container in WYM by
clicking it, so you get the blinking cursor in there. Now you should be
able to drop images to it. Beware; any html attributes that were given
to the page_attachment thumbnail will also be copied to the wym one.

As for non-image drag & dropping, it works, but not on IE, and you need
a little tweaking. see Parked at Loopia for our
_attachment.rhtml.
You’ll need to finish a bit to your likings, but i’m sure the pastie
explains everything. The point is that you need a link to drag and drop
into wym.

IE doesn’t allow you to d&d files because it doesn’t allow to paste
links into wym. That’s what you do when you d&d a file; you again copy
the image (file icon) and the tags that it has around it to the
editor. You can then start typing the link text, and leave or delete the
icon image.

Adding Radius tags seems to be allowed only in the code view, and
editing these tags is difficult because WYMeditor adds a custom


tag
to support tags appearing in the editor window.

Indeed, you can’t really insert radius through wym. When a page needs
radius, i switch it back to filter. If the page is mostly radius,
i leave it like that, if it’s a page that the end user might want to
edit, i put it back to wym.

WYM doesn’t work on safari indeed, but we don’t see that as a problem.
If we would have any clients on safari, i wouldn’t mind suggesting they
switch to firefox. It’s still a back-end after all, and wym can be a
great help to keep the front-end accessible for all browsers.

hope that clears things up a bit…

rgrds,

Benny

David P. wrote:

The developer never says anything about other file attachment types, so
I guess those don’t drag-and-drop either.

And then it hit me. WYMeditor has buttons for adding links and images,
so if I simply show a link next to each file, the user can right-click +
copy the link and paste it into the appropriate WYMeditor pop-up.

In page_attachments/app/views/admin/page/_attachment.rhtml add after
line 7…

<%= %Q(link) %>

It isn’t drag-and-drop, but it works and is a lot more client-friendly
than having them write their own Radius tags.

The drawback is that you are now saving full URLs (http://…) to the
database.

Benny D. wrote:

i answered this to somebody else via regular email, should’ve copied it
to the list…

Thanks for the info, Benny. Most of my clients are IE users (with little
I can do to change that), so I may not be able to use this drag+drop
magic afterall, but I’ll check out the Pastie regardless.

I’ve been playing with WYMeditor throughout the day and must say I
really like it. Thanks for all your hard work in bringing it to Radiant.
I can see my clients really liking it.