{"_id":"@bodonkey/rich-text-enhancement","_rev":"2-d6884abb75885892e187a6d86a7a792e","name":"@bodonkey/rich-text-enhancement","description":"A set of extensions to add functionality to the rich-text-editor.","dist-tags":{"latest":"1.0.2"},"versions":{"1.0.0":{"name":"@bodonkey/rich-text-enhancement","version":"1.0.0","author":{"name":"Apostrophe Technologies"},"license":"MIT","_id":"@bodonkey/rich-text-enhancement@1.0.0","maintainers":[{"name":"bodonkey","email":"robert@robertmeans.net"}],"homepage":"https://github.com/bodonkey/rich-text-enhancement#readme","bugs":{"url":"https://github.com/bodonkey/rich-text-enhancement/issues"},"dist":{"shasum":"7893443bea05f507e22ca3443bae3fd3b8071709","tarball":"https://registry.npmjs.org/@bodonkey/rich-text-enhancement/-/rich-text-enhancement-1.0.0.tgz","fileCount":17,"integrity":"sha512-1roqRuI4dh9m8mZcLDokAQm+crK93SGAmPbORW3sRltO9dKjfbZuZxL9U1SLR2mPEqTpcatZV17P2AVKIo6KVA==","signatures":[{"sig":"MEQCIGNGkAG5naBYPvSpL0wxVF/gk6Y3yr+qqFkLNItUy4nsAiBL/YvOQe7r30FUbZeTeR/6KGIs+LTK5Ytl3wcli5C5kg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":62955},"main":"index.js","gitHead":"bd6f6bac58362c25b66103fbcc1a1813a1665725","scripts":{"lint":"npm run eslint","test":"npm run lint && mocha","eslint":"eslint --ext .js,.vue ."},"_npmUser":{"name":"bodonkey","email":"robert@robertmeans.net"},"repository":{"url":"git+https://github.com/bodonkey/rich-text-enhancement.git","type":"git"},"_npmVersion":"9.8.1","description":"A set of extensions to add functionality to the rich-text-editor.","directories":{},"_nodeVersion":"18.18.0","dependencies":{"@tiptap/extension-color":"^2.2.4","@tiptap/extension-text-style":"^2.2.4","@tiptap/extension-font-family":"^2.2.4"},"_hasShrinkwrap":false,"devDependencies":{"mocha":"^10.2.0","eslint":"^8.55.0","stylelint":"^15.11.0","apostrophe":"^3.60.0","eslint-plugin-vue":"^9.19.2","vue-eslint-parser":"^9.3.2","eslint-plugin-node":"^11.1.0","eslint-plugin-import":"^2.29.0","eslint-plugin-promise":"^6.1.1","eslint-config-standard":"^17.1.0","eslint-config-apostrophe":"^4.2.0","stylelint-config-apostrophe":"^3.0.0"},"_npmOperationalInternal":{"tmp":"tmp/rich-text-enhancement_1.0.0_1709316642415_0.6719017861610728","host":"s3://npm-registry-packages"}},"1.0.1":{"name":"@bodonkey/rich-text-enhancement","version":"1.0.1","author":{"name":"Apostrophe Technologies"},"license":"MIT","_id":"@bodonkey/rich-text-enhancement@1.0.1","maintainers":[{"name":"bodonkey","email":"robert@robertmeans.net"}],"homepage":"https://github.com/bodonkey/rich-text-enhancement#readme","bugs":{"url":"https://github.com/bodonkey/rich-text-enhancement/issues"},"dist":{"shasum":"1865039a19bfa32d7cbbb4ba74cf04c7670c5a0c","tarball":"https://registry.npmjs.org/@bodonkey/rich-text-enhancement/-/rich-text-enhancement-1.0.1.tgz","fileCount":17,"integrity":"sha512-fryvb+kw797yL33WFT3svO3j39aYt/hmCjacJH3oOEt1FBa1pvodmu7mwX07igCd9pQ0RpCDH2x27+wqhl78fQ==","signatures":[{"sig":"MEUCICVdQxyY80StSmioFGO1oEOscrjwLdFtvclct449nkEpAiEAh/Ieeag2WTJ+JPMFLDBCH4BkMDdlxJnSGdO/X9pn7Xs=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":64305},"main":"index.js","gitHead":"15c4811848a61afa807961ca3e7b4852e04bbcf6","scripts":{"lint":"npm run eslint","test":"npm run lint && mocha","eslint":"eslint --ext .js,.vue ."},"_npmUser":{"name":"bodonkey","email":"robert@robertmeans.net"},"repository":{"url":"git+https://github.com/bodonkey/rich-text-enhancement.git","type":"git"},"_npmVersion":"9.8.1","description":"A set of extensions to add functionality to the rich-text-editor.","directories":{},"_nodeVersion":"18.18.0","dependencies":{"@tiptap/extension-color":"^2.2.4","@tiptap/extension-text-style":"^2.2.4","@tiptap/extension-font-family":"^2.2.4"},"_hasShrinkwrap":false,"devDependencies":{"mocha":"^10.2.0","eslint":"^8.55.0","stylelint":"^15.11.0","apostrophe":"^3.60.0","eslint-plugin-vue":"^9.19.2","vue-eslint-parser":"^9.3.2","eslint-plugin-node":"^11.1.0","eslint-plugin-import":"^2.29.0","eslint-plugin-promise":"^6.1.1","eslint-config-standard":"^17.1.0","eslint-config-apostrophe":"^4.2.0","stylelint-config-apostrophe":"^3.0.0"},"_npmOperationalInternal":{"tmp":"tmp/rich-text-enhancement_1.0.1_1709386884408_0.5870653878166299","host":"s3://npm-registry-packages"}},"1.0.2":{"name":"@bodonkey/rich-text-enhancement","version":"1.0.2","description":"A set of extensions to add functionality to the rich-text-editor.","main":"index.js","scripts":{"eslint":"eslint --ext .js,.vue .","lint":"npm run eslint","test":"npm run lint && mocha"},"repository":{"type":"git","url":"git+https://github.com/bodonkey/rich-text-enhancement.git"},"homepage":"https://github.com/bodonkey/rich-text-enhancement#readme","author":{"name":"Apostrophe Technologies"},"license":"MIT","devDependencies":{"apostrophe":"^3.60.0","eslint":"^8.55.0","eslint-config-apostrophe":"^4.2.0","eslint-config-standard":"^17.1.0","eslint-plugin-import":"^2.29.0","eslint-plugin-node":"^11.1.0","eslint-plugin-promise":"^6.1.1","eslint-plugin-vue":"^9.19.2","mocha":"^10.2.0","stylelint":"^15.11.0","stylelint-config-apostrophe":"^3.0.0","vue-eslint-parser":"^9.3.2"},"dependencies":{"@tiptap/extension-color":"^2.2.4","@tiptap/extension-font-family":"^2.2.4","@tiptap/extension-text-style":"^2.2.4"},"_id":"@bodonkey/rich-text-enhancement@1.0.2","gitHead":"b1727b73c84c04fb58c5f78f3903e2da41288931","bugs":{"url":"https://github.com/bodonkey/rich-text-enhancement/issues"},"_nodeVersion":"18.18.0","_npmVersion":"9.8.1","dist":{"integrity":"sha512-ptVeTmRfRpABmXD+/oNmEbB5euCBYgzQUL5I0powXWFurZIqduzBCDBBnbSV9PHsRkjkhz292b0aw06gn6Cp9g==","shasum":"7cba7a4af2b430257dac37877b0fc6a06ce4c306","tarball":"https://registry.npmjs.org/@bodonkey/rich-text-enhancement/-/rich-text-enhancement-1.0.2.tgz","fileCount":17,"unpackedSize":64487,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCtzeIjt6fwsyBm5+znR6wmZqWasR+XqzWBNt9njlMRsAIgYFlPHe3tOtbsdxNpIvzepT4dB+pj5r2B4gL5aAhJaAA="}]},"_npmUser":{"name":"bodonkey","email":"robert@robertmeans.net"},"directories":{},"maintainers":[{"name":"bodonkey","email":"robert@robertmeans.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/rich-text-enhancement_1.0.2_1720092581359_0.6920941000901688"},"_hasShrinkwrap":false}},"time":{"created":"2024-03-01T18:10:42.302Z","modified":"2024-07-04T11:29:41.762Z","1.0.0":"2024-03-01T18:10:42.764Z","1.0.1":"2024-03-02T13:41:24.660Z","1.0.2":"2024-07-04T11:29:41.578Z"},"maintainers":[{"name":"bodonkey","email":"robert@robertmeans.net"}],"author":{"name":"Apostrophe Technologies"},"repository":{"type":"git","url":"git+https://github.com/bodonkey/rich-text-enhancement.git"},"license":"MIT","homepage":"https://github.com/bodonkey/rich-text-enhancement#readme","bugs":{"url":"https://github.com/bodonkey/rich-text-enhancement/issues"},"readme":"<div align=\"center\">\n  <img src=\"https://raw.githubusercontent.com/apostrophecms/apostrophe/main/logo.svg\" alt=\"ApostropheCMS logo\" width=\"80\" height=\"80\">\n\n  <h1>Rich Text Enhancement</h1>\n  <p>\n    <a aria-label=\"Apostrophe logo\" href=\"https://docs.apostrophecms.org\">\n      <img src=\"https://img.shields.io/badge/MADE%20FOR%20ApostropheCMS-000000.svg?style=for-the-badge&logo=Apostrophe&labelColor=6516dd\">\n    </a>\n    <a aria-label=\"License\" href=\"https://github.com/apostrophecms/module-template/blob/main/LICENSE.md\">\n      <img alt=\"\" src=\"https://img.shields.io/static/v1?style=for-the-badge&labelColor=000000&label=License&message=MIT&color=3DA639\">\n    </a>\n  </p>\n</div>\n\nThis bundle of two extensions for adding colors and fonts to text in the rich text editor.\n\n## Installation\n\nTo install the module, use the command line to run this command in an Apostrophe project's root directory:\n\n``` bash\nnpm install @bodonkey/rich-text-enhancement\n```\n\n## Usage\n\nAdd the bundle and individual extensions in the `app.js` file:\n\n```javascript\nrequire('apostrophe')({\n  shortName: 'my-project',\n  bundles: [ '@bodonkey/rich-text-enhancement' ],\n  modules: {\n    'rich-text-color': {},\n    'rich-text-font': {}\n  }\n});\n```\n\nThese enhancements can then be added to the project-wide or individual area rich-text-widget options.\n\nPer-area example:\n``` javascript\n//...\nfields: {\n    add: {\n      main: {\n        type: 'area',\n        options: {\n         widgets: {\n            '@apostrophecms/rich-text': {\n              toolbar: [\n                'styles',\n                '|',\n                'bold',\n                'italic',\n                'strike',\n                'link',\n                '|',\n                'bulletList',\n                'orderedList',\n                'alignRight',\n                'highlight',\n                // add the color picker to the toolbar\n                'colorButton',\n                // add the font selector to the toolbar \n                'fontSelector'\n              ],\n              styles: [\n                {\n                  tag: 'p',\n                  label: 'Paragraph (P)'\n                },\n                {\n                  tag: 'h3',\n                  label: 'Heading 3 (H3)'\n                },\n                {\n                  tag: 'h3',\n                  label: 'Heading 3 (H3) - Custom',\n                  class: 'centered'\n                },\n                {\n                  tag: 'h4',\n                  label: 'Heading 4 (H4)'\n                }\n              ],\n              insert: [\n                'table',\n                'image'\n              ],\n              // Add font selection - these need to be made available \n              // from your stylesheet or system fonts\n              fonts: [\n                {\n                  label: 'Arial',\n                  value: 'Arial'\n                },\n                {\n                  label: 'Courier New',\n                  value: 'Courier New'\n                },\n                {\n                  label: 'Georgia',\n                  value: 'Georgia'\n                },\n                {\n                  label: 'Tahoma',\n                  value: 'Tahoma'\n                },\n                {\n                  label: 'Times New Roman',\n                  value: 'Times New Roman'\n                },\n                {\n                  label: 'Verdana',\n                  value: 'Verdana'\n                }\n              ]\n            }\n          }\n        }\n      }\n    }\n//...\n```\n\n![Screenshot of the two new enhancements added to the Rich Text Widget toolbar.](./images/screenshot.png)\n","readmeFilename":"README.md"}