- Switched to Google Closure editor.
- New scrolling method: use native scrollbars so that the browser does all the work tracking the cursor position and scrolling to follow it. This makes for a very native like scrollbar experience. A faux Cappuccino scrollbar is rendered on top to maintain the Cappuccino look and feel.
- Allow any background colour.
- Option to auto-hide scrollbars.
- Fixed: in Firefox, setting the view value would fire a "cursor did move" event but getSelection would return null leading to an exception.
- Editor padding and margin support has been added back in. (The 0.4 solution to add padding around the whole editor made the scrollbar appear inside of the margin.)
- Fixed get method for font and added getter for font size and color.
- Improved "cursor did move" and scrolling updates, which sometimes would get one step behind.
- Fixed some scrollbar flickering when animating text view resizes.
- Expand text area to at least fill the height of the editor frame to allow a click anywhere to start editing. Also made fontName safe to call before full initialisation.
- textViewDidBeginEditing and textViewDidEndEditing support.
- Fixed: 'field is already uneditable' error and an error caused by a premature resize before the editor fully loaded.
- Explicitly place the cursor at the start of the content when the editor activates after a reset or text change. This allows the editor to be activated by tabbing to it, something which before would result in the editor activating but not showing any cursor.
- Fixed: various Firefox crashes when trying to manipulate a hidden editor.
- Fixed: with Firefox, clicking the editor did not make it the first responder.
- Fixed: the checkLoad timer would keep firing when a text view was hidden, burning CPU needlessly. Now only fire the check once and only repeat it if the view is actually visible and hence has a chance of loading any time soon.
- Fixed:
editor.html
had to be placed in the main Resources folder of an app including WKTextView. It is now properly loaded from the WKTextView Framework folder. - Fixed: "unknown variable CPTimer" error.
- Fixed: failure if the user sets the editor alue immediately after intialising an off-screen view.
- IE specific fixes.
- Upgraded WysiHat. This version ups the minimum requirements to IE 7, Firefox 3, Safari 4 or Chrome 4. WKTextView was updated to use WysiHat as a contentEditable div instead of an iframe.
- Implemented setEnabled/isEnabled. When disabled the editor does not display a text edit cursor; it does not listen to mouse events, etc.
- Support for editor padding was removed since it too was a source of jumping bugs, although on a smaller scale. If you need padding just add it around the editor instead.
- Jakefile to create debug and release builds (
jake debug
andjake release
). - setFontSizeForSelection.
- setColorForSelection.
- WKTextView can now become the first responder. Tabbing out of the field is possible with Shift-Tab, the standard key for tabbing backwards. Tab forward is not possible to allow the tab character to be written.
- Fixed: clicking on a WKTextView would cause it to gain focus without requesting first responder status. The most visible artifact of this was that tabbing out of the view if it was activated by mouse didn't work as expected because Cappuccino didn't know the view was selected to begin with.
- Activating an editor by clicking on it now makes its window the key window.
- Backgrounds underneath WKTextView now shine through.
- Fixed: some variables leaking into the global scope.
- Fixed: uninitialized height could cause a race condition in Webkit.
- Fixed: in Firefox, clicking on the WKTextView did not make it the first responder, and shift tab did not back tab out of the editor.
- Renamed setFont to setFontNameForSelection.
- Content height calculations are much improved and it looks like most of the jumping bugs (hitting enter to insert a new row while at the last row in a text taller than the view height) are resolved. Performance might also be improved.
- Removed some left over logging.
- New delegate method textViewDidChange.
- Fixed: text views with a vertical scrollbar would have 15 of their rightmost pixels missing until the window was first resized.
- Fixed: sometimes a text select would be followed by an immediate deselect; clicking with Safari could result in text being reflowed; moving the cursor in Opera back and forth lead to spaces being inserted at the cursor position.
- Fixed: the wysihat submodule pointed to the non public github repository.
- Support for insert image, bullets, ordered lists, font selection, link, unlink, strikethrough and text alignment.
- The current font can now be read from the editor with the font method.
- New delegate method textViewCursorDidMove:.
- Added a setTextValue: method.
- Fixed: editor height calculation didn't work in Firefox. The replacement code is also more elegant and could be more efficient for large amounts of text.
- Fixed: deleting or inserting text would not cause the scrollbar to update without first mousing over it.
- Workaround for focus lost when the toolbar is clicked: the new option setShouldFocusAfterAction: makes the editor automatically focus after actions such as boldSelection.
- Fixed: textViewDidLoad is not sent until the WysiHat ready flag is set. This resolves some problems where content could not be set in Firefox immediately in a textViewDidLoad callback.
- Wysihat now available as a submodule, making it easier to grab the right hacked version.
- Basic support for the editor scrolling automatically to follow the cursor.
- Wyzihat is now correctly spelled Wysihat in most places.
- First release.