Permalink
Browse files

Add a compact build of ckeditor as CKEDITOR name

  • Loading branch information...
1 parent 7b9e782 commit e65e35112ea2780a57f1791a315ef0d7f08b5755 Yaroslaff Fedin committed May 20, 2011
@@ -1,17 +1,17 @@
/*
---
-script: CKEditor
+script: CKEDITOR.Basepath
-description: Defines the {@link CKEDITOR} object
+description: Defines the CKEditor base path to make it tick
author: Frederico Knabben
license: http://ckeditor.com/license
provides:
- - CKEditor
+ - CKEDITOR.Basepath
...
*/
-if (!window.CKEDITOR_BASEPATH) window.CKEDITOR_BASEPATH = '/javascripts/mootools-ckeditor/Source/'
+if (!window.CKEDITOR_BASEPATH) window.CKEDITOR_BASEPATH = '/javascripts/mootools-ckeditor/Source/';
@@ -0,0 +1,55 @@
+/*
+---
+
+script: CKEDITOR
+
+description: A compact build of ckeditor that includes only the reasonable features and one skin/language
+
+author: Frederico Knabben
+
+license: http://ckeditor.com/license
+
+requires:
+ - core._bootstrap
+ - skins.ias.skin
+ - lang.en
+ - themes.default.theme
+ - plugins.basicstyles.plugin
+ - plugins.button.plugin
+ - plugins.clipboard.plugin
+ - plugins.contextmenu.plugin
+ - plugins.enterkey.plugin
+ - plugins.htmldataprocessor.plugin
+ - plugins.iframe.plugin
+ - plugins.indent.plugin
+ - plugins.link.plugin
+ - plugins.list.plugin
+ - plugins.pastefromword.plugin
+ - plugins.pastetext.plugin
+ - plugins.removeformat.plugin
+ - plugins.stylescombo.plugin
+ - plugins.tab.plugin
+ - plugins.toolbar.plugin
+ - plugins.wysiwygarea.plugin
+ - plugins.autogrow.plugin
+ - plugins.styles.plugin
+ - plugins.dialog.plugin
+ - plugins.menu.plugin
+ - plugins.fakeobjects.plugin
+ - plugins.domiterator.plugin
+ - plugins.richcombo.plugin
+ - plugins.editingblock.plugin
+ - plugins.dialogui.plugin
+ - plugins.dialog.plugin
+ - plugins.keystrokes.plugin
+ - plugins.htmlwriter.plugin
+ - plugins.selection.plugin
+ - plugins.floatpanel.plugin
+ - plugins.listblock.plugin
+ - plugins.panel.plugin
+
+provides:
+ - CKEDITOR
+
+...
+*/
@@ -11,7 +11,7 @@ author: Frederico Knabben
license: http://ckeditor.com/license
requires:
- - CKEditor
+ - CKEDITOR.Basepath
provides:
- core.ckeditor_base
@@ -11,6 +11,7 @@ license: http://ckeditor.com/license
requires:
- core.config
+ - core.dom.range
- core.plugins
provides:
View
@@ -245,6 +245,7 @@ sources:
- "Source/skins/kama/skin.js"
- "Source/skins/office2003/skin.js"
- "Source/skins/v2/skin.js"
- - "Source/skins/ias/skin.js"
- "Source/themes/default/theme.js"
- - "Source/CKEditor.js"
+ - "Source/CKEDITOR.Basepath.js"
+ - "Source/CKEDITOR.js"
+ - "Source/skins/ias/skin.js"
View
@@ -36,7 +36,9 @@ def pack!
writing
end.select {|a| a}
- files << "Source/CKEditor.js"
+ files << "Source/CKEDITOR.Basepath.js"
+ files << "Source/CKEDITOR.js"
+ files << "Source/skins/ias/skin.js"
puts "#{files.size} files packed"
File.open('package.yml', 'w').write(package % files.map {|f| %Q|\n - "#{f.to_s}"|}.join(""))
@@ -65,7 +67,7 @@ def transform(path)
elsif structure.match "/ui"
"core.tools"
elsif structure.match "base"
- "CKEditor"
+ "CKEDITOR.Basepath"
end
when "core.dom"
if structure.match "walker"
@@ -79,6 +81,8 @@ def transform(path)
deps << "plugins.dialog.plugin"
elsif structure.match "htmlwriter"
deps << "core.htmlparser"
+ elsif structure.match "domiterator"
+ deps << "core.dom.range"
elsif structure.match "selection"
deps << "core.dom.rangelist"
end

0 comments on commit e65e351

Please sign in to comment.