# Dynamically read JavaScript scripts from an external file to allow using a custom text editor

**URL:** <https://community.folivora.ai/t/dynamically-read-javascript-scripts-from-an-external-file-to-allow-using-a-custom-text-editor/32783>\
**Category:** Feature Requests\
**Tags:** real-javascript\
**Created:** [August 16, 2023, 5:48am UTC](https://community.folivora.ai/t/dynamically-read-javascript-scripts-from-an-external-file-to-allow-using-a-custom-text-editor/32783 "2023-08-16T05:48:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![esv](https://community.folivora.ai/letter_avatar_proxy/v4/letter/e/7ab992/32.png) [@esv](https://community.folivora.ai/u/esv)\
**Post date:** [August 16, 2023, 5:48am UTC](https://community.folivora.ai/t/dynamically-read-javascript-scripts-from-an-external-file-to-allow-using-a-custom-text-editor/32783/1 "2023-08-16T05:48:16Z")

</div>

Since it's very unergonomic to write JavaScript in the embedded editor compared to a real text editor, it would be nice to be able to connect the embedded editor to an actual `.js` file so that you can use your text editor to edit it, save it, and then BTT would update the content and allow you to test it by clicking a "Run script" button
