Monaco TextField Editor is a Chrome extension that enables users to edit text fields on web pages using the Monaco Editor - a code editor that powers VS Code. This extension is perfect for those who require advanced text editing capabilities within their browser, such as syntax highlighting, auto-formatting, and a richer text editing experience.
- Utilize the Monaco Editor for enhanced editing in HTML inputs and textareas.
- Supports multiple programming languages, including JSON, JavaScript, TypeScript, HTML, CSS, Markdown, Python, XML, and Plain Text.
- Context menu integration for quick and easy access to the editor.
- Keyboard shortcuts for instant editor opening (
Ctrl+M
orCommand+M
for Mac) and saving edits (Ctrl+S
).
Monaco TextField Editor is now available on the Chrome Web Store! Install it with just one click:
Monaco TextField Editor on the Chrome Web Store
Alternatively, you can still install it manually:
- Download or clone the extension's source code.
- Build the React popup application with the provided build scripts.
- Open Chrome and go to
chrome://extensions/
. - Enable "Developer mode" in the upper right corner.
- Click on "Load unpacked" and select the
extension
folder where the extension files are located. - The extension is now ready for use in Chrome.
- Right-click on any editable text field on a webpage and select "Edit with Monaco Textfield Editor" from the context menu.
- Alternatively, press
Ctrl+M
(Command+M
for Mac) to activate the Monaco Editor for the focused text field. - Enjoy advanced text editing features.
- Save your changes with a click on "SAVE" or by pressing
Ctrl+S
.
This extension uses TypeScript for Chrome extension scripts and React for the popup editor interface, styled with TailwindCSS.
You need to build the React application before it can be used by the Chrome extension.
cd react-popup
npm install
npm run build
The build script will place the compiled React app into the extension/build
folder, making it accessible to the Chrome extension.
To rebuild any of the code in the extension/src folder:
cd extension
tsc
Contributions to Monaco TextField Editor are welcome! Fork the repository and submit a pull request with your enhancements.
- Initial release of Monaco TextField Editor.
- New Feature: Added a "Format" button to format the content within the Monaco Editor. The keyboard shortcut
Alt + Shift + F
can also be used for this action. - New Feature: Included a "Join Lines" button that joins all lines together. This functionality is triggered by the
Alt + Shift + D
keyboard shortcut. - Enhancement: The extension now automatically detects the language of the text field's content at startup.
- Enhancement: It also automatically formats the content at startup, providing a clean and organized layout from the get-go.
This project is licensed under standard open-source licenses. See the LICENSE file for more details.
For questions or issues regarding the extension, please open an issue in the GitHub repository.
When updating the README, make sure to include the actual GitHub repository URL where it says `https://github.com/automationcodex/monaco-textfield-editor-extension`.