Image Annotation Tool Fixes

- Added component to view

- Added correct images for OSD

- Fixed path to codemirror

- Tinymce fullscreen works now

- Pep8/Pylint Fixes

- Default image changed and added call to super
This commit is contained in:
lduarte1991
2014-05-21 16:25:37 -04:00
parent 008bbc224b
commit 0318c95537
37 changed files with 60 additions and 38 deletions

View File

@@ -782,6 +782,28 @@ OpenSeadragonAnnotation = function (element, options) {
//Set annotator.editor.OpenSeaDragon by default
this.annotator.editor.OpenSeaDragon=-1;
function reloadEditor(){
tinymce.EditorManager.execCommand('mceRemoveEditor',true, "annotator-field-0");
tinymce.EditorManager.execCommand('mceAddEditor',true, "annotator-field-0");
}
var self = this;
document.addEventListener("fullscreenchange", function () {
reloadEditor();
}, false);
document.addEventListener("mozfullscreenchange", function () {
reloadEditor();
}, false);
document.addEventListener("webkitfullscreenchange", function () {
reloadEditor();
}, false);
document.addEventListener("msfullscreenchange", function () {
reloadEditor();
}, false);
this.options = options;

BIN
common/static/js/vendor/ova/images/fullpage_grouphover.png vendored Executable file → Normal file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.8 KiB

After

Width:  |  Height:  |  Size: 698 B

BIN
common/static/js/vendor/ova/images/fullpage_hover.png vendored Executable file → Normal file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.1 KiB

After

Width:  |  Height:  |  Size: 831 B

BIN
common/static/js/vendor/ova/images/fullpage_pressed.png vendored Executable file → Normal file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.1 KiB

After

Width:  |  Height:  |  Size: 817 B

BIN
common/static/js/vendor/ova/images/fullpage_rest.png vendored Executable file → Normal file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.0 KiB

After

Width:  |  Height:  |  Size: 698 B

BIN
common/static/js/vendor/ova/images/home_grouphover.png vendored Executable file → Normal file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.7 KiB

After

Width:  |  Height:  |  Size: 672 B

BIN
common/static/js/vendor/ova/images/home_hover.png vendored Executable file → Normal file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.0 KiB

After

Width:  |  Height:  |  Size: 737 B

BIN
common/static/js/vendor/ova/images/home_pressed.png vendored Executable file → Normal file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.0 KiB

After

Width:  |  Height:  |  Size: 741 B

BIN
common/static/js/vendor/ova/images/home_rest.png vendored Executable file → Normal file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.9 KiB

After

Width:  |  Height:  |  Size: 672 B

BIN
common/static/js/vendor/ova/images/newan_grouphover.png vendored Executable file → Normal file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.7 KiB

After

Width:  |  Height:  |  Size: 746 B

BIN
common/static/js/vendor/ova/images/newan_hover.png vendored Executable file → Normal file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.9 KiB

After

Width:  |  Height:  |  Size: 815 B

BIN
common/static/js/vendor/ova/images/newan_pressed.png vendored Executable file → Normal file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.8 KiB

After

Width:  |  Height:  |  Size: 828 B

BIN
common/static/js/vendor/ova/images/newan_rest.png vendored Executable file → Normal file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.7 KiB

After

Width:  |  Height:  |  Size: 746 B

BIN
common/static/js/vendor/ova/images/next_grouphover.png vendored Executable file → Normal file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.9 KiB

After

Width:  |  Height:  |  Size: 656 B

BIN
common/static/js/vendor/ova/images/next_hover.png vendored Executable file → Normal file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.4 KiB

After

Width:  |  Height:  |  Size: 753 B

BIN
common/static/js/vendor/ova/images/next_pressed.png vendored Executable file → Normal file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.4 KiB

After

Width:  |  Height:  |  Size: 752 B

BIN
common/static/js/vendor/ova/images/next_rest.png vendored Executable file → Normal file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.0 KiB

After

Width:  |  Height:  |  Size: 656 B

BIN
common/static/js/vendor/ova/images/previous_grouphover.png vendored Executable file → Normal file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.9 KiB

After

Width:  |  Height:  |  Size: 661 B

BIN
common/static/js/vendor/ova/images/previous_hover.png vendored Executable file → Normal file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.4 KiB

After

Width:  |  Height:  |  Size: 755 B

BIN
common/static/js/vendor/ova/images/previous_pressed.png vendored Executable file → Normal file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.4 KiB

After

Width:  |  Height:  |  Size: 755 B

BIN
common/static/js/vendor/ova/images/previous_rest.png vendored Executable file → Normal file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.0 KiB

After

Width:  |  Height:  |  Size: 661 B

BIN
common/static/js/vendor/ova/images/zoomin_grouphover.png vendored Executable file → Normal file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.7 KiB

After

Width:  |  Height:  |  Size: 612 B

BIN
common/static/js/vendor/ova/images/zoomin_hover.png vendored Executable file → Normal file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.0 KiB

After

Width:  |  Height:  |  Size: 608 B

BIN
common/static/js/vendor/ova/images/zoomin_pressed.png vendored Executable file → Normal file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.1 KiB

After

Width:  |  Height:  |  Size: 615 B

BIN
common/static/js/vendor/ova/images/zoomin_rest.png vendored Executable file → Normal file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.9 KiB

After

Width:  |  Height:  |  Size: 612 B

BIN
common/static/js/vendor/ova/images/zoomout_grouphover.png vendored Executable file → Normal file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.5 KiB

After

Width:  |  Height:  |  Size: 504 B

BIN
common/static/js/vendor/ova/images/zoomout_hover.png vendored Executable file → Normal file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.8 KiB

After

Width:  |  Height:  |  Size: 559 B

BIN
common/static/js/vendor/ova/images/zoomout_pressed.png vendored Executable file → Normal file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.9 KiB

After

Width:  |  Height:  |  Size: 561 B

BIN
common/static/js/vendor/ova/images/zoomout_rest.png vendored Executable file → Normal file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.7 KiB

After

Width:  |  Height:  |  Size: 504 B

View File

@@ -38,7 +38,7 @@ Annotator.Plugin.RichText = (function(_super) {
}
},
codemirror: {
path: "static/js/vendor"
path: "/static/js/vendor"
},
plugins: "image link codemirror",
menubar: false,