edx/edx-platform — pull request #4675 by lduarte1991 (2014-08-04 17:07:16+00:00)
Title: Annotations Tools: Fixing major Firefox/Tinymce bug in annotations

**NOTE: There are 2 commits, please check each individually. First one has the fix, second commit is purely adding comments and changing spaces to meet edX's code style wants. I can squash once it's approved, but I thought it would make life easier.**

**Background:** Currently, firefox has a bug which re-initalizes tinymce and does not allow people to actually save their comments on annotations. This PR creates a small function (submitEditor) which saves the text shortly before sending it to the backend.

**Studio Updates:** None.

**LMS Updates:** Annotation's comments should now save on firefox.

**Testing:** The following [tarball](https://www.dropbox.com/s/r684ber7z4ddqtc/2014_T4.DPRfFs.tar.gz) contains a test course that has the set-up for annotation tool testing. Under one of the text annotations and obviously using Firebox try to create an annotation and type text into the editor. Hit save. You should hover over the highlight or look at the table below the text. If you try it on edge or a previous version, the text would not be saved at all (!!) and would just appear blank, now you should be able to create and edit it at will.