Description

When you check the spelling of a page, the mis-spelled words are not highlighted.

Steps to reproduce

  1. Put a mis-spelled word into a page.
  2. Either hit check spelling button from edit page or select the action on the displayed page.
  3. The offending word will be listed as a spelling mistake, but it is not highlighted in the text of the page.

Details

Release 1.3 and later

Workaround

Find the following 4 lines of code at line 918 of Page.py in version 1.3.4 (line 912 of 1.3.5) and comment them out, and then add the 2 replacement lines as shown below.

        #~ if request.form.has_key('highlight'):
            #~ self.hilite_re = request.form['highlight'][0]
        #~ else:
            #~ self.hilite_re = None

        self.hilite_re = (keywords.get('hilite_re') or
                          request.form.get('highlight', [None])[0])

Discussion

This used to work on older versions.

I think that spell checking should be done by the client, the ui that we can supply in a web application is very poor, and today you have integrated check-spelling-as-you-type everywhere, even in exotic languages like Hebrew. -- NirSoffer 2005-03-09 00:14:45

Plan


CategoryMoinMoinBugFixed

MoinMoin: MoinMoinBugs/SpellCheckDoesNotHighlightWords (last edited 2007-10-29 19:12:03 by localhost)