# Editcomponent for custom content

**URL:** <https://community.developer.atlassian.com/t/editcomponent-for-custom-content/6041>\
**Category:** Confluence Cloud\
**Created:** [July 7, 2017, 2:16pm UTC](https://community.developer.atlassian.com/t/editcomponent-for-custom-content/6041 "2017-07-07T14:16:22Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![pete](https://avatars.discourse-cdn.com/v4/letter/p/3ab097/32.png) [@pete](https://community.developer.atlassian.com/u/pete)\
**Post date:** [July 7, 2017, 2:16pm UTC](https://community.developer.atlassian.com/t/editcomponent-for-custom-content/6041/1 "2017-07-07T14:16:22Z")

</div>

Hi,

I want to add some custom content from my atlassian-connect add-on. I could just create some page containing an AUI form, but in the add-on descriptor there is a field `module.customContent.customContent.uiSupport.editComponent` which I would like to use, so the creation/edit of that custom content is more integrated into Confluence Cloud. For that field the documentation says

> Defines a module for adding or editing custom content.  
> …  
> Confluence will provide the breadcrumbs, title input, submit and cancel button on the edit component. Add-on needs to supply the editor area like the screenshot shown below in a general page module.  
> …

So I configured a general page and created an endpoint which returns some HTML containing form fields.  
Now in Confluence Cloud how is the redirection to that edit/create page for my custom content triggered? I can’t find any location in the UI or any JS function with that purpose, also the documentation does not say anything about that.

---

<div class="post-metadata">

**Author:** ![bradadi.spectrum](https://sea1.discourse-cdn.com/atlassiandeveloper/user_avatar/community.developer.atlassian.com/bradadi.spectrum/32/33983_2.png) [@bradadi.spectrum](https://community.developer.atlassian.com/u/bradadi.spectrum)\
**Post date:** [July 23, 2017, 7:30am UTC](https://community.developer.atlassian.com/t/editcomponent-for-custom-content/6041/2 "2017-07-23T07:30:32Z")

</div>

Hi @pete  
i’am developing a Confluence Cloud add-on using nodeJs and ACE , and i want to use Custom content as you ,  
if you found the solution please explain it here cause i need it so or give me the link of the solution cause the documentation of Atlassian is not nough .

Cheers  
BASMA Radadi

---

<div class="post-metadata">

**Author:** ![nico.wernli](https://sea1.discourse-cdn.com/atlassiandeveloper/user_avatar/community.developer.atlassian.com/nico.wernli/32/36228_2.png) [@nico.wernli](https://community.developer.atlassian.com/u/nico.wernli)\
**Post date:** [August 8, 2017, 12:32pm UTC](https://community.developer.atlassian.com/t/editcomponent-for-custom-content/6041/3 "2017-08-08T12:32:26Z")

</div>

Did you find a solution for this?  
I followed [this document](https://developer.atlassian.com/cloud/confluence/lesson-1-a-new-content-type/) but when trying to run `npm start` I get an error

```auto
Failed to register with host https://admin:xxx@xxx.atlassian.net (200)
Installation failed. The add-on defined an unknown module (customContent). Please <a href="https://marketplace.atlassian.com/plugins/my-add-on/cloud/support">contact the add-on vendor</a>.
{"type":"INSTALL","pingAfter":300,"status":{"done":true,"statusCode":200,"contentType":"application/vnd.atl.plugins.task.install.err+json","errorMessage":"Installation failed. The add-on defined an unknown module (customContent). Please <a href=\"https://marketplace.atlassian.com/plugins/my-add-on/cloud/support\">contact the add-on vendor</a>.","source":"https://ab11e0c3.ngrok.io/atlassian-connect.json","name":"https://ab11e0c3.ngrok.io/atlassian-connect.json"},"links":{"self":"/rest/plugins/1.0/pending/c41eef07-8014-4ca3-8130-00d427bf38b1","alternate":"/rest/plugins/1.0/tasks/c41eef07-8014-4ca3-8130-00d427bf38b1"},"timestamp":1502194593840,"userKey":"admin","id":"xxx"}
Add-on not registered; no compatible hosts detected

```

Any idea?

---

<div class="post-metadata">

**Author:** ![pete](https://avatars.discourse-cdn.com/v4/letter/p/3ab097/32.png) [@pete](https://community.developer.atlassian.com/u/pete)\
**Post date:** [August 15, 2017, 10:00pm UTC](https://community.developer.atlassian.com/t/editcomponent-for-custom-content/6041/4 "2017-08-15T22:00:47Z")

</div>

Hi,

I have solved my issue by manually redirecting to  
`{baseUrl}/display/{spaceKey}/customcontent/create/{contentType}`

Hopefully this helps you solving your issue too.

Cheers
