How to add content editor web part to webpart gallery| Export content editor web part (OOTB in SharePoint)

By default content editor web part is not exporting as *.webpart file as other out-of-the-box(OOTB) web parts, it is exported as *.dwp. Basically dwp file is an element XML file which contains configurations as below;

<?xml version="1.0" encoding="utf-8"?>
<WebPart xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/WebPart/v2">
  <Title>Content Editor</Title>
  <FrameType>Default</FrameType>
  ...
</WebPart>

But if you exported other web part you can be able to to extract it by converting it to *.cab file. It’s not required here and you can open it by text editor simply.

Most of the people finding around exporting this since they required to include that in a VisualStudio solution. Following steps can be followed to arrive at that and if you required to add that in a site page, you may bug me via any form of contact method in about section.

Steps as below;

  1. Export the content editor web part (CEWB) i.e. *.dwp
  2. Add→ Existing item→ Select your dwp
  3. Integrate to solution…follow the following steps

Add a module and include your exported file into it

Configure module element.xml

Include that in a feature as below, then you will arrive at below, which you required.  

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s