<NME> app.js
<BEF> var script = document.getElementById('start');
var isIE8 = script && script.getAttribute('data-browser') === 'ie8';

var jqueryLink = isIE8 ? '//code.jquery.com/jquery-1.11.3' : '//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.4/jquery';
require.config({
  baseUrl: 'src/js',
  paths: {
    jquery: jqueryLink,
    materialize: '../materialize/materialize',
    lang: '../../lang/summernote-it-IT'
  },
  shim: {
    bootstrap: ['jquery'],
    lang: ['jquery']
  },
  packages: [{
    name: 'summernote',
    main: 'summernote',
    location: './'
  }]
});

require(['jquery', 'summernote'], function ($) {
  var requireByPromise = function (paths) {
    return $.Deferred(function (deferred) {
      require(paths, function () {
        deferred.resolve.apply(this, arguments);
      });
    });
  };

  var promise = $.Deferred();
  // editor type setting
  switch ($('script[data-editor-type]').data('editor-type')) {
    case 'lite':
      promise = requireByPromise(['summernote/lite/settings']);
      break;
    case 'bs3':
      promise = requireByPromise(['materialize', 'summernote/bs3/settings']).then(function () {
        return requireByPromise(['lang']);
      });
      break;
  }

  promise.then(function () {
    // initialize summernote
    $(document).ready(function() {
        $('.materialnote').summernote({
          height: 300,
          lang: 'it-IT',
          toolbar: [
              // [groupName, [list of button]]
              ['style', ['bold', 'italic', 'underline', 'clear']],
              ['font', ['fontname', 'color', 'strikethrough', 'superscript', 'subscript']],
              ['fontsize', ['fontsize']],
              ['para', ['ul', 'ol', 'paragraph', 'paragraphAlignLeft', 'paragraphAlignRight', 'paragraphAlignCenter', 'paragraphAlignFull', 'paragraphOutdent', 'paragraphIndent']],
              ['height', ['height']],
              ['insert', ['picture', 'link', 'video', 'table', 'hr']],
              ['misc', ['fullscreen', 'codeview', 'undo', 'redo', 'help']]
            ]
        });
    });
  });
});
                    ['font', ['fontname', 'color', 'strikethrough', 'superscript', 'subscript']],
                    ['fontsize', ['fontsize']],
                    ['para', ['ul', 'ol', 'paragraph', 'paragraphAlignLeft', 'paragraphAlignRight',
                        'paragraphAlignCenter', 'paragraphAlignFull', 'paragraphOutdent', 'paragraphIndent']],
                    ['height', ['height']],
                    ['materialize', ['materializeCard']],
                    ['insert', ['picture', 'link', 'video', 'table', 'hr']],
                    ['misc', ['fullscreen', 'codeview', 'undo', 'redo', 'help']]
                ]
            });
        });

        // hack to make waves work on this demo
        Waves.displayEffect();
    });
});

<MSG> minor updates

<DFF> @@ -1,64 +1,64 @@
 var script = document.getElementById('start');
 var isIE8 = script && script.getAttribute('data-browser') === 'ie8';
-
 var jqueryLink = isIE8 ? '//code.jquery.com/jquery-1.11.3' : '//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.4/jquery';
+
 require.config({
-  baseUrl: 'src/js',
-  paths: {
-    jquery: jqueryLink,
-    materialize: '../materialize/materialize',
-    lang: '../../lang/summernote-it-IT'
-  },
-  shim: {
-    bootstrap: ['jquery'],
-    lang: ['jquery']
-  },
-  packages: [{
-    name: 'summernote',
-    main: 'summernote',
-    location: './'
-  }]
+    baseUrl: 'src/js',
+    paths: {
+        jquery: jqueryLink,
+        materialize: '../materialize/materialize',
+        lang: '../../lang/summernote-it-IT'
+    },
+    shim: {
+        bootstrap: ['jquery'],
+        lang: ['jquery']
+    },
+    packages: [{
+        name: 'summernote',
+        main: 'summernote',
+        location: './'
+    }]
 });
 
 require(['jquery', 'summernote'], function ($) {
-  var requireByPromise = function (paths) {
-    return $.Deferred(function (deferred) {
-      require(paths, function () {
-        deferred.resolve.apply(this, arguments);
-      });
-    });
-  };
+    var requireByPromise = function (paths) {
+        return $.Deferred(function (deferred) {
+            require(paths, function () {
+                deferred.resolve.apply(this, arguments);
+            });
+        });
+    };
+
+    var promise = $.Deferred();
 
-  var promise = $.Deferred();
-  // editor type setting
-  switch ($('script[data-editor-type]').data('editor-type')) {
-    case 'lite':
-      promise = requireByPromise(['summernote/lite/settings']);
-      break;
-    case 'bs3':
-      promise = requireByPromise(['materialize', 'summernote/bs3/settings']).then(function () {
-        return requireByPromise(['lang']);
-      });
-      break;
-  }
+    // editor type setting
+    switch ($('script[data-editor-type]').data('editor-type')) {
+        case 'lite':
+        promise = requireByPromise(['summernote/lite/settings']);
+        break;
+        case 'materialize':
+        promise = requireByPromise(['materialize', 'summernote/bs3/settings']).then(function () {
+            return requireByPromise(['lang']);
+        });
+        break;
+    }
 
-  promise.then(function () {
-    // initialize summernote
-    $(document).ready(function() {
+    promise.then(function () {
+        // initialize materialNote
         $('.materialnote').summernote({
-          height: 300,
-          lang: 'it-IT',
-          toolbar: [
-              // [groupName, [list of button]]
-              ['style', ['bold', 'italic', 'underline', 'clear']],
-              ['font', ['fontname', 'color', 'strikethrough', 'superscript', 'subscript']],
-              ['fontsize', ['fontsize']],
-              ['para', ['ul', 'ol', 'paragraph', 'paragraphAlignLeft', 'paragraphAlignRight', 'paragraphAlignCenter', 'paragraphAlignFull', 'paragraphOutdent', 'paragraphIndent']],
-              ['height', ['height']],
-              ['insert', ['picture', 'link', 'video', 'table', 'hr']],
-              ['misc', ['fullscreen', 'codeview', 'undo', 'redo', 'help']]
+            height: 300,
+            lang: 'it-IT',
+            toolbar: [
+                // [groupName, [list of button]]
+                ['style', ['bold', 'italic', 'underline', 'clear']],
+                ['font', ['fontname', 'color', 'strikethrough', 'superscript', 'subscript']],
+                ['fontsize', ['fontsize']],
+                ['para', ['ul', 'ol', 'paragraph', 'paragraphAlignLeft', 'paragraphAlignRight',
+                    'paragraphAlignCenter', 'paragraphAlignFull', 'paragraphOutdent', 'paragraphIndent']],
+                ['height', ['height']],
+                ['insert', ['picture', 'link', 'video', 'table', 'hr']],
+                ['misc', ['fullscreen', 'codeview', 'undo', 'redo', 'help']]
             ]
         });
     });
-  });
 });

minor updates