https://github.com/apinstein/ckeditor-autocss
Automatically inject all css from host page into the editor for better WYWIWYG.
https://github.com/apinstein/ckeditor-autocss
Last synced: over 1 year ago
JSON representation
Automatically inject all css from host page into the editor for better WYWIWYG.
- Host: GitHub
- URL: https://github.com/apinstein/ckeditor-autocss
- Owner: apinstein
- License: other
- Created: 2012-02-24T17:40:02.000Z (over 14 years ago)
- Default Branch: master
- Last Pushed: 2012-03-26T14:31:41.000Z (over 14 years ago)
- Last Synced: 2025-02-05T08:13:13.968Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 141 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
The "autocss" plugin makes ckeditor a truly WYSIWYG even in complex css environments.
It does this by doing two things:
1. Copies all css from the host page into the editor via editor.config.contentsCSS.
1. Samples the background-color in effect at the parent of the host control and applies that color to the editor so that you get appropriate background color for even better WYSIWYG.
This plugin has jQuery included inline; if your site already uses jQuery, you could save room by removing it. Or someone could optimize out the parts that we need (just a selector for all included css and a cross-browser getComputedStyle).