Skip to content

Commit

Permalink
Add CKEditor plugin One Time Widget.
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian Neumann committed May 10, 2015
1 parent 46916c9 commit 7a2cff3
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGES
Expand Up @@ -3,6 +3,7 @@
+ Added Combined, Integer and Map field types.
+ Added core.Navigations setting which allows to specify the depth
of the main navigation.
+ Added CKEditor plugin One Time Widget.
- Changes:
+ Replaced TinyMCE with CKEditor.
+ Lock site data on access.
Expand Down
10 changes: 9 additions & 1 deletion Makefile
Expand Up @@ -22,7 +22,7 @@ MODULE_PROGRAMS=$(MODULES:%=go/bin/monsti-%)

all: monsti bcrypt example-module

monsti: modules dep-webshim
monsti: modules dep-webshim dep-onetimewidget

.PHONY: bcrypt
bcrypt:
Expand Down Expand Up @@ -114,6 +114,14 @@ clean:
rm dist/ -Rf
$(MAKE) -C example/monsti-example-module clean

dep-onetimewidget: static/lib/onetimewidget/
static/lib/onetimewidget/:
wget -nv https://github.com/chrneumann/onetimewidget/archive/master.zip
unzip -q master.zip
mkdir -p static/lib
mv onetimewidget-master static/lib/onetimewidget
rm master.zip

dep-webshim: static/lib/webshim/
static/lib/webshim/:
wget -nv https://github.com/aFarkas/webshim/archive/$(WEBSHIM_VERSION).zip
Expand Down
3 changes: 2 additions & 1 deletion static/js/editor.js
Expand Up @@ -12,10 +12,11 @@ var monsti = monsti || {};
defaultLanguage: monsti.session.locale,
removePlugins: 'maximize,stylescombo',
removeButtons: 'SpecialChar',
extraPlugins: 'autogrow,image2,showblocks',
extraPlugins: 'autogrow,image2,showblocks,onetimewidget',
autoGrow_minHeight: 250,
autoGrow_maxHeight: 600,
};
CKEDITOR.plugins.addExternal('onetimewidget', '/static/lib/onetimewidget/', 'plugin.js' );
})();

// addCKEditor adds an CKEditor for the textarea with the given id.
Expand Down

0 comments on commit 7a2cff3

Please sign in to comment.