esp-ckeditor 0.1.4 → 0.1.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (34) hide show
  1. checksums.yaml +4 -4
  2. data/README.rdoc +24 -2
  3. data/esp-ckeditor.gemspec +2 -0
  4. data/lib/esp-ckeditor/version.rb +1 -1
  5. data/lib/esp-ckeditor.rb +2 -2
  6. data/lib/generators/esp_ckeditor/install_config_generator.rb +10 -0
  7. data/lib/generators/esp_ckeditor/templates/custom_config.js +391 -0
  8. data/spec/dummy/vendor/assets/javascripts/esp-ckeditor/custom_config.js +1 -0
  9. data/vendor/assets/javascripts/esp-ckeditor/config.js +2 -0
  10. data/vendor/assets/{stylesheets → javascripts}/esp-ckeditor/skins/kama/dialog.css +0 -0
  11. data/vendor/assets/{stylesheets → javascripts}/esp-ckeditor/skins/kama/editor.css +0 -0
  12. data/vendor/assets/{stylesheets → javascripts}/esp-ckeditor/skins/kama/elementspath.css +0 -0
  13. data/vendor/assets/{stylesheets → javascripts}/esp-ckeditor/skins/kama/icons.css +0 -0
  14. data/vendor/assets/{stylesheets → javascripts}/esp-ckeditor/skins/kama/icons.png +0 -0
  15. data/vendor/assets/{stylesheets → javascripts}/esp-ckeditor/skins/kama/icons_rtl.png +0 -0
  16. data/vendor/assets/{stylesheets → javascripts}/esp-ckeditor/skins/kama/images/dialog_sides.gif +0 -0
  17. data/vendor/assets/{stylesheets → javascripts}/esp-ckeditor/skins/kama/images/dialog_sides.png +0 -0
  18. data/vendor/assets/{stylesheets → javascripts}/esp-ckeditor/skins/kama/images/dialog_sides_rtl.png +0 -0
  19. data/vendor/assets/{stylesheets → javascripts}/esp-ckeditor/skins/kama/images/mini.gif +0 -0
  20. data/vendor/assets/{stylesheets → javascripts}/esp-ckeditor/skins/kama/images/noimage.png +0 -0
  21. data/vendor/assets/{stylesheets → javascripts}/esp-ckeditor/skins/kama/images/sprites.png +0 -0
  22. data/vendor/assets/{stylesheets → javascripts}/esp-ckeditor/skins/kama/images/sprites_ie6.png +0 -0
  23. data/vendor/assets/{stylesheets → javascripts}/esp-ckeditor/skins/kama/images/toolbar_start.gif +0 -0
  24. data/vendor/assets/{stylesheets → javascripts}/esp-ckeditor/skins/kama/mainui.css +0 -0
  25. data/vendor/assets/{stylesheets → javascripts}/esp-ckeditor/skins/kama/menu.css +0 -0
  26. data/vendor/assets/{stylesheets → javascripts}/esp-ckeditor/skins/kama/panel.css +0 -0
  27. data/vendor/assets/{stylesheets → javascripts}/esp-ckeditor/skins/kama/presets.css +0 -0
  28. data/vendor/assets/{stylesheets → javascripts}/esp-ckeditor/skins/kama/reset.css +0 -0
  29. data/vendor/assets/{stylesheets → javascripts}/esp-ckeditor/skins/kama/richcombo.css +0 -0
  30. data/vendor/assets/{stylesheets → javascripts}/esp-ckeditor/skins/kama/skin.js +0 -0
  31. data/vendor/assets/{stylesheets → javascripts}/esp-ckeditor/skins/kama/templates.css +0 -0
  32. data/vendor/assets/{stylesheets → javascripts}/esp-ckeditor/skins/kama/toolbar.css +0 -0
  33. metadata +56 -26
  34. data/lib/tasks/esp-ckeditor_tasks.rake +0 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bf2bcafe01a57cd3f271df3ce55128a84117e921
4
- data.tar.gz: ccc991376ae61ea91c3b1492394ea96bdea35463
3
+ metadata.gz: ab1902be90f5662b6d3d62864505ba3f88a5cb32
4
+ data.tar.gz: 4f1402599c8478357edc4f824ccc40b93820c1b1
5
5
  SHA512:
