collective.tinymceplugins.advfilelinks

by Luca Fabbri last modified Apr 20, 2012 02:40 PM

An advanced Plone TinyMCE plugin for handling links to files

Project Description

Introduction

This is a plugin for TinyMCE editor for Plone.

It will replace in the less obtrusive way the standard plonelink plugin, providing a version that handle in a different way links to File contents.

When the link is not internal or not to a file, nothing change.

When you link a file inside the Plone site, instead of obtain this in your XHTML...:

<a class="internal-link" href="./my-pdf">Download the document</a>

...you'll get this...:

<a class="internal-link internal-link-tofile" href="./my-pdf"
   type="application/pdf" title="pdf, 146.2 kB">Download the document</a>

The plugin also add a CSS to your Plone site that:

  • Add the image icon based on file's mimetype, on the left of the link (if on IE, need IE 7 or better)
  • After the linked text will be added a text generated with CSS, with the same content you find in the title, put in bracket (need IE 8 or better). IE users with old versions still get's some additional information thanks to the title attribute.
Screenshot of what you see on Firefox

How this looks like (on Firefox)

Screenshot of what you see in the TinyMCE XHML generated

What you will find inside TinyMCE

Dependencies

This product has been tested with:

  • Plone 3.3.5 and TinyMCE 1.1.12
  • Plone 4.1.4 and TinyMCE 1.2.10

TODO

  • More control on the plugin popup on what the user can show when creating the link

Credits

Developed with the support of Regione Emilia Romagna; Regione Emilia Romagna supports the PloneGov initiative.

Authors

This product was developed by RedTurtle Technology team.

RedTurtle Technology Site

Thanks to the University of Ferrara for providing CSS rules to be more compatible with additional mimetypes.

Changelog

0.2.1 (2012-04-20)

  • Version 0.2.0 was not upgrading properly [keul]

0.2.0 (2012-04-20)

  • now require z3c.jbot because to fix a bug related to a broken context menu [keul]
  • no more using a separate link plugin, but we are forced to use the original ones (for the fix above) [keul]
  • added a product layer [keul]
  • updated template and code to Product.TinyMCE 1.2 family [keul]

0.1.0 (2011-10-13)

  • University of Ferrara provided some more CSS rules for better integration with MS Office files [keul]

0.0.1alpha (2010-07-20)

  • initial release

Self-Certification

[ ] Internationalized

[ ] Unit tests

[X] End-user documentation

[ ] Internal documentation (documentation, interfaces, etc.)

[X] Existed and maintained for at least 6 months

[ ] Installs and uninstalls cleanly

[ ] Code structure follows best practice

Current Release
collective.tinymceplugins.advfilelinks 0.2.1

Released Apr 20, 2012 — tested with Plone 4.1, Plone 4, Plone 3

Fixing bad 0.2 version
More about this release…

Download file Get collective.tinymceplugins.advfilelinks for all platforms
collective.tinymceplugins.advfilelinks-0.2.1.tar.gz
If you are using Plone 3.2 or higher, you probably want to install this product with buildout. See our tutorial on installing add-on products with buildout for more information.

All Releases

Version Released Description Compatibility Licenses Status
0.2.1 Apr 20, 2012 Fixing bad 0.2 version More about this release…
Plone 4.1
Plone 4
Plone 3
GPL final
0.2.0 Apr 20, 2012 Updated to Plone 4/4.1 templates and bugfixes More about this release…
Plone 4.1
Plone 4
Plone 3
GPL final
0.1.0 More file compatibility formats More about this release…
Plone 3
GPL beta
0.0.1alpha First (alpha) release More about this release…
Plone 3
GPL alpha

Comments (0)