48 lines
4 KiB
HTML
48 lines
4 KiB
HTML
|
|
<h2>Rich Text</h2>
|
||
|
|
|
||
|
|
<p>The exact behavior of the Rich Text Editor (<abbr title="Rich Text Editor">RTE</abbr>) depends on your device, browser, and operating system as well as the source you're pasting from. However, starting with a well-formatted document will help you get the most out of the <abbr>RTE</abbr>. Here are some general tips to ensure that as much of your formatting as possible will be retained:</p>
|
||
|
|
|
||
|
|
<ul>
|
||
|
|
<li><p><strong>Press <kbd>Enter</kbd> <em>once</em> between paragraphs.</strong> Pressing <kbd>Enter</kbd> twice will insert a blank paragraph, creating additional, and likely unwanted, space between paragraphs when you paste into the <abbr>RTE</abbr>. The Archive uses top and bottom margins to create the appearance of a blank line between paragraphs; you can use the paragraph formatting options in your text editor to create a similar effect without adding extra <code><p></code> tags.</p></li>
|
||
|
|
<li><p><strong>Use preset styles for headings, block quotations, code, and so on.</strong> The Styles option generally found in a text editor's Format menu will often translate into <abbr title="HyperText Markup Language">HTML</abbr> tags when pasting into the <abbr>RTE</abbr>. Simply changing the font size, font name, or text indent to create a visual approximation of a heading or block quote will always fail.</p></li>
|
||
|
|
</ul>
|
||
|
|
|
||
|
|
<h3>Pasting from Specific Text Editors</h3>
|
||
|
|
|
||
|
|
<h4>Google Drive</h4>
|
||
|
|
|
||
|
|
<p>Google Drive uses inline <abbr title="Cascading Style Sheets">CSS</abbr> to change the alignment of text and to produce bold, italic, underline, and strikethrough formatting. Unfortunately, we cannot allow inline styles on the Archive, so only pure <abbr>HTML</abbr> formatting such as headings, lists, links, and tables is retained.</p>
|
||
|
|
|
||
|
|
<p>In some browsers, the formatting may appear to be preserved upon pasting into the <abbr>RTE</abbr>, but it will be stripped by our <abbr>HTML</abbr> sanitizer upon previewing or posting your work.</p>
|
||
|
|
|
||
|
|
<h4>Scrivener</h4>
|
||
|
|
|
||
|
|
<p>Scrivener users will typically get better results by pasting into the <abbr>HTML</abbr> editor and then switching to the <abbr>RTE</abbr> to make changes. To copy HTML from Scrivener, do the following:</p>
|
||
|
|
|
||
|
|
<ol>
|
||
|
|
<li>Go to the Edit menu</li>
|
||
|
|
<li>Choose Copy Special</li>
|
||
|
|
<li>Select either "Copy as HTML" or "Copy as HTML (Basic, using <p> and <span>)"</li>
|
||
|
|
</ol>
|
||
|
|
|
||
|
|
<h3>Pasting Specific Types of Formatting</h3>
|
||
|
|
|
||
|
|
<h4>Underline and Strikethrough</h4>
|
||
|
|
|
||
|
|
<p>Underline and strikethrough are often produced with <abbr>CSS</abbr>. Because the Archive does not allow the use of inline <abbr>CSS</abbr>, these text styles are frequently lost when pasting.</p>
|
||
|
|
|
||
|
|
<p>Pasting from web pages that use <code><u></code>, <code><del></code>, <code><strike></code>, or <code><s></code> tags will work.</p>
|
||
|
|
|
||
|
|
<h4>Alignment</h4>
|
||
|
|
|
||
|
|
<p>Text alignment is now generally achieved with <abbr>CSS</abbr>, and because the Archive does not allow inline <abbr>CSS</abbr>, alignment will often be lost when pasting.</p>
|
||
|
|
|
||
|
|
<p>Pasting from sources that use the <code>align</code> attribute and <code><center></code> element will keep the formatting intact, but please note that the alignment buttons in the <abbr>RTE</abbr> cannot modify center alignment created with the <code><center></code> tag.</p>
|
||
|
|
|
||
|
|
<h4>Headings</h4>
|
||
|
|
|
||
|
|
<p>Text editors use many different styles for their heading presets. For example, selecting Heading 4 in OpenOffice produces italicized sans-serif text. Even when successfully pasting a heading into the <abbr>RTE</abbr>, this visual formatting is <em>not</em> preserved -- only the <code><h4></code> tag is. This is not a bug. <abbr>HTML</abbr> is designed to tell the browser what text means (e.g. "This is a heading") and not how it should be displayed (e.g. "This should be in Arial"). If you wish to modify the style of a heading or any other part of your work, please use a Work Skin.</p>
|
||
|
|
|
||
|
|
<h4>Indented Text</h4>
|
||
|
|
|
||
|
|
<p>Indented text is a purely visual effect with no <abbr>HTML</abbr> equivalent and will not be preserved. Please use a Work Skin to indent text.</p>
|