Skip to content

automationcodex/monaco-textfield-editor-extension

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Monaco TextField Editor

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.

Features

  • 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 or Command+M for Mac) and saving edits (Ctrl+S).

Installation

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:

  1. Download or clone the extension's source code.
  2. Build the React popup application with the provided build scripts.
  3. Open Chrome and go to chrome://extensions/.
  4. Enable "Developer mode" in the upper right corner.
  5. Click on "Load unpacked" and select the extension folder where the extension files are located.
  6. The extension is now ready for use in Chrome.

Usage

  • 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.

Development

This extension uses TypeScript for Chrome extension scripts and React for the popup editor interface, styled with TailwindCSS.

Building the React Popup

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

Contributing

Contributions to Monaco TextField Editor are welcome! Fork the repository and submit a pull request with your enhancements.

Release Notes

Version 1.0

  • Initial release of Monaco TextField Editor.

Version 1.1

  • 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.

License

This project is licensed under standard open-source licenses. See the LICENSE file for more details.

Contact

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`.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published