EmbeddedEditor (Firefox Extension)
There are a few extensions that allow you to edit HTML textareas
using external editors, but none of them embed your external editor
directly into the web page. With EmbeddedEditor extension you just press
Ctrl+E shortcut while editing an textarea and it will be replaced by
your favorite text editor. After closing your editor, the textarea will
show back with all the text written in the editor.
The EmbeddedEditor extension depends on mozplugger mozilla plugin.
Therefore, you have to install mozplugger before installing the
extension. The mozplugger can be found and downloaded from its homepage:
http://mozplugger.mozdev.org/
Mozilla Add-ons URL of the extension: http://addons.mozilla.org/en-US/firefox/addon/5482
Features
- EmbeddedEditor can use any terminal-based text editor you configure,
including vim (the default one), emacs, joe, nano, ...
- After pressing Ctrl+E or selecting 'Edit with Vim' from the context
menu, the focused textarea will be replaced by the external editor you
configured. All text from the textarea will be copied into the editor.
After quitting the editor, the textarea will show back again.
- Whenever you save your text in the external editor, it will update
internal value of the hidden textarea, so any webpage javascript
reading the textarea data will work as expected.
- The embedded editor will try to preserve the style (like size, border,
background color and text color) of the hidden textarea. However, in the
preferences dialog of the extension you can specify the minimal size of
the embedded editor, so you will not run into problems with too small
textareas.
- EmbeddedEditor may be also ran through ssh -Y (note that
ssh -X will not work as expected).
Installation
- Install the mozplugger plugin, if you don't have one yet. You can
find and download it at
http://mozplugger.mozdev.org/
- Edit mozpluggerrc, so it contains the following lines:
mozplugger/xterm:xterm: xterm
stream swallow(xterm) fill: xterm -title xterm $VAR_args
The mozpluggerrc is likely to be found in one of the following directories
(depending on your installation):
- $HOME/.mozilla/mozpluggerrc
- /usr/local/netscape/mozpluggerrc
- /etc/mozpluggerrc
- /usr/etc/mozpluggerrc
- /usr/local/etc/mozpluggerrc
- Remove your local $HOME/.mozilla/firefox/pluginreg.dat and
$HOME/.mozilla/firefox/{PROFILE_DIR}/pluginreg.dat files. The
mozplugger will regenerate them.
- Install the EmbeddedEditor extension:
embeded_editor.xpi
Screenshots
Known bugs
- It depends on mozplugger and xterm, so it does not work on MS Windows™.
Changelog