code: function (editor, size) {
        var toolbars = [], settings = editor.settings;
  
        var addToolbar = function (items) {
          if (items) {
            toolbars.push(createToolbar(editor, items, size));
            return true;
          }
        };
  
        // Convert toolbar array to multiple options
        if (Tools.isArray(settings.toolbar)) {
          // Empty toolbar array is the same as a disabled toolbar
          if (settings.toolbar.length === 0) {
            return;
          }
  
          Tools.each(settings.toolbar, function (toolbar, i) {
            settings["toolbar" + (i + 1)] = toolbar;
          });
  
          delete settings.toolbar;
        }
  
        // Generate toolbar<n>
        for (var i = 1; i < 10; i++) {
          if (!addToolbar(settings["toolbar" + i])) {
            break;
          }
        }
  
        // Generate toolbar or default toolbar unless it's disabled
        if (!toolbars.length && settings.toolbar !== false) {
          addToolbar(settings.toolbar || defaultToolbar);
        }
  
        if (toolbars.length) {
          return {
            type: 'panel',
            layout: 'stack',
            classes: "toolbar-grp",
            ariaRoot: true,
            ariaRemember: true,
            items: toolbars
          };
        }
      }
docs: Creates the toolbars from config and returns a toolbar array.
  
  @param {String} size Optional toolbar item size.
  @return {Array} Array with toolbars.