Neil Jenkins
50b7ad1e4e
Treat pasted image as a drag-dropped image file.
2012-08-07 12:20:55 +10:00
Neil Jenkins
a9a0ac6411
Fix bug where image may be duplicated on enter.
...
* Do not move range boundaries inside images; these should always be treated as
leaf nodes.
* Workaround FF bug where it may return range as being inside of image node.
2012-08-01 11:53:37 +10:00
Neil Jenkins
0412ece8ec
Fix blur method.
...
Have to blur the body, not the window.
2012-07-25 17:35:03 +10:00
Neil Jenkins
b87a9c26fe
Add setTextDirection method.
...
Allows setting RTL or LTR text direction on a block level basis.
2012-07-24 15:59:36 +10:00
Neil Jenkins
630a7c4e4f
Tidy IE8 range code.
2012-07-24 15:54:05 +10:00
Neil Jenkins
c964a6a564
Fix bug in removing empty inlines on delete.
2012-07-02 16:44:10 +10:00
Neil Jenkins
e4b5ea6ee8
If all text in inline tag deleted, remove tag.
2012-07-02 14:04:06 +10:00
Neil Jenkins
819ddb296e
Always restore range to textnodes.
...
When restoring a range from a bookmark, always call range.moveBoundariesDownTree
to anchor it to the nearest text node. If you call setSelection with a range not
anchored inside a textnode, Opera may incorrectly set the selection.
2012-06-19 14:43:10 +10:00
Neil Jenkins
ffd6edbaef
Remove redundant -ms-box-sizing CSS.
...
Prefix was only used in IE8 betas. No need to keep it.
2012-04-27 17:52:10 +10:00
Neil Jenkins
c5abcde210
API rename (inc|dec)reaseQuoteLevel
...
Use full words in API method name for consistency with the rest of the API.
2012-04-12 11:42:07 +10:00
Neil Jenkins
98ebe661b2
Allow custom cleaning on paste.
...
A willPaste event is now fired just before pasted content is inserted into the
document, allowing custom, arbitrary modification of the pasted content, or
prevention of the paste event altogether.
2012-04-12 11:38:22 +10:00
Neil Jenkins
b6c659e295
Remove unused variables.
2012-04-12 09:22:58 +10:00
Neil Jenkins
bf8598e060
Fix zero-width space character bug.
...
If the node containing the zero-width space character was merged by a call to
Range#mergeInlines, the character was not being removed, making for odd cursor
movement.
2012-04-10 15:42:47 +10:00
Neil Jenkins
5c9420c7fa
Fix bug in updating path correctly.
2012-04-03 20:35:07 +10:00
Neil Jenkins
9b5512bf98
Tidy up a few bits of code.
2012-04-02 17:38:19 +10:00
Neil Jenkins
f0ba6216cc
Add support for IE8.
2012-04-02 15:55:33 +10:00
Neil Jenkins
746e86a3a8
Tidy document.html
2012-03-29 17:55:15 +11:00
Neil Jenkins
2fe603ba8b
Update build version with latest changes.
2012-03-08 15:23:08 +11:00
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
ffe8d95cc1
Add more API methods to demo page.
2011-11-17 19:04:56 +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
6726a0b33c
Update documentation with new colour API.
2011-11-09 15:44:18 +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
0f750d2a0e
Fix Range#get(Start|End)Block.
...
Was still returning the wrong result in certain situations (for example when the
start boundary was just before the end of a block).
2011-11-03 12:10:16 +11:00
Neil Jenkins
72141fd670
Initial commit for public release.
2011-10-29 14:15:21 +11:00