https://github.com/instructure/tinymce-light-skin
https://github.com/instructure/tinymce-light-skin
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/instructure/tinymce-light-skin
- Owner: instructure
- Created: 2017-02-10T23:17:06.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2018-05-23T13:59:50.000Z (about 8 years ago)
- Last Synced: 2024-10-12T23:23:28.062Z (over 1 year ago)
- Language: JavaScript
- Size: 50.8 KB
- Stars: 3
- Watchers: 5
- Forks: 9
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# TinyMCE Light Skin

This is a version of the [Pixabay's Light TinyMCE Skin][1] packaged with all
static assets in the JavaScript. This makes it easier to inlcude in modules
that wrap TinyMCE without requiring consumers to serve the skin assets.
## Modifications
Some slight modifications to the original skin have been made:
- IE7 specific CSS has been removed
- WOFF is the only font format used
- CSS changes for better keyboard navigation
- Remove font sizes from content CSS to avoid conflicting with app specific
content CSS.
This makes the bundle smaller and still provides good support for modern
browsers.
## Usage
```javascript
import skin from 'tinymce-light-skin'
// append styles to head
skin.use()
// when initializing TinyMCE set skin to false
tinymce.init({ skin: false })
// optionaly remove styles from head based on reference count
skin.unuse()
// inject content styles into the editor's iframe
tinymce.init({ content_style: skin.contentStyle })
// inline variants
skin.useInline()
skin.unuseInline()
```
[1]: https://pixabay.com/en/blog/posts/a-modern-custom-theme-for-tinymce-4-40/