edx/edx-platform — pull request #3529 by lduarte1991 (2014-04-29 20:51:43+00:00)
Title: Annotation Tool UI Fixes and Move to Xmodule/js 

**Background:** A few [comments](https://github.com/edx/edx-platform/pull/2188#discussion-diff-9149795) in #2515 stated that I should move the javascript and css code from static and into the xmodule/js and xmodule/css folders. This would allow for the js and css to be called upon only if and when the module is created.

**Goal of this PR:** There should be no new functionality added, but this PR will make sure that the javascript and css for the annotation tool are only pulled in when the module is used. Moving these files caused a few UI issues which have also been patched within the code.

**CMS Updates:** You should now be able to create annotations within the CMS (this is not really used as of yet and the annotations cannot be viewed by students, only by instructors visiting Studio) which will not appear in LMS, but only when you visit the Studio end for the unit/module. The functionality should be there fully, leaving annotations, diacritic marks, highlighting, tagging. The CMS has its own table below the text that can be used as seen in the LMS.

**LMS Updates:** The biggest change visually is that the skin used for the TinyMCE editor is now the one used by Studio and not the one that was previously loaded onto the code. The rest should be the same as it was in a previous iteration.

**Testing notes:** Probably hardest PR to test. Visually everything should look the same as before (except the TinyMCE Editor) and it should have the same functionality. I'd suggest making a few annotations, editing them, deleting them, tagging them, adding diacritic marks, replying to one. Overall most of the "testing" should just be that the code is in the correct place.