Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cribjs-editor
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Cédric Le Ninivin
cribjs-editor
Commits
49c350ca
Commit
49c350ca
authored
Sep 30, 2020
by
Cédric Le Ninivin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
crib-enable: Add getScope to the interface
parent
96f49432
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
0 deletions
+12
-0
crib-enable-interface.html
crib-enable-interface.html
+3
-0
crib-enable.js
crib-enable.js
+9
-0
No files found.
crib-enable-interface.html
View file @
49c350ca
...
...
@@ -7,6 +7,9 @@
<h1>
Crib Enable Interface
</h1>
<h3>
Interface Needed to edit with CribJS
</h3>
<dl>
<dt>
getScope
</dt>
<dd>
Return url in string format. get the Scope covered by the gadget
</dd>
<dl></dl>
<dt>
get
</dt>
<dd>
Return a data url. Cannot return a blob as the data is transmitted through an iFrame
</dd>
<dl>
...
...
crib-enable.js
View file @
49c350ca
...
...
@@ -95,6 +95,15 @@
}
})
/*
* get the Scope covered by the gadget
*
* @return {url} Return the scope covered by this gadget
*/
.
declareMethod
(
'
getScope
'
,
function
()
{
return
this
.
state_parameter_dict
.
default_document
;
})
/**
* get Return a data url. Cannot return a blob as the data
* is transmitted through an iFrame
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment