{"_id":"@brackson/strapi-code-editor-custom-field","_rev":"3-cc53868e21b24a2281c352599e957dbc","name":"@brackson/strapi-code-editor-custom-field","dist-tags":{"latest":"0.2.5"},"versions":{"0.2.2":{"name":"@brackson/strapi-code-editor-custom-field","version":"0.2.2","description":"Code editor plugin for strapi CMS. It uses the monaco editor (vscode).","strapi":{"name":"strapi-code-editor-custom-field","description":"Code editor plugin for strapi CMS. It uses the monaco editor (vscode).","kind":"plugin","displayName":"Code editor plugin"},"keywords":["strapi","@strapi","strapi plugin","strapi custom field","strapi code editor","strapi monaco editor","strapi vscode editor"],"peerDependencies":{"@strapi/strapi":"^4.6"},"dependencies":{"@monaco-editor/react":"^4.4.6","@strapi/design-system":"^1.6.2","@strapi/icons":"^1.6.2","monaco-editor":"^0.34.1","rxjs":"^7.8.0"},"devDependencies":{"@strapi/strapi":"^4.6.0","@types/react":"^18.0.27","@types/styled-components":"^5.1.26","prettier":"^2.8.3","react":"^18.2.0","react-dom":"^18.2.0","react-intl":"^6.2.7","typescript":"4.9.5"},"author":{"name":"Brandon Jackson","email":"brandonallenjackson@gmail.com","url":"https://github.com/brackson"},"repository":{"type":"git","url":"git+https://github.com/TomaszPilch/strapi-code-editor-custom-field.git"},"engines":{"node":">=14.19.1 <=18.x.x","npm":">=6.0.0"},"scripts":{"develop":"tsc -w","build":"tsc -p tsconfig.json"},"license":"MIT","gitHead":"409d150a63fd277d664b9b1db7a02af20ae36b1c","bugs":{"url":"https://github.com/TomaszPilch/strapi-code-editor-custom-field/issues"},"homepage":"https://github.com/TomaszPilch/strapi-code-editor-custom-field#readme","_id":"@brackson/strapi-code-editor-custom-field@0.2.2","_nodeVersion":"18.14.0","_npmVersion":"9.3.1","dist":{"integrity":"sha512-ZqM62Yg1jCAEZrFMQaP2KLSba4X0lX1nSLnK5Be55Sjf3utW4BSQwohsNTvCIhMueCObYdeBUwV5SpF1pFVpHw==","shasum":"6c3aa9d7aab452430f6838fe6103266e1ace4291","tarball":"https://registry.npmjs.org/@brackson/strapi-code-editor-custom-field/-/strapi-code-editor-custom-field-0.2.2.tgz","fileCount":8,"unpackedSize":137788,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCv8i2/dGfDvFltg+o+cmDX43eoV7Wf1lm8bATlcyDRQgIgYYm52gnugyTSTQr2oh+rE8cge8/Ujcfp5HJ2L34W4aA="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj4b7IACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoZuQ//WTJrCFwNUVwrO7f0e36HGkhx3vAHsWPz9r4fsmidKfOllRDu\r\nGDJDt86dz3UajCDeMtG3DmaoZt+whwNy7djsmniT3EqDLLhuKkGWd3C6jEcF\r\nugyKzGxsqMbZNviaWSSpM4zRvjOoNUxfHbA91X6YGJQj7vbMdgurHINo1RiE\r\nphbZXduY+koGTEl6V8Zzxa2OQL6EovlK7MYv0VVWEUbmmt338W8ia1OfQ3hD\r\nayuitTYAFsLfEubTHEGEqrobaf4pG/WSPFYY6B0WfMciBNpN9laz/F2+MoAy\r\nmActyrOs+jgxB+jXVz1hPwdT+abFIR+2OOiP4bGPZ+khwZKHxm1YEX3JBgGo\r\nmGiEaeucVlz9Hr9Zrn6KJGcDQb3Dyc9NWftcwDNaiZfOxgUS+EpP1paYwRQO\r\npszktlEmK0GxqWLdu+88qXFZfA4Ty/6Ela7NhFVsg9WhjTBeSKyVysK5/Fkr\r\nYpOwtrmxaHP0wsjxDrl7oFAVg1madEetYrxbMh5cCWbR8NRIYP3SfbQorrFb\r\nEKvLEOGbSqLAkj8k7AWuHfIPkA+aNuuVVtqYnWiDibmLwfi6k1rYQ5Ynqwgf\r\nmkz8LS/zxYNL1qYoUkhoUyWta0raZSaLcfHune2PeeKsEED6HQ1J1A4ANK6e\r\nHXm0P96JViulfa15Yw/+4XJIWuq+tVZIHKs=\r\n=vSjB\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"brackson","email":"brandonallenjackson@gmail.com"},"directories":{},"maintainers":[{"name":"brackson","email":"brandonallenjackson@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/strapi-code-editor-custom-field_0.2.2_1675738824474_0.17649579182773234"},"_hasShrinkwrap":false},"0.2.3":{"name":"@brackson/strapi-code-editor-custom-field","version":"0.2.3","description":"Code editor plugin for strapi CMS. It uses the monaco editor (vscode).","strapi":{"name":"strapi-code-editor-custom-field","description":"Code editor plugin for strapi CMS. It uses the monaco editor (vscode).","kind":"plugin","displayName":"Code editor plugin"},"keywords":["strapi","@strapi","strapi plugin","strapi custom field","strapi code editor","strapi monaco editor","strapi vscode editor"],"peerDependencies":{"@strapi/strapi":"^4.6"},"dependencies":{"@monaco-editor/react":"^4.4.6","@strapi/design-system":"^1.6.2","@strapi/icons":"^1.6.2","monaco-editor":"^0.34.1","rxjs":"^7.8.0"},"devDependencies":{"@strapi/strapi":"^4.6.0","@types/react":"^18.0.27","@types/styled-components":"^5.1.26","prettier":"^2.8.3","react":"^18.2.0","react-dom":"^18.2.0","react-intl":"^6.2.7","typescript":"4.9.5"},"author":{"name":"Brandon Jackson","email":"brandonallenjackson@gmail.com","url":"https://github.com/brackson"},"repository":{"type":"git","url":"git+https://github.com/TomaszPilch/strapi-code-editor-custom-field.git"},"engines":{"node":">=14.19.1 <=18.x.x","npm":">=6.0.0"},"scripts":{"develop":"tsc -w","build":"tsc -p tsconfig.json"},"license":"MIT","gitHead":"409d150a63fd277d664b9b1db7a02af20ae36b1c","bugs":{"url":"https://github.com/TomaszPilch/strapi-code-editor-custom-field/issues"},"homepage":"https://github.com/TomaszPilch/strapi-code-editor-custom-field#readme","_id":"@brackson/strapi-code-editor-custom-field@0.2.3","_nodeVersion":"18.14.0","_npmVersion":"9.3.1","dist":{"integrity":"sha512-6p+VuAIYlOhubKxjw7K/1YTDSsUws4UYH/8rTKAU9Z49tgDQ0sfUWDYEb+6Vez+QID7SBJzAPjsA79oH2hZkbA==","shasum":"57b3d374e76d8ab7ab2c123493decaecd4100f9e","tarball":"https://registry.npmjs.org/@brackson/strapi-code-editor-custom-field/-/strapi-code-editor-custom-field-0.2.3.tgz","fileCount":74,"unpackedSize":312400,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGuKnQhYecmv3nufJ30G8vI4iiIlnsKH3Yn14D4H1W4RAiEA2MlMdhwLQaVMz7bZEnm8b/E5XB7lvxv097+1ZGfAmFM="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj4cBJACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrBiA/9HYFq0rnIZB1EPxuBPSshVZLCVGclLLvLjZGjGuLMh1PYj0uu\r\nTcYK1+I+e8ocWnoG4l2sQz/oM5ltkUtlYlnK1osZ/fwLrkisd2bddFX9zRtd\r\n18fOGCw+AWfOwNEWOR6VLDAtCAimsynmnpsdRYpPEUwr77C2/amT6HNsCkaf\r\nxOCIdUwO3AkztMRjE8rhNzOLakSzlSnkx4AeKFQy6qXzj7+JYfBndjCVaaKG\r\nSkLHOC/Yzuzmb5FeMEic/G8UKosqSBQZPsVzr+Bgpf26jemC+vsM48nr36N9\r\nJyMPzxNC4C+TLRrTJkaxc4CFy6eqbn/YMzGJrlbZxRZ8BtGSmhuLvrvhZ6a1\r\n3OhFc6tfp3PoyJgF/uJmIoOWjotU9r8REgi21brUDjUeXkwVOieJS3ny6cwc\r\nJGWm4ujjTv/LNZb94Z/5VnU13z52xMcfXLMHHQcZ8DM+t1bcJQSceJ4kPlhf\r\nlPwlepPgy8eP9P4UeWHf8kQJsd8uyCnHFTLMIxZSnoOfenbiJe9QvsZ/myjz\r\ndpG5nP/rl7kbEdlW+HzCqwBZKM07vrv3AaINQXZMC5jWavc0bS/KeEEwwWc5\r\nLYkAJuKbIPkQrx9vzaTfUniVApj9scsv1k2Z2EASefFKKPmC0HfLEMojjW9o\r\nKl998pqYi2X9327ORuOrqctpHysfrx6rCsk=\r\n=RReU\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"brackson","email":"brandonallenjackson@gmail.com"},"directories":{},"maintainers":[{"name":"brackson","email":"brandonallenjackson@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/strapi-code-editor-custom-field_0.2.3_1675739209081_0.254020568988953"},"_hasShrinkwrap":false},"0.2.4":{"name":"@brackson/strapi-code-editor-custom-field","version":"0.2.4","description":"Code editor plugin for strapi CMS. It uses the monaco editor (vscode).","strapi":{"name":"strapi-code-editor-custom-field","description":"Code editor plugin for strapi CMS. It uses the monaco editor (vscode).","kind":"plugin","displayName":"Code editor plugin"},"keywords":["strapi","@strapi","strapi plugin","strapi custom field","strapi code editor","strapi monaco editor","strapi vscode editor"],"peerDependencies":{"@strapi/strapi":"^4.6"},"dependencies":{"@monaco-editor/react":"^4.4.6","@strapi/design-system":"^1.6.2","@strapi/icons":"^1.6.2","monaco-editor":"^0.34.1","rxjs":"^7.8.0"},"devDependencies":{"@strapi/strapi":"^4.6.0","@types/react":"^18.0.27","@types/styled-components":"^5.1.26","prettier":"^2.8.3","react":"^18.2.0","react-dom":"^18.2.0","react-intl":"^6.2.7","typescript":"4.9.5"},"author":{"name":"Brandon Jackson","email":"brandonallenjackson@gmail.com","url":"https://github.com/brackson"},"repository":{"type":"git","url":"git+https://github.com/TomaszPilch/strapi-code-editor-custom-field.git"},"engines":{"node":">=14.19.1 <=18.x.x","npm":">=6.0.0"},"scripts":{"develop":"tsc -w","build":"tsc -p tsconfig.json"},"license":"MIT","gitHead":"409d150a63fd277d664b9b1db7a02af20ae36b1c","bugs":{"url":"https://github.com/TomaszPilch/strapi-code-editor-custom-field/issues"},"homepage":"https://github.com/TomaszPilch/strapi-code-editor-custom-field#readme","_id":"@brackson/strapi-code-editor-custom-field@0.2.4","_nodeVersion":"18.14.0","_npmVersion":"9.3.1","dist":{"integrity":"sha512-QM33uKHjbCJDTCpTSlaTQpZZlYGAVhA4EYdwX/gMZLC507uKhYc9P7Nlo50260cu0+jzZbgqD/kLN4ewWt/c2g==","shasum":"8adce68d6aa3e54fec209580181d57d07a84bb76","tarball":"https://registry.npmjs.org/@brackson/strapi-code-editor-custom-field/-/strapi-code-editor-custom-field-0.2.4.tgz","fileCount":74,"unpackedSize":312485,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDXRebWjORMgxXS93wCCgz72xCc/KnPuelYt0/33HrDMgIhALe4JDQroWwSzjjxtdpjL+5ZRFh2zuh1dk+DXXlaifaz"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj4cEwACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpJVw//Yduf+P9b58o7yQvolBQj1rRll1i6oq8zIbFIu7y6T6afW5pG\r\nUPxte+6hMZNQLKD3quoRwzhlqAxRV207Fh8iKj6wJEo1F+9EnrPOYT8dlo6x\r\nmgrk+EyHHLS644LRjVqjyQjWzvKuAGmhctmNgaYOfLmWzVUk42mzdjb/pD8S\r\nOJFowVXnOzkvddix/ipZkC26ffLg/xsSrlXR8AI0RZP/P5OIuLcoBSbgbA/K\r\njCCX9eZDTNaNcSLzUmBR5oFV9e2FW63fte41JhfRuVRAOAwb0QEX8aGHi9Mu\r\npiPbv2nHRbXyvCia9qwvkJsgqduQ+Fq6LO35n6vD6XTtCggUluQsO30h4R6r\r\nlxeOhCz93T2GRHr3+eJRj5SlF5S9LtmPz7GsjkiOGLwbbDoPwRxdIloiOAw3\r\nHcDyNTDdmNMqx/VeIraYpD0mXoqxPKQdGrSHsq7EqjTfYjXLT90qWmUdYywX\r\ncNIYdWywgGdstTHMyMh/gSN73PiRVKoFcneC/YxKyiX2dADpkH59gblgCqL4\r\nFTdKf2qf2UfAcWv6n/6K7fxGaycKcTnTCyifpp2vGN5kH/R4xN8flkGAge9I\r\nIambvA4wXXP8Q97zlSVU/sgeyLhog5Bt9clVrB5ZE6/2tNJYO0AWCyRYwlMq\r\n98SLurhGdwvGEoGXLfMUIxwFqyfIndch6iQ=\r\n=5Yny\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"brackson","email":"brandonallenjackson@gmail.com"},"directories":{},"maintainers":[{"name":"brackson","email":"brandonallenjackson@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/strapi-code-editor-custom-field_0.2.4_1675739440480_0.8058280997457725"},"_hasShrinkwrap":false},"0.2.5":{"name":"@brackson/strapi-code-editor-custom-field","version":"0.2.5","description":"Code editor plugin for strapi CMS. It uses the monaco editor (vscode).","strapi":{"name":"strapi-code-editor-custom-field","description":"Code editor plugin for strapi CMS. It uses the monaco editor (vscode).","kind":"plugin","displayName":"Code editor plugin"},"keywords":["strapi","@strapi","strapi plugin","strapi custom field","strapi code editor","strapi monaco editor","strapi vscode editor"],"peerDependencies":{"@strapi/strapi":"^4.6"},"dependencies":{"@monaco-editor/react":"^4.4.6","@strapi/design-system":"^1.6.2","@strapi/icons":"^1.6.2","monaco-editor":"^0.34.1","rxjs":"^7.8.0"},"devDependencies":{"@strapi/strapi":"^4.6.0","@types/react":"^18.0.27","@types/styled-components":"^5.1.26","prettier":"^2.8.3","react":"^18.2.0","react-dom":"^18.2.0","react-intl":"^6.2.7","typescript":"4.9.5"},"author":{"name":"Brandon Jackson","email":"brandonallenjackson@gmail.com","url":"https://github.com/brackson"},"repository":{"type":"git","url":"git+https://github.com/TomaszPilch/strapi-code-editor-custom-field.git"},"engines":{"node":">=14.19.1 <=18.x.x","npm":">=6.0.0"},"scripts":{"develop":"tsc -w","build":"tsc -p tsconfig.json"},"license":"MIT","gitHead":"409d150a63fd277d664b9b1db7a02af20ae36b1c","bugs":{"url":"https://github.com/TomaszPilch/strapi-code-editor-custom-field/issues"},"homepage":"https://github.com/TomaszPilch/strapi-code-editor-custom-field#readme","_id":"@brackson/strapi-code-editor-custom-field@0.2.5","_nodeVersion":"18.14.0","_npmVersion":"9.3.1","dist":{"integrity":"sha512-1bwBb8Md1nrds0fjBjNGlfeVmtQ5xmvOJTngLmfHQSEAZgcBx+QZhNsp74CGuK6SQ+wo1i5ix+OFQ85ggYGzvw==","shasum":"c157f57f5dc23afdca2fecf280669968c571db1b","tarball":"https://registry.npmjs.org/@brackson/strapi-code-editor-custom-field/-/strapi-code-editor-custom-field-0.2.5.tgz","fileCount":74,"unpackedSize":312483,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDFQjraPBqTYTOHIutPFeBlk4pufG75pOg/a8BplLq0uQIhAJmpZ4f5FlF8qyowN5mqaxaPhhTJlb9qzE7gogQKc0il"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj4cGiACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqniA//TM6M4a7Ev1uSurgdraEbhNvIhVeXxEm58pvCXAyuGlK9kqqt\r\nz3RQakNjdtrakBq3cjKHJAx8NP87TcKf7T1pzDUk2Z7nCiGvOzgie9R5h8Sp\r\ni/6ZBk/Zwzk2aMV6QBKYoKHyQjT/S/uaHrz7yn0rgRdTPkojUCVUXRQgfPoP\r\npAu7wGbvuTPWIhoV/l0sxWmyuqCRzdT0zxgV/Zk/JRQQwgfxhhLTIW5fQVz9\r\nXCWS0d/RCLNVMr6N/35Udqy7RWS2EelO61WWyLmHwZap/Yk6Peuw96G3lB3m\r\nkYJ5PUXLrIMTg2EHCpqhLveuoFqumnc0IKFof+/fXk/vhqzrGyPAVftrR1Ik\r\nImtuQ0C2Auc81Pvkhkx27CRaLorgSjaeGNcLH6ENoaCr5NKsjQYCpBLazLt/\r\n1lMM9Knn2L+2jZ1P2nHoj+Gubg1+j8L1qaO8aTzfPsDG1Lb+1p2mc9aYOs70\r\nd4xajkitnYUQFvBHWvKZeqYIMMHpxnbDhHkf6FXZ/aawWCdTwjdkGCLBZNeV\r\nSavw2ejqhJkpCymVyXEUAE2md1txKTr0vlPgCUVsFSM9lEfZ5enDYw0Id3+u\r\nNEb/IVoSGwlqxHSWa83zhHsluagaUYCbQ4TVFk1UClXDQJBnB5sxf3VdkeGm\r\nkai4dYQHL79wmRDlu3xZBBfRSy7zxjORZro=\r\n=O0QK\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"brackson","email":"brandonallenjackson@gmail.com"},"directories":{},"maintainers":[{"name":"brackson","email":"brandonallenjackson@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/strapi-code-editor-custom-field_0.2.5_1675739553773_0.9674936672417762"},"_hasShrinkwrap":false}},"time":{"created":"2023-02-07T03:00:24.398Z","0.2.2":"2023-02-07T03:00:24.645Z","modified":"2023-02-07T03:12:34.098Z","0.2.3":"2023-02-07T03:06:49.262Z","0.2.4":"2023-02-07T03:10:40.701Z","0.2.5":"2023-02-07T03:12:34.010Z"},"maintainers":[{"name":"brackson","email":"brandonallenjackson@gmail.com"}],"description":"Code editor plugin for strapi CMS. It uses the monaco editor (vscode).","homepage":"https://github.com/TomaszPilch/strapi-code-editor-custom-field#readme","keywords":["strapi","@strapi","strapi plugin","strapi custom field","strapi code editor","strapi monaco editor","strapi vscode editor"],"repository":{"type":"git","url":"git+https://github.com/TomaszPilch/strapi-code-editor-custom-field.git"},"author":{"name":"Brandon Jackson","email":"brandonallenjackson@gmail.com","url":"https://github.com/brackson"},"bugs":{"url":"https://github.com/TomaszPilch/strapi-code-editor-custom-field/issues"},"license":"MIT","readme":"# Strapi plugin strapi-code-editor-custom-field\n\nCode editor plugin for strapi CMS. It uses the monaco editor (vscode).\n\n## Installation\n\nYou need install also monaco editor.\n\n```\nyarn add monaco-editor monaco-editor-webpack-plugin strapi-code-editor-custom-field\n```\n\n```\nnpm install monaco-editor monaco-editor-webpack-plugin strapi-code-editor-custom-field\n```\n\nYou must add plugin to `config/plugins.js` file.\n\n```\n{\n  ...\n  'strapi-code-editor-custom-field': {\n    enabled: true,\n  },\n  ...\n}\n```\n\nYou need to update the `config/middlewares.ts` file. Replace `strapi::security` with\n\n```\n{\n  name: 'strapi::security',\n  config: {\n    contentSecurityPolicy: {\n      useDefaults: true,\n      directives: {\n        'script-src-elem': [\"'self'\", 'cdn.jsdelivr.net'],\n        upgradeInsecureRequests: null,\n      },\n    },\n  },\n},\n```\n\nThis will add the `cdn.jsdelivr.net` to the `script-src-elem` directive for enabling content security policy.\n\nAnd the last step is to add the `monaco-editor-webpack-plugin` to the `src/admin/webpack.config.js` file.\n\n```\n'use strict'\n\nconst MonacoWebpackPlugin = require('monaco-editor-webpack-plugin')\n\nmodule.exports = (config) => {\n  config.plugins.push(new MonacoWebpackPlugin())\n\n  return config\n}\n\n```\n\nLast step is to rebuild the admin panel.\n\n```\nnpm run build\n\nOR\n\nyarn build\n```\n\n## Usage\n\nWhen you add the plugin you will see two new custom fields. One for javascript (and other languages) and one for json.\n\n![Two custom fields](images/img.png)\n\nThe editor then will show up in content-type add/edit page.\n\nJSON editor\n\n![JSON editor](images/img2.png)\n\nJavascript editor\n\n![Javascript editor](images/img3.png)\n\nEditor can be opened in fullscreen mode.\n\n## Under the hood\n\nEditor is using two different types for strapi field. When you select JSON editor it will be `json` type.\nWhen you select different language it will be `text` type.\n\nIn case of other language than json, the language is prefixed before value.\n\nLanguage selector:\n\n```javascript\nconst languageRegExp = new RegExp('__(.+)__;')\nconst languageFromValue = value.match(languageRegExp)[1]\n```\n\nRemove language from value:\n\n```javascript\nconst languageRegExp = new RegExp('__(.+)__;')\nconst valueWithoutLanguage = value.replace(languageRegExp, '')\n```\n\n## Issues\n\nIf you find any issues, please report\nthem [here](https://github.com/TomaszPilch/strapi-code-editor-custom-field/issues).\n","readmeFilename":"README.md"}