jEdit Community - Resources for users of the jEdit Text Editor
Copy (X)HTML code to clipboard as HTML (in Windows: CF_HTML format), rather than text?
Submitted by Graham Hannington on Friday, 22 June, 2012 - 03:44
I can already select content in a web browser, copy it to the clipboard, and then, in jEdit, select "Edit > More Clipboard > Paste Special > html" to paste the HTML source of the content into jEdit. I realize that I could also use various other methods to do this (such as viewing the HTML source in the web browser, and then copying that HTML source view into the clipboard, and then pasting into jEdit without "Paste Special"), but, in many cases, I like selecting the rendered objects in the web browser (although, admittedly, selecting in the HTML source view can offer greater accuracy in terms of exactly how much you are selecting).

Okay: copying (X)HTML source into jEdit is covered.

Suppose that I edit the HTML source, and now want to copy that edited content back into the browser?

I should clarify my use case: I'm copying content from a browser-based rich text editor (specifically, the Atlassian Confluence 4 rich text editor, which is based on TinyMCE), pasting it into jEdit as HTML source, editing the HTML, and then copying'n'pasting that edited content back into the rich text editor.

Currently, copying the edited content back into the browser is a multi-step procedure, to ensure that the HTML is in the appropriate internal clipboard format (in Windows, I think this means CF_HTML), so that the content is rendered appropriately by the rich text editor, rather than appearing as text (the HTML source code):

1. In jEdit, I save the edited HTML to a file (with a file extension such as .htm or .html)
2. I open the file in a web browser (say, Firefox)
3. I select the content, and copy it to the clipboard
4. I paste the content into the Confluence rich text editor

I would rather have a "Copy Special > html" option in jEdit, hence this forum topic.

Does jEdit, or one of its plugins, already have such a feature?

If not (in which case, I guess I'll add a feature request), can anyone suggest a quicker existing non-jEdit method than the "save to .htm, select and copy" method I'm currently using? (I'm using Windows 7. I have no jEdit plugin development experience, but I have some scripting experience, and it's occurred to me to write some script "glue" to copy into CF_HTML format.)
Comment viewing options
Select your preferred way to display the comments and click 'Save settings' to activate your changes.
Info Viewer plugin
by Robert Schwenn on Fri, 22/06/2012 - 21:05
Hi,
maybe the Info Viewer plugin could help You to shorten the way a bit. It provides an action "infoviewer.open-buffer" (Plugins -> Info Viewer -> Open active buffer in browser). This renders the content of active buffer in an internal or external browser (see plugin options).

Robert
User login
Browse archives
« October 2024  
MoTuWeThFrSaSu
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
 
Poll
Are you interested in language packs for jEdit?
Yes, and I could help maintain translations
26%
Yes, I'd like to have translations
32%
Indifferent
35%
No, that'd be bad (please comment)
7%
Total votes: 1093
Syndication
file   ver   dls
German Localization light   4.4.2.1   100936
Context Free Art (*.cfdg)   0.31   46062
BBEdit scheme   1.0   18601
JBuilder scheme   .001   18502
ColdFusion scheme   1.0   18031
R Edit Mode - extensive version   0.1   17481
Advanced HTML edit mode   1.0   16213
Matlab Edit Mode   1.0   16075
jEdit XP icons   1.0   15236
XP icons for jEdit   1.1   14300