Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
946c7eb2
Commit
946c7eb2
authored
Oct 17, 2014
by
lduarte1991
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Annotation Tools: Addressing PR Comments from DB
parent
9005f2e8
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
0 deletions
+19
-0
common/static/js/vendor/ova/OpenSeaDragonAnnotation.js
+4
-0
common/static/js/vendor/ova/catch/js/catch.js
+4
-0
common/static/js/vendor/ova/richText-annotator.js
+11
-0
No files found.
common/static/js/vendor/ova/OpenSeaDragonAnnotation.js
View file @
946c7eb2
...
...
@@ -1035,6 +1035,10 @@ OpenSeadragonAnnotation = function (element, options) {
function
reloadEditor
(){
tinymce
.
EditorManager
.
execCommand
(
'mceRemoveEditor'
,
true
,
"annotator-field-0"
);
tinymce
.
EditorManager
.
execCommand
(
'mceAddEditor'
,
true
,
"annotator-field-0"
);
// if person hits into/out of fullscreen before closing the editor should close itself
// ideally we would want to keep it open and reposition, this would make a great TODO in the future
annotator
.
editor
.
hide
();
}
var
self
=
this
;
...
...
common/static/js/vendor/ova/catch/js/catch.js
View file @
946c7eb2
...
...
@@ -1001,6 +1001,9 @@ CatchAnnotation.prototype = {
var
positionAnnotator
=
videojs
.
findPosition
(
wrapper
[
0
]);
var
positionAdder
=
{};
// the following addition to display makes sure the editor shows up
// after opening TinyMCE/editor within the image source
positionAdder
.
display
=
"block"
;
positionAdder
.
left
=
positionLeft
.
left
-
positionAnnotator
.
left
;
positionAdder
.
top
=
positionLeft
.
top
+
20
-
positionAnnotator
.
top
;
...
...
@@ -1010,6 +1013,7 @@ CatchAnnotation.prototype = {
this
.
annotator
.
onAdderClick
();
// Set vertical editor
$
(
this
.
annotator
.
editor
.
element
).
css
(
positionAdder
);
this
.
annotator
.
editor
.
resetOrientation
();
this
.
annotator
.
editor
.
invertY
();
...
...
common/static/js/vendor/ova/richText-annotator.js
View file @
946c7eb2
...
...
@@ -93,6 +93,17 @@ Annotator.Plugin.RichText = (function(_super) {
// set the modification in the textarea of annotator
$
(
editor
.
element
).
find
(
'textarea'
)[
0
].
value
=
tinymce
.
activeEditor
.
getContent
();
});
// creates a function called whenever editor is resized
ed
.
on
(
'init'
,
function
(
mceInstance
)
{
// get win means this event activates when window is resized
tinymce
.
dom
.
Event
.
bind
(
ed
.
getWin
(),
'resize'
,
function
(
e
){
// mceInstance.target gets the editor, its id is used to retrieved iframe
$
(
"#"
+
mceInstance
.
target
.
id
+
"_ifr"
).
css
(
'min-width'
,
'400px'
);
});
});
// new button to add Rubrics of the url https://gteavirtual.org/rubric
ed
.
addButton
(
'rubric'
,
{
icon
:
'rubric'
,
...
...
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