spellcheck.js:
- Updated
sc.trim()
method to use native trim if available - Clicking background overlay will now close the spell check window
spellcheck.css:
- Added
box-sizing: content-box;
rule to elements within spell check box
spellcheck.js:
- Overhauled undo functionality for improved performance and support for reversal of multiple, consecutive changes
- Combined
_showReviewer()
with_begin()
to eliminate an unnecessary function call - Removed some unnecessary variable copying
spellcheck.js:
- Added
debug
option to view progress messages and server response in the console - Switched to a better method of handling server responses -- more reliable, improved error handling
- XHR responses are now only handled if the spell checker is open -- closing before a request is completed effectively abandons the request
spellcheck.css:
- Added 1px #AAA border to spell check box
spellcheck.js:
- Added
onOpen()
andonClose()
callback methods - Added
destroy()
method for removing spell check functionality - The
name
option is now properly URI encoded prior to server request - Event message "OK" button is now given focus when displayed to allow closing with "Enter" button
spellcheck.css:
- Cleaned up formatting and organization, removed duplicate and unnecessary CSS styles
- Added several IE7-specific enhancements
spellcheck.php:
- Added
/u
modifier topreg_split()
regex pattern to properly handle words with accents - #1 (special thanks to tssk for this)
- Plugin is now wrapped in an IIFE
- Regular expressions are now pre-compiled and cached for better performance
- Made several IE-specific CSS fixes (for IE7-IE9)
- Cleaned up CSS and removed a number of duplicate/redundant rules
- Switched to a unique ID function that is RFC 4122 version 4 compliant
- Any 2xx status code is now handled as a successful response (previously, only
200
was successful) - Added
"use strict";
to every function - Cleaned up some messy code -- organization, unnecessary variable copying, etc.