/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ make.command = { _data: { 'backcolor': function () { return make.colors.any() }, 'bold': null, 'contentReadOnly': function () { return random.bool() }, 'copy': null, 'createlink': function () { return make.uri.any() }, 'cut': null, 'decreasefontsize': null, 'delete': null, 'enableInlineTableEditing': function () { return random.bool() }, 'enableObjectResizing': function () { return random.bool() }, 'fontname': function () { return make.font.family() }, 'fontsize': function () { return make.font.relativeSize() }, 'formatblock': ['p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'ol', 'ul', 'pre', 'address', 'blockquote', 'dl', 'div'], 'forwarddelete': null, 'forecolor': function () { return make.colors.any() }, 'gethtml': null, 'heading': null, 'hilitecolor': function () { return make.colors.any() }, 'increasefontsize': null, 'indent': null, 'insertBrOnReturn': function () { return random.bool() }, 'inserthorizontalrule': null, // 'inserthtml': function () { }, 'insertlinebreak': null, 'insertimage': function () { return make.uri.any() }, 'insertorderedlist': null, 'insertparagraph': null, 'inserttext': function () { return make.text.any() }, 'insertunorderedlist': null, 'italic': null, 'justifycenter': null, 'justifyfull': null, 'justifyleft': null, 'justifyright': null, 'outdent': null, 'paste': null, 'redo': null, 'removeformat': null, 'selectall': null, 'strikethrough': null, 'styleWithCSS': function () { return random.bool() }, 'subscript': null, 'superscript': null, 'underline': null, 'undo': null, 'unlink': null }, name: function () { return random.item(Object.keys(this._data)) }, value: function (name) { return random.pick(this._data[name]) } }