Export (0) Print
Expand All

Content Source Plugins

Content source plugins extend the capabilities of Windows Live Writer to insert, edit, and publish new types of content.

Examples of content types that can be added to Writer by using content sources include:

  • Images from online photo publishing sites.
  • Embedded video or audio players.
  • Product thumbnails or links from e-commerce sites.

You can implement two types of content sources:

  • Simple—Enable the insertion of custom HTML content into a post. Simple content sources are derived from the ContentSource base class.
  • Smart—Enable the insertion of HTML content with "smart" editing capabilities into a post. These capabilities include atomic selection, two-way editing by using the Sidebar, the ability to be resized, and the ability to have distinct HTML representations for editing and publishing contexts. Smart content sources are derived from the SmartContentSource base class.

Content that is created by both simple and smart content sources can originate from an Insert dialog box, a URL, or Live Clipboard data. Each content source plugin can support the creation of content from one or all of these contexts. For each context that a plugin is to support, an attribute is added to its implementing class and a specific method is overridden:

In addition to the content-creation plugin base classes and attributes just described, there are other, related types that are used for implementing advanced features of smart content sources. These types include:

Show:
© 2014 Microsoft