[Radiant] [ANN] WYMeditor filter

David Piehler davidpiehler at gmail.com
Wed Jan 30 13:50:14 CST 2008


David Piehler 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...

<td> <%= %Q(<a href="#{attachment.public_filename}">link</a>) %></td>

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.
-- 
Posted via http://www.ruby-forum.com/.



More information about the Radiant mailing list