6
- metadata.gz: 07390d9f191ba4042eb1b229e5450ba4858cabf36ea698f968932fa07cf31ed80a309a075d8456b871407022fd5a31cf493d3eaffb6193d3634b8e869123cd69
7
- data.tar.gz: cc7350dd98656449a3b54bf6fcdba608533e98d1d73d8874c35e42380a567da9119963a60c8983287635bcb005b9e96bf6e7a48bd25ef7d88d3441382489b535
6
+ metadata.gz: 677d25312ab223770932a73d60c8868bf0f17198b3af561af05852f02fb69adae4cda79e35e16687cfe6c1e91420a6f21cbbfd6d590bbb61d4db9bf59c221c90
7
+ data.tar.gz: 271ad1177979c4e2d3e564e31005a261669a30e51bd88d14a6dd0926c575e4c697d29ea7b2c7394c5b48b4cf6853d458b3f264ca848cb09fd40df269476273f2
data/README.rdoc CHANGED
@@ -1,6 +1,6 @@
1
1
  = EspCkeditor
2
2
 
3
- CKEditor 3.6.2 for rails >= 3.1.0 project with el_vfs_client (optional) support.
3
+ CKEditor 3.6.2 for rails >= 3.1.0 project with {el_vfs_client}[https://github.com/openteam/el_vfs_client] (optional) support.
4
4
 
5
5
  == Install
6
6
 
@@ -18,11 +18,33 @@ or
18
18
 
19
19
  == Usage
20
20
 
21
+ Use textarea with <tt>:class => :ckeditor</tt>
22
+
21
23
  Add to your <code>application.js</code>:
22
24
 
23
25
  //= require esp-ckeditor
26
+
27
+ or include <code>javascript_include_tag</code> in view:
28
+
29
+ <%= javascript_include_tag 'esp-ckeditor' %>
30
+
31
+ IMPORTANT: do not forget add the file to precompile additional assets in <code>config/environments/production.rb</code>
32
+ if you are include js via javascript_include_tag:
33
+
34
+ config.assets.precompile += %w( esp-ckeditor.js )
35
+
36
+
37
+ == Customize settings CKEeditor
38
+
39
+ Run generator:
40
+
41
+ rails g esp_ckeditor:install_config
42
+
43
+ and customize <code>vendor/assets/javascripts/esp-ckeditor/custom_config.js</code>
44
+
45
+ IMPORTANT: do not forget add the file to precompile additional assets in <code>config/environments/production.rb</code>:
24
46
 
25
- and use textarea with <tt>:class => :ckeditor</tt>
47
+ config.assets.precompile += %w( esp-ckeditor/custom_config.js )
26
48
 
27
49
  == License
28
50
 
data/esp-ckeditor.gemspec CHANGED
@@ -18,5 +18,7 @@ Gem::Specification.new do |s|
18
18
  s.add_development_dependency 'rails', '~> 3.2.15'
19
19
  s.add_development_dependency 'juicer'
20
20
  s.add_development_dependency 'sass-rails'
21
+ s.add_development_dependency 'uglifier'
22
+ s.add_development_dependency 'turbo-sprockets-rails3'
21
23
 
22
24
  end
@@ -1,3 +1,3 @@
1
1
  module EspCkeditor
2
- VERSION = "0.1.4"
2
+ VERSION = "0.1.6"
3
3
  end
data/lib/esp-ckeditor.rb CHANGED
@@ -8,8 +8,8 @@ module EspCkeditor
8
8
  end
9
9
 
10
10
  def self.assets
11
- Dir[root_path.join('app/assets/javascripts/esp-ckeditor/**', '*.{js,css}')].inject([]) do |list, path|
12
- list << Pathname.new(path).relative_path_from(root_path.join('app/assets/javascripts'))
11
+ Dir[root_path.join('vendor/assets/javascripts/esp-ckeditor/**', '*.{css,js,png}')].inject([]) do |list, path|
12
+ list << Pathname.new(path).relative_path_from(root_path.join('vendor/assets/javascripts')) unless path.match('_source')
13
13
  list
14
14
  end
15
15
  end
@@ -0,0 +1,10 @@
1
+ module EspCkeditor
2
+ class InstallConfigGenerator < Rails::Generators::Base
3
+ desc 'Copy custom_config.js'
4
+ source_root File.expand_path('../templates', __FILE__)
5
+
6
+ def copy_config
7
+ copy_file 'custom_config.js', 'vendor/assets/javascripts/esp-ckeditor/custom_config.js'
8
+ end
9
+ end
10
+ end
@@ -0,0 +1,391 @@
1
+ /**
2
+ *
3
+ * Customize this file for overriding some settings.
4
+ * Full config see: http://docs.cksource.com/ckeditor_api/symbols/CKEDITOR.config.html
5
+ *
6
+ */
7
+
8
+ /**
9
+ * The URL path for the custom configuration file to be loaded. If not
10
+ * overloaded with inline configuration, it defaults to the <code>config.js</code>
11
+ * file present in the root of the CKEditor installation directory.<br /><br />
12
+ *
13
+ * CKEditor will recursively load custom configuration files defined inside
14
+ * other custom configuration files.
15
+ * @type String
16
+ * @default <code>'<em><CKEditor folder></em>/config.js'</code>
17
+ * @example
18
+ * // Load a specific configuration file.
19
+ * CKEDITOR.replace( 'myfield', { customConfig : '/myconfig.js' } );
20
+ * @example
21
+ * // Do not load any custom configuration file.
22
+ * CKEDITOR.replace( 'myfield', { customConfig : '' } );
23
+ */
24
+ CKEDITOR.config.customConfig = 'config.js';
25
+
26
+ /**
27
+ * Whether the replaced element (usually a <code><textarea></code>)
28
+ * is to be updated automatically when posting the form containing the editor.
29
+ * @type Boolean
30
+ * @default <code>true</code>
31
+ * @example
32
+ * config.autoUpdateElement = true;
33
+ */
34
+ CKEDITOR.config.autoUpdateElement = true;
35
+
36
+ /**
37
+ * The base href URL used to resolve relative and absolute URLs in the
38
+ * editor content.
39
+ * @type String
40
+ * @default <code>''</code> (empty)
41
+ * @example
42
+ * config.baseHref = 'http://www.example.com/path/';
43
+ */
44
+ CKEDITOR.config.baseHref = '';
45
+
46
+ /**
47
+ * The CSS file(s) to be used to apply style to editor contents. It should
48
+ * reflect the CSS used in the final pages where the contents are to be
49
+ * used.
50
+ * @type String|Array
51
+ * @default <code>'<em><CKEditor folder></em>/contents.css'</code>
52
+ * @example
53
+ * config.contentsCss = '/css/mysitestyles.css';
54
+ * config.contentsCss = ['/css/mysitestyles.css', '/css/anotherfile.css'];
55
+ */
56
+ CKEDITOR.config.contentsCss = CKEDITOR.basePath + 'contents.css';
57
+
58
+ /**
59
+ * The writing direction of the language used to create the editor
60
+ * contents. Allowed values are:
61
+ * <ul>
62
+ * <li><code>'ui'</code> – indicates that content direction will be the same as the user interface language direction;</li>
63
+ * <li><code>'ltr'</code> – for Left-To-Right language (like English);</li>
64
+ * <li><code>'rtl'</code> – for Right-To-Left languages (like Arabic).</li>
65
+ * </ul>
66
+ * @default <code>'ui'</code>
67
+ * @type String
68
+ * @example
69
+ * config.contentsLangDirection = 'rtl';
70
+ */
71
+ CKEDITOR.config.contentsLangDirection = 'ui';
72
+
73
+ /**
74
+ * Language code of the writing language which is used to create the editor
75
+ * contents.
76
+ * @default Same value as editor UI language.
77
+ * @type String
78
+ * @example
79
+ * config.contentsLanguage = 'fr';
80
+ */
81
+ CKEDITOR.config.contentsLanguage = '';
82
+
83
+ /**
84
+ * The user interface language localization to use. If left empty, the editor
85
+ * will automatically be localized to the user language. If the user language is not supported,
86
+ * the language specified in the <code>{@link CKEDITOR.config.defaultLanguage}</code>
87
+ * configuration setting is used.
88
+ * @default <code>''</code> (empty)
89
+ * @type String
90
+ * @example
91
+ * // Load the German interface.
92
+ * config.language = 'de';
93
+ */
94
+ CKEDITOR.config.language = '';
95
+
96
+ /**
97
+ * The language to be used if the <code>{@link CKEDITOR.config.language}</code>
98
+ * setting is left empty and it is not possible to localize the editor to the user language.
99
+ * @default <code>'en'</code>
100
+ * @type String
101
+ * @example
102
+ * config.defaultLanguage = 'it';
103
+ */
104
+ CKEDITOR.config.defaultLanguage = 'en';
105
+
106
+ /**
107
+ * Sets the behavior of the <em>Enter</em> key. It also determines other behavior
108
+ * rules of the editor, like whether the <code><br></code> element is to be used
109
+ * as a paragraph separator when indenting text.
110
+ * The allowed values are the following constants that cause the behavior outlined below:
111
+ * <ul>
112
+ * <li><code>{@link CKEDITOR.ENTER_P}</code> (1) – new <code><p></code> paragraphs are created;</li>
113
+ * <li><code>{@link CKEDITOR.ENTER_BR}</code> (2) – lines are broken with <code><br></code> elements;</li>
114
+ * <li><code>{@link CKEDITOR.ENTER_DIV}</code> (3) – new <code><div></code> blocks are created.</li>
115
+ * </ul>
116
+ * <strong>Note</strong>: It is recommended to use the
117
+ * <code>{@link CKEDITOR.ENTER_P}</code> setting because of its semantic value and
118
+ * correctness. The editor is optimized for this setting.
119
+ * @type Number
120
+ * @default <code>{@link CKEDITOR.ENTER_P}</code>
121
+ * @example
122
+ * // Not recommended.
123
+ * config.enterMode = CKEDITOR.ENTER_BR;
124
+ */
125
+ CKEDITOR.config.enterMode = CKEDITOR.ENTER_P;
126
+
127
+ /**
128
+ * Force the use of <code>{@link CKEDITOR.config.enterMode}</code> as line break regardless
129
+ * of the context. If, for example, <code>{@link CKEDITOR.config.enterMode}</code> is set
130
+ * to <code>{@link CKEDITOR.ENTER_P}</code>, pressing the <em>Enter</em> key inside a
131
+ * <code><div></code> element will create a new paragraph with <code><p></code>
132
+ * instead of a <code><div></code>.
133
+ * @since 3.2.1
134
+ * @type Boolean
135
+ * @default <code>false</code>
136
+ * @example
137
+ * // Not recommended.
138
+ * config.forceEnterMode = true;
139
+ */
140
+ CKEDITOR.config.forceEnterMode = false;
141
+
142
+ /**
143
+ * Similarly to the <code>{@link CKEDITOR.config.enterMode}</code> setting, it defines the behavior
144
+ * of the <em>Shift+Enter</em> key combination.
145
+ * The allowed values are the following constants the behavior outlined below:
146
+ * <ul>
147
+ * <li><code>{@link CKEDITOR.ENTER_P}</code> (1) – new <code><p></code> paragraphs are created;</li>
148
+ * <li><code>{@link CKEDITOR.ENTER_BR}</code> (2) – lines are broken with <code><br></code> elements;</li>
149
+ * <li><code>{@link CKEDITOR.ENTER_DIV}</code> (3) – new <code><div></code> blocks are created.</li>
150
+ * </ul>
151
+ * @type Number
152
+ * @default <code>{@link CKEDITOR.ENTER_BR}</code>
153
+ * @example
154
+ * config.shiftEnterMode = CKEDITOR.ENTER_P;
155
+ */
156
+ CKEDITOR.config.shiftEnterMode = CKEDITOR.ENTER_BR;
157
+
158
+ /**
159
+ * A comma separated list of plugins that are not related to editor
160
+ * instances. Reserved for plugins that extend the core code only.<br /><br />
161
+ *
162
+ * There are no ways to override this setting except by editing the source
163
+ * code of CKEditor (<code>_source/core/config.js</code>).
164
+ * @type String
165
+ * @example
166
+ */
167
+ CKEDITOR.config.corePlugins = '';
168
+
169
+ /**
170
+ * Sets the <code>DOCTYPE</code> to be used when loading the editor content as HTML.
171
+ * @type String
172
+ * @default <code>'<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">'</code>
173
+ * @example
174
+ * // Set the DOCTYPE to the HTML 4 (Quirks) mode.
175
+ * config.docType = '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">';
176
+ */
177
+ CKEDITOR.config.docType = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">';
178
+
179
+ /**
180
+ * Sets the <code>id</code> attribute to be used on the <code>body</code> element
181
+ * of the editing area. This can be useful when you intend to reuse the original CSS
182
+ * file you are using on your live website and want to assign the editor the same ID
183
+ * as the section that will include the contents. In this way ID-specific CSS rules will
184
+ * be enabled.
185
+ * @since 3.1
186
+ * @type String
187
+ * @default <code>''</code> (empty)
188
+ * @example
189
+ * config.bodyId = 'contents_id';
190
+ */
191
+ CKEDITOR.config.bodyId = '';
192
+
193
+ /**
194
+ * Sets the <code>class</code> attribute to be used on the <code>body</code> element
195
+ * of the editing area. This can be useful when you intend to reuse the original CSS
196
+ * file you are using on your live website and want to assign the editor the same class
197
+ * as the section that will include the contents. In this way class-specific CSS rules will
198
+ * be enabled.
199
+ * @since 3.1
200
+ * @type String
201
+ * @default <code>''</code> (empty)
202
+ * @example
203
+ * config.bodyClass = 'contents';
204
+ */
205
+ CKEDITOR.config.bodyClass = '';
206
+
207
+ /**
208
+ * Indicates whether the contents to be edited are being input as a full
209
+ * HTML page. A full page includes the <code><html></code>,
210
+ * <code><head></code>, and <code><body></code> elements.
211
+ * The final output will also reflect this setting, including the
212
+ * <code><body></code> contents only if this setting is disabled.
213
+ * @since 3.1
214
+ * @type Boolean
215
+ * @default <code>false</code>
216
+ * @example
217
+ * config.fullPage = true;
218
+ */
219
+ CKEDITOR.config.fullPage = false;
220
+
221
+ /**
222
+ * The height of the editing area (that includes the editor content). This
223
+ * can be an integer, for pixel sizes, or any CSS-defined length unit.<br>
224
+ * <br>
225
+ * <strong>Note:</strong> Percent units (%) are not supported.
226
+ * @type Number|String
227
+ * @default <code>200</code>
228
+ * @example
229
+ * config.height = 500; // 500 pixels.
230
+ * @example
231
+ * config.height = '25em'; // CSS length.
232
+ * @example
233
+ * config.height = '300px'; // CSS length.
234
+ */
235
+ CKEDITOR.config.height = 200;
236
+
237
+ /**
238
+ * Comma separated list of plugins to be loaded and initialized for an editor
239
+ * instance. This setting should rarely be changed. It is recommended to use the
240
+ * <code>{@link CKEDITOR.config.extraPlugins}</code> and
241
+ * <code>{@link CKEDITOR.config.removePlugins}</code> for customization purposes instead.
242
+ * @type String
243
+ * @example
244
+ */
245
+ CKEDITOR.config.plugins =
246
+ 'about,' +
247
+ 'a11yhelp,' +
248
+ 'basicstyles,' +
249
+ 'bidi,' +
250
+ 'blockquote,' +
251
+ 'button,' +
252
+ 'clipboard,' +
253
+ 'colorbutton,' +
254
+ 'colordialog,' +
255
+ 'contextmenu,' +
256
+ 'dialogadvtab,' +
257
+ 'div,' +
258
+ 'elementspath,' +
259
+ 'enterkey,' +
260
+ 'entities,' +
261
+ 'filebrowser,' +
262
+ 'find,' +
263
+ 'flash,' +
264
+ 'font,' +
265
+ 'format,' +
266
+ 'forms,' +
267
+ 'horizontalrule,' +
268
+ 'htmldataprocessor,' +
269
+ 'iframe,' +
270
+ 'image,' +
271
+ 'indent,' +
272
+ 'justify,' +
273
+ 'keystrokes,' +
274
+ 'link,' +
275
+ 'list,' +
276
+ 'liststyle,' +
277
+ 'maximize,' +
278
+ 'newpage,' +
279
+ 'pagebreak,' +
280
+ 'pastefromword,' +
281
+ 'pastetext,' +
282
+ 'popup,' +
283
+ 'preview,' +
284
+ 'print,' +
285
+ 'removeformat,' +
286
+ 'resize,' +
287
+ 'save,' +
288
+ 'scayt,' +
289
+ 'showblocks,' +
290
+ 'showborders,' +
291
+ 'smiley,' +
292
+ 'sourcearea,' +
293
+ 'specialchar,' +
294
+ 'stylescombo,' +
295
+ 'tab,' +
296
+ 'table,' +
297
+ 'tabletools,' +
298
+ 'templates,' +
299
+ 'toolbar,' +
300
+ 'undo,' +
301
+ 'wsc,' +
302
+ 'wysiwygarea';
303
+
304
+ /**
305
+ * A list of additional plugins to be loaded. This setting makes it easier
306
+ * to add new plugins without having to touch and potentially break the
307
+ * <code>{@link CKEDITOR.config.plugins}</code> setting.
308
+ * @type String
309
+ * @example
310
+ * config.extraPlugins = 'myplugin,anotherplugin';
311
+ */
312
+ CKEDITOR.config.extraPlugins = '';
313
+
314
+ /**
315
+ * A list of plugins that must not be loaded. This setting makes it possible
316
+ * to avoid loading some plugins defined in the <code>{@link CKEDITOR.config.plugins}</code>
317
+ * setting, without having to touch it and potentially break it.
318
+ * @type String
319
+ * @example
320
+ * config.removePlugins = 'elementspath,save,font';
321
+ */
322
+ CKEDITOR.config.removePlugins = '';
323
+
324
+ /**
325
+ * List of regular expressions to be executed on input HTML,
326
+ * indicating HTML source code that when matched, must <strong>not</strong> be available in the WYSIWYG
327
+ * mode for editing.
328
+ * @type Array
329
+ * @default <code>[]</code> (empty array)
330
+ * @example
331
+ * config.protectedSource.push( /<\?[\s\S]*?\?>/g ); // PHP code
332
+ * config.protectedSource.push( /<%[\s\S]*?%>/g ); // ASP code
333
+ * config.protectedSource.push( /(<asp:[^\>]+>[\s|\S]*?<\/asp:[^\>]+>)|(<asp:[^\>]+\/>)/gi ); // ASP.Net code
334
+ */
335
+ CKEDITOR.config.protectedSource = [];
336
+
337
+ /**
338
+ * The editor <code>tabindex</code> value.
339
+ * @type Number
340
+ * @default <code>0</code> (zero)
341
+ * @example
342
+ * config.tabIndex = 1;
343
+ */
344
+ CKEDITOR.config.tabIndex = 0;
345
+
346
+ /**
347
+ * The theme to be used to build the user interface.
348
+ * @type String
349
+ * @default <code>'default'</code>
350
+ * @see CKEDITOR.config.skin
351
+ * @example
352
+ * config.theme = 'default';
353
+ */
354
+ CKEDITOR.config.theme = 'default';
355
+
356
+ /**
357
+ * The skin to load. It may be the name of the skin folder inside the
358
+ * editor installation path, or the name and the path separated by a comma.
359
+ * @type String
360
+ * @default <code>'default'</code>
361
+ * @example
362
+ * config.skin = 'v2';
363
+ * @example
364
+ * config.skin = 'myskin,/customstuff/myskin/';
365
+ */
366
+ CKEDITOR.config.skin = 'kama';
367
+
368
+ /**
369
+ * The editor UI outer width. This can be an integer, for pixel sizes, or
370
+ * any CSS-defined unit.<br>
371
+ * <br>
372
+ * Unlike the <code>{@link CKEDITOR.config.height}</code> setting, this
373
+ * one will set the outer width of the entire editor UI, not for the
374
+ * editing area only.
375
+ * @type String|Number
376
+ * @default <code>''</code> (empty)
377
+ * @example
378
+ * config.width = 850; // 850 pixels wide.
379
+ * @example
380
+ * config.width = '75%'; // CSS unit.
381
+ */
382
+ CKEDITOR.config.width = '';
383
+
384
+ /**
385
+ * The base Z-index for floating dialog windows and popups.
386
+ * @type Number
387
+ * @default <code>10000</code>
388
+ * @example
389
+ * config.baseFloatZIndex = 2000
390
+ */
391
+ CKEDITOR.config.baseFloatZIndex = 10000;
@@ -0,0 +1 @@
1
+ CKEDITOR.config.height = 400;
@@ -9,6 +9,8 @@ CKEDITOR.editorConfig = function( config )
9
9
  // config.language = 'fr';
10
10
  // config.uiColor = '#AADC6E';
11
11
 
12
+ config.customConfig = 'custom_config.js';
13
+
12
14
  config.fillEmptyBlocks = false;
13
15
 
14
16
  config.disableNativeSpellChecker = false;
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: esp-ckeditor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Evgeny Lapin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-02-21 00:00:00.000000000 Z
11
+ date: 2014-02-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -52,6 +52,34 @@ dependencies:
52
52
  - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: uglifier
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: turbo-sprockets-rails3
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
55
83
  description: EspCkeditor.
56
84
  email:
57
85
  - mail@openteam.ru
@@ -70,7 +98,8 @@ files:
70
98
  - lib/esp-ckeditor.rb
71
99
  - lib/esp-ckeditor/engine.rb
72
100
  - lib/esp-ckeditor/version.rb
73
- - lib/tasks/esp-ckeditor_tasks.rake
101
+ - lib/generators/esp_ckeditor/install_config_generator.rb
102
+ - lib/generators/esp_ckeditor/templates/custom_config.js
74
103
  - script/rails
75
104
  - spec/dummy/Rakefile
76
105
  - spec/dummy/app/assets/javascripts/application.js
@@ -107,6 +136,7 @@ files:
107
136
  - spec/dummy/public/500.html
108
137
  - spec/dummy/public/favicon.ico
109
138
  - spec/dummy/script/rails
139
+ - spec/dummy/vendor/assets/javascripts/esp-ckeditor/custom_config.js
110
140
  - vendor/assets/javascripts/esp-ckeditor/_source/core/_bootstrap.js
111
141
  - vendor/assets/javascripts/esp-ckeditor/_source/core/ckeditor.js
112
142
  - vendor/assets/javascripts/esp-ckeditor/_source/core/ckeditor_base.js
@@ -420,29 +450,29 @@ files:
420
450
  - vendor/assets/javascripts/esp-ckeditor/plugins/toolbar/plugin.js
421
451
  - vendor/assets/javascripts/esp-ckeditor/plugins/undo/plugin.js
422
452
  - vendor/assets/javascripts/esp-ckeditor/plugins/wysiwygarea/plugin.js
423
- - vendor/assets/stylesheets/esp-ckeditor/skins/kama/dialog.css
424
- - vendor/assets/stylesheets/esp-ckeditor/skins/kama/editor.css
425
- - vendor/assets/stylesheets/esp-ckeditor/skins/kama/elementspath.css
426
- - vendor/assets/stylesheets/esp-ckeditor/skins/kama/icons.css
427
- - vendor/assets/stylesheets/esp-ckeditor/skins/kama/icons.png
428
- - vendor/assets/stylesheets/esp-ckeditor/skins/kama/icons_rtl.png
429
- - vendor/assets/stylesheets/esp-ckeditor/skins/kama/images/dialog_sides.gif
430
- - vendor/assets/stylesheets/esp-ckeditor/skins/kama/images/dialog_sides.png
431
- - vendor/assets/stylesheets/esp-ckeditor/skins/kama/images/dialog_sides_rtl.png
432
- - vendor/assets/stylesheets/esp-ckeditor/skins/kama/images/mini.gif
433
- - vendor/assets/stylesheets/esp-ckeditor/skins/kama/images/noimage.png
434
- - vendor/assets/stylesheets/esp-ckeditor/skins/kama/images/sprites.png
435
- - vendor/assets/stylesheets/esp-ckeditor/skins/kama/images/sprites_ie6.png
436
- - vendor/assets/stylesheets/esp-ckeditor/skins/kama/images/toolbar_start.gif
437
- - vendor/assets/stylesheets/esp-ckeditor/skins/kama/mainui.css
438
- - vendor/assets/stylesheets/esp-ckeditor/skins/kama/menu.css
439
- - vendor/assets/stylesheets/esp-ckeditor/skins/kama/panel.css
440
- - vendor/assets/stylesheets/esp-ckeditor/skins/kama/presets.css
441
- - vendor/assets/stylesheets/esp-ckeditor/skins/kama/reset.css
442
- - vendor/assets/stylesheets/esp-ckeditor/skins/kama/richcombo.css
443
- - vendor/assets/stylesheets/esp-ckeditor/skins/kama/skin.js
444
- - vendor/assets/stylesheets/esp-ckeditor/skins/kama/templates.css
445
- - vendor/assets/stylesheets/esp-ckeditor/skins/kama/toolbar.css
453
+ - vendor/assets/javascripts/esp-ckeditor/skins/kama/dialog.css
454
+ - vendor/assets/javascripts/esp-ckeditor/skins/kama/editor.css
455
+ - vendor/assets/javascripts/esp-ckeditor/skins/kama/elementspath.css
456
+ - vendor/assets/javascripts/esp-ckeditor/skins/kama/icons.css
457
+ - vendor/assets/javascripts/esp-ckeditor/skins/kama/icons.png
458
+ - vendor/assets/javascripts/esp-ckeditor/skins/kama/icons_rtl.png
459
+ - vendor/assets/javascripts/esp-ckeditor/skins/kama/images/dialog_sides.gif
460
+ - vendor/assets/javascripts/esp-ckeditor/skins/kama/images/dialog_sides.png
461
+ - vendor/assets/javascripts/esp-ckeditor/skins/kama/images/dialog_sides_rtl.png
462
+ - vendor/assets/javascripts/esp-ckeditor/skins/kama/images/mini.gif
463
+ - vendor/assets/javascripts/esp-ckeditor/skins/kama/images/noimage.png
464
+ - vendor/assets/javascripts/esp-ckeditor/skins/kama/images/sprites.png
465
+ - vendor/assets/javascripts/esp-ckeditor/skins/kama/images/sprites_ie6.png
466
+ - vendor/assets/javascripts/esp-ckeditor/skins/kama/images/toolbar_start.gif
467
+ - vendor/assets/javascripts/esp-ckeditor/skins/kama/mainui.css
468
+ - vendor/assets/javascripts/esp-ckeditor/skins/kama/menu.css
469
+ - vendor/assets/javascripts/esp-ckeditor/skins/kama/panel.css
470
+ - vendor/assets/javascripts/esp-ckeditor/skins/kama/presets.css
471
+ - vendor/assets/javascripts/esp-ckeditor/skins/kama/reset.css
472
+ - vendor/assets/javascripts/esp-ckeditor/skins/kama/richcombo.css
473
+ - vendor/assets/javascripts/esp-ckeditor/skins/kama/skin.js
474
+ - vendor/assets/javascripts/esp-ckeditor/skins/kama/templates.css
475
+ - vendor/assets/javascripts/esp-ckeditor/skins/kama/toolbar.css
446
476
  homepage: http://github.com/openteam-esp/esp-ckeditor
447
477
  licenses: []
448
478
  metadata: {}
@@ -1,4 +0,0 @@
1
- # desc "Explaining what the task does"
2
- # task :esp-ckeditor do
3
- # # Task goes here
4
- # end