4. The XHTML menu

Paste As
Paste from Word

Pastes “rich text” copied to the clipboard using MS-Word 2003+.

The pasted data replaces the text or node selection if any. When there is no selection, XMLmind XML Editor automatically determines a valid insertion location at or following the caret position.

If XMLmind XML Editor fails to find such valid insertion location, the rich text is converted to valid XHTML and then copied to the clipboard, overwriting the original data put there by MS-Word. This allows to use the “normal” Paste Before, Paste or Paste After commands to paste the data elsewhere in the document.

How to import an entire MS-Word document as XHTML

  1. Open the document in MS-Word.

  2. Press Ctrl+A (Select All) then press Ctrl+C (Copy) to copy it to the clipboard.

  3. Create a new XHTML document in XXE by using FileNew.

  4. Use FileSave As to save this new XHTML document to disk.

  5. Explicitly select the root element of the XHTML document, for example by clicking on its name in the node path bar.

  6. Select menu item "Paste from Word" to paste the content of the clipboard[4].

Tip

If, using MS-Word, you want to copy a piece of text rather than a paragraph, do not include the hidden character found at the very end of a paragraph (the paragraph mark) in your selection.

This menu item is available only on Windows and on the Mac. On Linux, or more simply if you don't need this feature, you may uninstall it using OptionsInstall Add-ons, and then selecting the add-on called "Paste from Word".

Note

If you are not satisfied with the result of "Paste from Word", please be kind enough to send your .doc or .docx file to (unlike , this email address is not a public mailing list). Please understand that collecting as many difficult cases as possible is absolutely needed to improve this feature.

Other menu entries

The entries of this submenu allow to paste the plain text copied to the clipboard, typically using a third-party word processor or spreadsheet, as:

  • one or more paragraphs,

  • OR a pre element,

  • OR one or more list items,

  • OR an itemized list,

  • OR one or more table rows,

  • OR a table.

The last two menu entries assume that each text line specifies a table row and that, within a text line, the contents of the table cells are separated by tab characters.

Tip

If you need to paste the copied text as an ordered list, first paste this text as an itemized list then convert the pasted list to an ordered list using EditConvert (Ctrl+T).

The following entries of this submenu allow to paste the image copied to the clipboard as:

  • img,

  • div (containing an img)

  • figure (XHTML5 only).

Menu entry "img" replaces the text or node selection if any. When there is no selection, this menu entry pastes its element at caret position (just like EditPaste).

All the other menu entries also replace the text or node selection if any. When there is no selection, these menu entries paste their elements at any valid position in the document following the caret position.

Move Up

Move selected element up, that is, swap it with its preceding sibling node. Requires the element to be explicitly selected.

Move Down

Move selected element down, that is, swap it with its following sibling node. Requires the element to be explicitly selected.

Preview

Preview the document being edited using the “default viewer” helper application. The default viewer is typically a Web browser. This helper application is specified in the Preferences dialog box, Helper Applications section, Default viewer field.

Note that this command automatically creates a temporary preview file in any of the following cases:

  • The XHTML document to be previewed contains XIncludes. XIncludes are transcluded in the temporary preview file.

  • Save option favorInteroperability in XMLmind XML Editor - Configuration and Deployment is turned on, which is the case by default, and the XHTML document to be previewed contains processing instructions. Processing instructions are removed from temporary preview file.

Tip

If you want to preview the document being edited as is, do not use XHTMLPreview. Instead please use ToolsHelper ApplicationOpen Document in Helper Application.

4.1. Convert Document sub-menu

Convert to RTF (Word 2000+)

Converts the document being edited to RTF (Rich Text Format) using XMLmind XSL-FO Converter (see http://www.xmlmind.com/foconverter/). The document generated by this command can be edited and printed using Microsoft® Word 2000 and above.

Convert to WordprocessingML (Word 2003+)

Converts the document being edited to WordprocessingML using XMLmind XSL-FO Converter. The document generated by this command can be edited and printed using Microsoft® Word 2003 and above.

Convert to Office Open XML (Word 2007+)

Converts the document being edited to Office Open XML (.docx file) using XMLmind XSL-FO Converter. The document generated by this command can be edited and printed using Microsoft® Word 2007 and above.

Convert to OpenDocument (OpenOffice.org 2+)

Converts the document being edited to OpenDocument (.odt file) using XMLmind XSL-FO Converter. The document generated by this command can be edited and printed using OpenOffice.org 2 and above.

Convert to PDF

Converts the document being edited to PDF (Adobe® Portable Document Format, also known as Acrobat®) using RenderX XEP (see http://www.renderx.com/), if its plug-in has been installed, and Apache FOP otherwise (see http://xmgraphicsl.apache.org/fop/).

All the above Convert commands display the URL chooser dialog box rather than the standard file chooser dialog box. That is, you must specify the URL (Uniform Resource Locator) of a save file.

Note that these commands can create directories on the fly, if needed to. For example, if you specify http://www.acme.com/docs/report43/mydoc.pdf as the URL of the save file and if directory report43/ does not exist, this directory will be created during command execution.



[4] Note that Ctrl+V, that is, the plain EditPaste command, would not work here.