Closed (duplicate)
Project:
Wysiwyg
Version:
7.x-2.x-dev
Component:
Editor - CKEditor
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
9 Oct 2012 at 16:12 UTC
Updated:
1 Dec 2012 at 21:17 UTC
Here is a patch to allow the beta Ckeditor 4.
You have to use something like this to set the right skin.
hook_wysiwyg_editor_settings_alter(&$settings, $context) {
if ($context['profile']->editor == 'ckeditor') {
$settings['skin'] = 'moono-dark,' . base_path() . 'sites/all/libraries/ckeditor-moono-theme/skins/moono-dark/';
}
}
| Comment | File | Size | Author |
|---|---|---|---|
| beta-4.patch | 771 bytes | danielbeeke2 |
Comments
Comment #1
storch commentedwhere to add this code?
thanks!
Comment #2
danielbeeke2 commentedThe sniplet needs to be put inside a custom module.
'hook' needs to be replaced with the name of the custom module.
If you haven't made a custom module see: http://drupal.org/node/1074360
(You'll just need .info and almost empty .module file)
Comment #3
danielbeeke2 commentedLinks to download the new skins are here:
http://ckeditor.com/blog/ckeditor-4-skin-contest-finalists
Comment #4
quicksketchIt sounds like CKEditor 4.0 stable version works fine with WYSIWYG module after this patch: #1853550: Ckeditor 4.0 - The version of CKEditor could not be detected..
The actual code provided in the original post describes how to change the skin from the default skin to a different one. While informative I'm not sure it's really a feature request for WYSIWYG module (unless you're asking for an option to select a different skin).