Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Add a compact build of ckeditor as CKEDITOR name

  • Loading branch information...
commit e65e35112ea2780a57f1791a315ef0d7f08b5755 1 parent 7b9e782
authored May 20, 2011
8  Source/CKEditor.js → Source/CKEDITOR.Basepath.js
... ...
@@ -1,17 +1,17 @@
1 1
 /*
2 2
 ---
3 3
 
4  
-script: CKEditor
  4
+script: CKEDITOR.Basepath
5 5
 
6  
-description:  Defines the {@link CKEDITOR} object
  6
+description:  Defines the CKEditor base path to make it tick
7 7
 
8 8
 author: Frederico Knabben
9 9
 
10 10
 license: http://ckeditor.com/license
11 11
 
12 12
 provides:
13  
-  - CKEditor
  13
+  - CKEDITOR.Basepath
14 14
 
15 15
 ...
16 16
 */
17  
-if (!window.CKEDITOR_BASEPATH) window.CKEDITOR_BASEPATH = '/javascripts/mootools-ckeditor/Source/'
  17
+if (!window.CKEDITOR_BASEPATH) window.CKEDITOR_BASEPATH = '/javascripts/mootools-ckeditor/Source/';
55  Source/CKEditor.Compact.js
... ...
@@ -0,0 +1,55 @@
  1
+/*
  2
+---
  3
+
  4
+script: CKEDITOR
  5
+
  6
+description:  A compact build of ckeditor that includes only the reasonable features and one skin/language
  7
+
  8
+author: Frederico Knabben
  9
+
  10
+license: http://ckeditor.com/license
  11
+
  12
+requires:
  13
+  - core._bootstrap
  14
+  - skins.ias.skin
  15
+  - lang.en
  16
+  - themes.default.theme
  17
+  - plugins.basicstyles.plugin
  18
+  - plugins.button.plugin
  19
+  - plugins.clipboard.plugin
  20
+  - plugins.contextmenu.plugin
  21
+  - plugins.enterkey.plugin
  22
+  - plugins.htmldataprocessor.plugin
  23
+  - plugins.iframe.plugin
  24
+  - plugins.indent.plugin
  25
+  - plugins.link.plugin
  26
+  - plugins.list.plugin
  27
+  - plugins.pastefromword.plugin
  28
+  - plugins.pastetext.plugin
  29
+  - plugins.removeformat.plugin
  30
+  - plugins.stylescombo.plugin
  31
+  - plugins.tab.plugin
  32
+  - plugins.toolbar.plugin
  33
+  - plugins.wysiwygarea.plugin
  34
+  - plugins.autogrow.plugin
  35
+  - plugins.styles.plugin
  36
+  - plugins.dialog.plugin
  37
+  - plugins.menu.plugin
  38
+  - plugins.fakeobjects.plugin
  39
+  - plugins.domiterator.plugin
  40
+  - plugins.richcombo.plugin
  41
+  - plugins.editingblock.plugin
  42
+  - plugins.dialogui.plugin
  43
+  - plugins.dialog.plugin
  44
+  - plugins.keystrokes.plugin
  45
+  - plugins.htmlwriter.plugin
  46
+  - plugins.selection.plugin
  47
+  - plugins.floatpanel.plugin
  48
+  - plugins.listblock.plugin
  49
+  - plugins.panel.plugin
  50
+  
  51
+provides:
  52
+  - CKEDITOR
  53
+
  54
+...
  55
+*/
2  Source/core/ckeditor_base.js
@@ -11,7 +11,7 @@ author: Frederico Knabben
11 11
 license: http://ckeditor.com/license
12 12
 
13 13
 requires: 
14  
-  - CKEditor
  14
+  - CKEDITOR.Basepath
15 15
 
16 16
 provides: 
17 17
   - core.ckeditor_base
1  Source/plugins/domiterator/plugin.js
@@ -11,6 +11,7 @@ license: http://ckeditor.com/license
11 11
 
12 12
 requires: 
13 13
   - core.config
  14
+  - core.dom.range
14 15
   - core.plugins
15 16
 
16 17
 provides: 
5  package.yml
@@ -245,6 +245,7 @@ sources:
245 245
  - "Source/skins/kama/skin.js"
246 246
  - "Source/skins/office2003/skin.js"
247 247
  - "Source/skins/v2/skin.js"
248  
- - "Source/skins/ias/skin.js"
249 248
  - "Source/themes/default/theme.js"
250  
- - "Source/CKEditor.js"
  249
+ - "Source/CKEDITOR.Basepath.js"
  250
+ - "Source/CKEDITOR.js"
  251
+ - "Source/skins/ias/skin.js"
8  packager.rb
@@ -36,7 +36,9 @@ def pack!
36 36
       writing
37 37
     end.select {|a| a}
38 38
     
39  
-    files << "Source/CKEditor.js"
  39
+    files << "Source/CKEDITOR.Basepath.js"
  40
+    files << "Source/CKEDITOR.js"
  41
+    files << "Source/skins/ias/skin.js"
40 42
     
41 43
     puts "#{files.size} files packed"
42 44
     File.open('package.yml', 'w').write(package % files.map {|f| %Q|\n - "#{f.to_s}"|}.join(""))
@@ -65,7 +67,7 @@ def transform(path)
65 67
           elsif structure.match "/ui"
66 68
             "core.tools"
67 69
           elsif structure.match "base"
68  
-            "CKEditor"
  70
+            "CKEDITOR.Basepath"
69 71
           end
70 72
         when "core.dom"
71 73
           if structure.match "walker"
@@ -79,6 +81,8 @@ def transform(path)
79 81
             deps << "plugins.dialog.plugin"
80 82
           elsif structure.match "htmlwriter"
81 83
             deps << "core.htmlparser"
  84
+          elsif structure.match "domiterator"
  85
+            deps << "core.dom.range"
82 86
           elsif structure.match "selection"
83 87
             deps << "core.dom.rangelist"
84 88
           end

0 notes on commit e65e351

Please sign in to comment.
Something went wrong with that request. Please try again.