File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ node_modules /
2+ bower_components /
Load Diff Large diffs are not rendered by default.
Original file line number Diff line number Diff line change 1+ # menuscontroller
2+
3+ A plugin that helps to handle and control tinymce' ; s menu bars, menus and menu items
Original file line number Diff line number Diff line change 1+ {
2+ "name" : " menuscontroller" ,
3+ "version" : " 0.1.0" ,
4+ "authors" : [
5+ " Rémi Becheras <rbecheras@sirap.fr>"
6+ ],
7+ "description" : " A plugin that helps to handle and control tinymce's menu bars, menus and menu items" ,
8+ "main" : " plugin.js" ,
9+ "keywords" : [
10+ " tinymce" ,
11+ " plugin" ,
12+ " menubar" ," menu" ," menuitem"
13+ ],
14+ "license" : " LGPL-2.1" ,
15+ "ignore" : [
16+ " **/.*" ,
17+ " node_modules" ,
18+ " bower_components" ,
19+ " test" ,
20+ " tests"
21+ ]
22+ }
Original file line number Diff line number Diff line change 1+
2+ module . exports = function ( grunt ) {
3+ require ( 'load-grunt-tasks' ) ( grunt ) ;
4+
5+ grunt . initConfig ( {
6+ jshint : {
7+ all : [ 'gruntfile.js' , 'plugin.js' ]
8+ } ,
9+ uglify : {
10+ dist : {
11+ files : {
12+ 'plugin.min.js' : [ 'plugin.js' ]
13+ }
14+ }
15+ } ,
16+ bump : {
17+ options : {
18+ files : [ 'package.json' , 'bower.json' ] ,
19+ updateConfigs : [ ] ,
20+ commit : true ,
21+ commitMessage : 'Release v%VERSION%' ,
22+ commitFiles : [ 'package.json' , 'bower.json' ] ,
23+ createTag : true ,
24+ tagName : 'v%VERSION%' ,
25+ tagMessage : 'Version %VERSION%' ,
26+ push : true ,
27+ pushTo : 'origin' ,
28+ gitDescribeOptions : '--tags --always --abbrev=1 --dirty=-d' ,
29+ globalReplace : false ,
30+ prereleaseName : false ,
31+ regExp : false
32+ }
33+ } ,
34+ } ) ;
35+
36+ grunt . registerTask ( 'default' , [ 'jshint' , 'uglify' ] ) ;
37+ } ;
Original file line number Diff line number Diff line change 1+ {
2+ "name" : " menuscontroller" ,
3+ "version" : " 0.1.0" ,
4+ "description" : " A plugin that helps to handle and control tinymce's menu bars, menus and menu items" ,
5+ "main" : " plugin.js" ,
6+ "devDependencies" : {
7+ "grunt" : " ^0.4.5" ,
8+ "grunt-bump" : " ^0.6.0" ,
9+ "grunt-contrib-jshint" : " ^0.11.3" ,
10+ "grunt-contrib-uglify" : " ^0.10.0" ,
11+ "load-grunt-tasks" : " ^3.3.0"
12+ },
13+ "scripts" : {
14+ "build" : " grunt" ,
15+ "test" : " echo \" Error: no test specified\" && exit 1"
16+ },
17+ "repository" : {
18+ "type" : " git" ,
19+ "url" : " git+https://github.com:rbecheras/menuscontroller.git"
20+ },
21+ "keywords" : [
22+ " tinymce" ,
23+ " plugin" ,
24+ " menubar" ," menu" ," menuitem"
25+ ],
26+ "author" : " Rémi Becheras <rbecheras@sirap.fr>" ,
27+ "license" : " LGPL-2.1" ,
28+ "bugs" : {
29+ "url" : " https://github.com/rbecheras/menuscontroller/issues"
30+ },
31+ "homepage" : " https://github.com/rbecheras/menuscontroller#readme"
32+ }
Original file line number Diff line number Diff line change 1+ /**
2+ * plugin.js
3+ *
4+ * Released under LGPL License.
5+ * Copyright (c) 2015 SIRAP SAS All rights reserved
6+ *
7+ * License: http://www.tinymce.com/license
8+ * Contributing: http://www.tinymce.com/contributing
9+ */
10+
11+ /*global tinymce:true */
12+
13+ tinymce . PluginManager . add ( 'menuscontroller' , function ( editor ) {
14+
15+ /**
16+ * @TODO
17+ * Write your plugin code here
18+ */
19+
20+ } ) ;
You can’t perform that action at this time.
0 commit comments