Skip to content

Allows uploading images into Plone site by pasting them into TinyMCE WYSIWYG editor

Notifications You must be signed in to change notification settings

FHNW/collective.clipboardupload

 
 

Repository files navigation

collective.clipboardupload

https://travis-ci.org/quintagroup/collective.clipboardupload.png

Introduction

Quintagroup has developed a collective.clipboardupload tool that essentially allows you to copy images and past them directly into TinyMCE visual editor.

http://quintagroup.com/services/plone-development/products/collective.clipboardupload/collective-clipboardupload.png

Compatibility

  • Plone 4.0
  • Plone 4.1
  • Plone 4.2
  • Plone 4.3

Know browser issues: Ctrl+V does not always work for me in Firefox (MacOSX 10.8), so menu Edit -> Paste to the rescue. Safari works same way. Chrome fails 100%. Works in Windows.

Installation

In your buildout.cfg add the following:

[buildout]
  ....

   eggs =
       ...
       collective.clipboardupload

It will engage automatically after buildout is rebuilt and instance started.

Usage

Collective.clipboardupload, developed to simplify the process of inserting images into TinyMCE without the need to upload the image, with simple Copy/Paste operation.

Open an image in, for example, Preview.app select an area and copy it to clipboard. Switch to Plone TinyMCE and Paste. Use your browser menu Edit -> Paste in case Ctrl+V fails.

The picture will be automatically uploaded to the edited page containing folder and stored as an Plone Image. Upon save the Image path is converted to resolveuid link. The id of the image object is automatically generated from the prefix Clipboard_image_ and the current timestamp. You can customize this behavior by adding a Python script generate_image_id to your Plone site. This script takes the context as parameter and needs to return a string which is used as image Id.

Authors

  • Maksym Shalenyi

About

Allows uploading images into Plone site by pasting them into TinyMCE WYSIWYG editor

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 91.1%
  • RobotFramework 8.9%