Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tweedegolf/media-browser
Frond-end scripts for the tweedegolf media bundle
https://github.com/tweedegolf/media-browser
Last synced: about 1 month ago
JSON representation
Frond-end scripts for the tweedegolf media bundle
- Host: GitHub
- URL: https://github.com/tweedegolf/media-browser
- Owner: tweedegolf
- License: mit
- Created: 2014-08-12T15:11:09.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-01-14T14:52:51.000Z (almost 9 years ago)
- Last Synced: 2024-11-09T19:17:02.567Z (about 2 months ago)
- Language: JavaScript
- Size: 215 KB
- Stars: 3
- Watchers: 4
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
tweedegolf-media-browser
========================Frond-end scripts for the [tweedegolf media bundle](https://github.com/tweedegolf/media-bundle). See the [tweedegolf media bundle](https://github.com/tweedegolf/media-bundle) for a complete installation guide and documentation.
## Installation and configuration
Add the media bundle to `bower.json`:```json
{
"dependencies": {
"tweedegolf-media-browser": "0.1.0"
}
}
```## Usage
The media browser provides a `scss` file with styling and a `javascript` file that exposes a callback for tinyMCE. Example usage:
```javascript
var $ = require('jquery');
window.jQuery = window.$ = $; // required for bootstraprequire('bootstrap-sass-twbs/assets/javascripts/bootstrap');
require('tinymce/jquery.tinymce.min');
var media_callback = require('tweedegolf-media-browser').tinymce_callback('/api/modal');$(function () {
var tinymce_config = {
theme: 'modern',
plugins: 'link image',
file_browser_callback: media_callback
};$('.tinymce').tinymce(tinymce_config);
);
```