Skip to content

Latest commit

 

History

History
42 lines (27 loc) · 1019 Bytes

README.md

File metadata and controls

42 lines (27 loc) · 1019 Bytes

Uploadcare TinyMCE Plugin

This is a module for TinyMCE to work with Uploadcare.

It's based on a uploadcare-php library.

Requirements

  • TinyMCE 3.5+

Install

Clone plugin from git to your plugins directory:

git clone git://github.com/uploadcare/uploadcare-tinymce.git plugins/uploadcare --recursive

Find a "config.js" file an edit it:

var UPLOADCARE_PUBLIC_KEY = "demopublickey";

Add a plugin and plugin button when initializing TinyMCE:

tinyMCE.init({
  ....
  plugins : "uploadcare,..."
  ....
  theme_advanced_buttons1 : "uploadcare,save,..."
  ....

Enable autostore for you account.

Usage

  1. Press "Uploadcare" button.
  2. Select a file to upload.
  3. Change any parameters you like in the appeared dialog.
  4. Press "Insert" and an image will be available inside editor.