2012-09-22, 07:24:37
Plugin In Progress
Ive been working on a wysiwyg editor plugin for a while, trying to find a way around the hardcoded ckeditor code in core. ( its not hacker friendly, it uses js strings not php objects to create configs and there are no hooks to mess with it )
So I made a kludgey plugin to create my own editor and insert it.
Initially, this is a ckeditor only endeavor, but will allow swapping any editor in the future.
Currently the first release will be a test plugin to test the methods I use for this.
The main goals are.
Replace plugin installation for ckeditor with an easier path.
This required a few things as plugins are impossible to install.
They require many steps and is anything but simple
I expect my plugin to do the following for ckeditor
Some of the things I have started working on implementing with this.
Alot more work to do still. But this is the start and proof of concept.
Codemirror
Code Insert
Server Preview
Ckeditor Css
Very experimental, drag and drop toolbar building
Oh and a couple of essential config options for ckeditor
Like fixing the stupid line wrapping of elements.
The removal of linebreaks and code formatting
The removal of elements with empty content ( This is now allowed in html5 )
Some other html5 support changes
Ive been working on a wysiwyg editor plugin for a while, trying to find a way around the hardcoded ckeditor code in core. ( its not hacker friendly, it uses js strings not php objects to create configs and there are no hooks to mess with it )
So I made a kludgey plugin to create my own editor and insert it.
Initially, this is a ckeditor only endeavor, but will allow swapping any editor in the future.
Currently the first release will be a test plugin to test the methods I use for this.
The main goals are.
Replace plugin installation for ckeditor with an easier path.
This required a few things as plugins are impossible to install.
They require many steps and is anything but simple
- create ckeditor config file, with plugin info
- edit gsconfig to add proper path to custom config file
- edit gsconfig to add custom toolbars so you can add your plugin icons
- copy the plugin into a non user core directory inside admin template js folder
I expect my plugin to do the following for ckeditor
- Simple drop of plugin files into a GS plugin folder
- Toolbars can be programaticly designed.
- Re-added support of all toolbar icons
- Re-added support of button grouping
Some of the things I have started working on implementing with this.
- Server preview without saving pages.
- actual wysiwyg in the wysiwyg editor, yes css styled
- codemirror in the source editor
- syntax highlighter ui for <code> blocks, and front end syntaxhighlighting
- lightbox insertion ( rel galleries ) and thumb links etc.
Alot more work to do still. But this is the start and proof of concept.
Codemirror
Code Insert
Server Preview
Ckeditor Css
Very experimental, drag and drop toolbar building
Oh and a couple of essential config options for ckeditor
Like fixing the stupid line wrapping of elements.
The removal of linebreaks and code formatting
The removal of elements with empty content ( This is now allowed in html5 )
Some other html5 support changes