29 Commits

Author SHA1 Message Date
Ian
b51b3dfb59 simplify tb tweak in 77033ef
References #148
2014-11-26 10:52:32 +01:00
Ian
77033efcf4 move cke toolbar css tweaks to a better place
which also makes it independent from cke plugin file usage.

References #148
2014-11-26 10:14:23 +01:00
Ian
d5f24aef12 Apply Serendipity lang to CKEDITOR lang
References #235
2014-11-21 10:06:03 +01:00
Ian
1459a3aa53 set strict default toolbar 2014-11-18 12:28:30 +01:00
Ian
885f064b61 package CKEDITOR UI configurable Toolbar
References #148

The js and css config files are directly placed in /htmlarea directory. The old ones downunder are not reset with this commit, until we give OK to go.
The lang constant will be placed to addlang.txt in a 2cd commit, since this may change and there is already a pending constant.
I have not added another option by now to explicitly choose the s9y configs in htmlarea, if someone has custom ones in 2k11/admin and wants to switch back to the origins. Is this really a real and valid user case?
2014-11-17 18:07:54 +01:00
onli
f7da64165d Make ckeditor configurable via config (#148)
Before this, ckeditor was configurable by editing the wysiwyg_init.tpl in 2k11/admin. Now, the flow is like this:
 1. wysiwyg_init.tpl is responsible for initializing the editor and the plugins
 2. we provide a htmlare/ckeditor/serendipity_config.js where we specify a sane default configuration, including a small toolbar without harmful elements
 3. if the user wants to overwrite our configuration upgrade-safely, he can do this in htmlare/ckeditor/userconf.js
2014-09-19 21:15:50 +02:00
Garvin Hicking
dc53c4f0dc check autosave also here 2014-09-11 13:02:01 +02:00
Matthias Mees
6bd322e195 indexedDB feature test for autocache in editors.
References #186
2014-06-17 11:31:38 +02:00
onli
413ec650ed Fix editor autosave in ckeditor 2014-06-15 18:47:02 +02:00
Ian
d3235763dc opps sorry fix faccabe 2014-06-12 20:19:14 +02:00
Ian
99602c4add fix faccabe - References #182 2014-06-12 17:20:15 +02:00
Ian
faccabef47 slight changes to enable wysiwyg editor textareas 2014-06-12 16:57:08 +02:00
onli
eef94a8048 Integrate autosave_local into core (#118) 2014-05-29 19:26:13 +02:00
onli
ac8407cd19 make wysiwyg-plugin-buttons work without js-change (#147) 2014-05-14 08:39:55 +02:00
onli
1b80ba69a1 Restore wysiwyg plugin api (#147)
Partly. Plugins still need to use a different JS, fitting for the ckeditor. And plugins are bundled in the other-part of the toolbar instead of trying to follow the (xinha-)toolbar parameter
2014-05-12 21:09:58 +02:00
onli
0d54063c5e Use old method to init ckeditor
Instead of using global JS-variables and ignoring serendipity[textarea]={$view}, this
approach actually uses the variable and therefore reinstates wysiwyg_init.tpl.

ckeditor_custom_config.js (Thx Ian!) is still respected, but the toolbar got restored to the old version. We need an easy way to remove _underline_, for example. It could be extended though.

This fixes #{107} somewhat, as serendipity_image_selector.php is useable now, but still with display errors (and without an upload widget). Probably still a good idea to copy the ML-eapproach of the normal textareas

This also works with htmlnuggets, without using spawnnugget from the core, instead wysiwyg_init.tpl gets reused in the plugin-config.

ckeditor_custom_plugin.js got emptied, the relevant code (which should only be the part that adds the plugins into the toolbar) should be integrated into wysiwyg_init.tpl).
2014-03-23 23:03:09 +01:00
Ian
faae4b0533 fix core to read ckeditor and handle hook-ins
This supports custom ckeditor plugins and a custom ckeditor config
and reads $eventData for
- normal entry form (case1) textareas,
- staticpage (case2) textareas and
- other nugget plugins (case3) textareas.
They all are build differently, therfore we needed three cases.
Please test!

Based to following commits
 8e26bd9 prepare core ckeditor for custom config and plugins
 44ea050 fix virtual js
 40609d8 add backend_footer hook

References #72
2014-03-15 19:02:13 +01:00
onli
3873826036 Add upload button to imageselector 2014-01-23 23:13:09 +01:00
onli
d0e74392fe use magnific everywhere (#52) 2013-08-19 01:38:48 +02:00
onli
068767c80d Load ckeditor for html-nugget (#27)
Need still to be tested and adapted for other editors
2013-07-23 23:30:02 +02:00
onli
f744ef7464 Use magnific for ML-popup
Also for not wysiwyg
2013-07-22 23:30:43 +02:00
onli
fb100aaa79 use magnific popup 2013-07-07 22:43:11 +02:00
onli
f87121f42d fix ckeditor not inserting media in the right textarea 2013-06-28 19:05:39 +02:00
Matthias Mees
5e40d76375 Reconfigured CK editor.
– removed buttons which produce unsemantic markup
– reordered buttons according to expected usage
2013-06-27 12:30:23 +02:00
onli
99eb79957e Move ckeditor into htmlarea
Easier for shared installations
2013-06-26 21:31:04 +02:00
onli
ce79ed9657 ckeditor-init for more than one textarea 2013-06-25 01:14:48 +02:00
onli
4c95630c4c Replace xinha with ckeditor
Removes also a lot of the code needed by the wysiwyg-plugins, but the whole spawn()-logic has to get checked anyway
2013-06-25 01:05:19 +02:00
Matthias Mees
7a8b5e755f Maintenance: type attribute is obsolete for script elements in HTML5. 2013-06-15 19:37:10 +02:00
onli
faa0781c8b smartified serendipity_emit_htmlarea_code 2013-06-14 20:39:29 +02:00