LP1760940: Turn off browser spell-check on flat text editor user/sandbergja/lp1760940_turn_off_spellcheck_for_flat_text_editor
authorJane Sandberg <sandbej@linnbenton.edu>
Tue, 3 Apr 2018 22:32:12 +0000 (15:32 -0700)
committerJane Sandberg <sandbej@linnbenton.edu>
Tue, 3 Apr 2018 22:32:12 +0000 (15:32 -0700)
This is because there are way too many false positives for the
spell-check to be useful (e.g. codes, subfield delimiters are reported
as spelling errors)

To test:
* Open a record in the Web client in a recent version of Firefox.
* Click MARC Edit.
* Turn on the Flat Text Editor.
* Click inside the editor so that it is in focus.
* Confirm that that no red wavy spelling error underlines appear.

Signed-off-by: Jane Sandberg <sandbej@linnbenton.edu>
Open-ILS/src/templates/staff/cat/share/t_marcedit.tt2

index c9dfdbc..34e7b0e 100644 (file)
@@ -53,7 +53,7 @@
   </div>
 
   <div ng-show="flatEditor.isEnabled">
-    <textarea class="marcflateditor" cols="120" rows="40" ng-model="flat_text_marc" ng-blur="saveFlatTextMARC()"></textarea>
+    <textarea class="marcflateditor" cols="120" rows="40" spellcheck="false" ng-model="flat_text_marc" ng-blur="saveFlatTextMARC()"></textarea>
   </div>
   <div ng-show="!flatEditor.isEnabled">
     <div class="row pad-vert">