2015-04-23 21:04:03 +00:00
|
|
|
{
|
|
|
|
"extensions": {
|
|
|
|
"types": [
|
|
|
|
{
|
|
|
|
"key": "example.page",
|
|
|
|
"name": "Page",
|
|
|
|
"features": [ "creation" ],
|
|
|
|
"properties": [
|
|
|
|
{
|
|
|
|
"key": "url",
|
|
|
|
"name": "URL",
|
2015-04-27 21:50:14 +00:00
|
|
|
"control": "textfield",
|
|
|
|
"pattern": "^(ftp|https?)\\:\\/\\/\\w+(\\.\\w+)*(\\:\\d+)?(\\/\\S*)*$",
|
|
|
|
"required": true
|
2015-04-23 21:04:03 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"views": [
|
|
|
|
{
|
|
|
|
"templateUrl": "iframe.html",
|
|
|
|
"name": "Page",
|
|
|
|
"type": "example.page",
|
|
|
|
"key": "example.page"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"controllers": [
|
|
|
|
{
|
|
|
|
"key": "IFrameController",
|
|
|
|
"implementation": "IFrameController.js",
|
|
|
|
"depends": ["$sce"]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|