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;
[code language="xml"]<?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>
[/code]
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;
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.
[code language="xml"]<?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>
[/code]
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;
- Export the content editor web part (CEWB) i.e. *.dwp
- Add→ Existing item→ Select your dwp
- 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.
Comments
Post a Comment