Neil Jenkins
|
64b8f9affa
|
Fix focus method not working in Firefox.
|
2012-02-08 23:23:55 +11:00 |
|
Neil Jenkins
|
e3ee4dad12
|
Whitespace cleanup.
|
2012-01-25 11:47:26 +11:00 |
|
Neil Jenkins
|
78e8955be1
|
Work around iOS bug when setting selection.
|
2012-01-25 11:37:38 +11:00 |
|
Neil Jenkins
|
d413b1bb85
|
Automatically wrap URLs in <a> when pasting text.
|
2012-01-25 11:36:51 +11:00 |
|
Neil Jenkins
|
aa8527fc2c
|
Fix bug in removing format.
|
2011-12-09 14:27:37 +11:00 |
|
Neil Jenkins
|
ceed1cfa81
|
Don't continue link over block break.
|
2011-12-09 13:53:09 +11:00 |
|
Neil Jenkins
|
14ee0d0ad5
|
Scroll cursor into view on enter.
|
2011-12-09 13:15:15 +11:00 |
|
Neil Jenkins
|
43634a3ba4
|
Add styles via separate API method.
<style></style> must not be included text supplied to setHTML call.
|
2011-11-17 18:37:49 +11:00 |
|
Neil Jenkins
|
a8e6e5b391
|
Merge adjacent containers on delete/backspace.
If you delete the line separating two containers (e.g. a blockquote), the
containers are merged.
|
2011-11-17 18:36:58 +11:00 |
|
Neil Jenkins
|
f4c5a85379
|
Don't prevent tabbing out of area.
|
2011-11-17 18:36:29 +11:00 |
|
Neil Jenkins
|
17cb1e0043
|
Guard against IE firing beforepaste twice
|
2011-11-17 18:36:07 +11:00 |
|
Neil Jenkins
|
3ca646a1d1
|
Make enter break through all levels of blockquoting
|
2011-11-17 18:33:24 +11:00 |
|
Neil Jenkins
|
09308b729b
|
Fix bug in hasFormat
Must see at least one text node with format to return true.
|
2011-11-17 18:32:11 +11:00 |
|
Neil Jenkins
|
3068c496c9
|
Allow contents of unknown tags in.
Clean functions were removing contents of any unknown tag. This was, it turned
out, a bit too strict.
|
2011-11-15 21:46:47 +11:00 |
|
Neil Jenkins
|
feca3e4d8f
|
Make forEachBlock method public.
And tidy a few bits and pieces.
|
2011-11-14 17:55:40 +11:00 |
|
Neil Jenkins
|
3f5233c61a
|
Fix bug in applying styles in Opera/IE.
Was removing the crucial empty text node that these browsers use to indicate and
editable line.
|
2011-11-14 15:18:05 +11:00 |
|
Neil Jenkins
|
d24aba73ad
|
Stop using DOM mutation events to detect changes.
Unreliable in some browsers, and may be deprecated in the future.
|
2011-11-10 18:44:00 +11:00 |
|
Neil Jenkins
|
a2ef14e218
|
Add make/remove link sugar.
Also:
Add getSelectedText method.
Fix bug in setting HTML after undo/redo in Opera.
|
2011-11-10 18:31:07 +11:00 |
|
Neil Jenkins
|
d01cc9875f
|
Add commands for setting text/background colour.
|
2011-11-09 15:41:46 +11:00 |
|
Neil Jenkins
|
b3d9de6e86
|
Fix infinite loop bug in key down.
Also fix font changes removing all spans.
And fix firing of path change events to occur at the right times.
|
2011-11-08 16:43:46 +11:00 |
|
Neil Jenkins
|
aa8b4b7ac6
|
Fix setTextAlignment command
And make propagating native events more elegant (only adds observer to document
when first function added).
|
2011-11-08 13:59:47 +11:00 |
|
Neil Jenkins
|
75109c404e
|
IE requires handlers on before(cut|paste) events.
|
2011-11-04 17:53:24 +11:00 |
|
Neil Jenkins
|
3b09cbf703
|
Improve cleaning of inserted content.
|
2011-11-04 16:53:12 +11:00 |
|
Neil Jenkins
|
f15a57cba6
|
Standardise white space in public getHTML method.
Add in <br>s where required in Opera and IE.
|
2011-11-03 17:37:32 +11:00 |
|
Neil Jenkins
|
28c9ab10a9
|
Fix FF deleting everything on cut.
|
2011-11-03 17:05:18 +11:00 |
|
Neil Jenkins
|
0bdbef305a
|
Use <b>, <i> instead of semantic elements
As the W3C spec says, only use <strong>, <em> if you're sure of the intended
semantics.
|
2011-11-03 14:18:00 +11:00 |
|
Neil Jenkins
|
183091e4e1
|
Bias towards adding, not removing format.
editor.hasFormat(...) now only returns true if all text in the range has that
format.
|
2011-11-03 12:44:54 +11:00 |
|
Neil Jenkins
|
1792b66ac3
|
Normalise text nodes when setting initial HTML.
|
2011-11-03 12:09:39 +11:00 |
|
Neil Jenkins
|
953ee3bfc7
|
Fix bug in FF on enter.
|
2011-11-02 18:46:45 +11:00 |
|
Neil Jenkins
|
ae09554883
|
Don't try to merge <br>s or <img>s etc.
|
2011-11-02 16:43:42 +11:00 |
|
Neil Jenkins
|
9dcbf45f4a
|
Fix Range#get(Start|End)Block.
|
2011-11-02 16:31:46 +11:00 |
|
Neil Jenkins
|
110568350b
|
Bookmarking must not uncollapse a range.
|
2011-11-02 10:45:33 +11:00 |
|
Neil Jenkins
|
0d706180fe
|
Refactor cleaning code and merge blockquotes
|
2011-10-31 15:16:08 +11:00 |
|
Neil Jenkins
|
b8e2b5fb81
|
Normalise <br>/<#text> on setHTML and paste
Make sure all the block level elements have either a <br> or an empty text node
in the right place, as required by the browser.
|
2011-10-31 13:07:41 +11:00 |
|
Neil Jenkins
|
72141fd670
|
Initial commit for public release.
|
2011-10-29 14:15:21 +11:00 |
|