|
Importing Content from a Microsoft Word DocumentEphox, April 2005 SummaryEditLive! includes greatly improves features for importing content from Microsoft Word. When content is pasted into EditLive! from Microsoft Word the end user or the developer have the following options:
Developers can specify how the content is to be imported or the user can be prompted to choose. Please note: This EditLive! Word Import feature requires Microsoft Office 2000 or XP to be installed on the client machine. More InformationEditLive! includes a new feature which allows users to dictate whether content pasted into EditLive! from a Word document maintains all of the formatting applied within Word. The End-User ExperienceWhen a user pastes in content from Microsoft Word, EditLive! will detect that the content is from Microsoft Word and will present the end user with the option of importing the content with or without the Microsoft Word style rules.
What the Options Mean for the Display of ContentIf the end user selects "Styled HTML", the formatting of the content within EditLive! closely resembles the content from Microsoft Word. Alternatively, if the end user selects "Clean HTML", all style attributes and definitions will be removed from the Microsoft Word content. The block formatting options are preserved (e.g. H1, P) and the default cascading style sheet (CSS) rules in the EditLive! document are applied to the content. What Actually Happens Within EditLive!If the end user selects "Styled HTML", the Microsoft Word document's CSS rules are imported into the EditLive! document. The imported rules are placed in the STYLE element of the HEAD section of the document. Any CSS rules that have been previously defined in either a linked external style sheet or in the EditLive! document's STYLE element will not be imported. Alternatively, if the end user selects "Clean HTML", all style attributes and definitions will be removed from the Microsoft Word content. The block formatting options are preserved (e.g. H1, P) and the default CSS rules in the EditLive! document are applied to the content. Developer OptionsIf, as a developer, you do not want to give the end user the choice of whether the Word formatting is merged with the current document formatting or removed, you can set the WordImportOption property in the EditLive! page source code to force a particular option.
Additional PropertiesStyleElementText The StyleElementText property allows the CSS rules in the EditLive! document to be returned as a string. This means that if an end user pastes content into EditLive! and the CSS rules for the formatting of this content are added to the STYLE element within EditLive!, this STYLE element can retrieved and stored separately in a database for later use with the EditLive! source. Related ReadingLoadStyleSheet method
|
|
|||||||||||||||||||||||||||||||||||||||||
| Copyright © 1999-2005 Ephox Corporation. All Rights Reserved. 'Ephox' is a registered trademark of Ephox Corporation. Java and the Java Powered logo are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and other countries. |