Gert K. Sønderby
29fffdccd0
Enter press at end of PRE will break line.
2016-03-29 10:00:16 +02:00
Gert K. Sønderby
8a8285560e
If selection is empty, expand to current line when removing PREs.
2016-03-29 10:00:11 +02:00
Gert K. Sønderby
bfbdd45184
Can't use getElementById in IE very well. Use querySelector instead.
2016-03-29 10:00:03 +02:00
Gert K. Sønderby
fb11138982
Tests for Squire#removePreformatted()
2016-03-29 09:59:55 +02:00
Gert K. Sønderby
13c7b7c87b
Added tests for Squire#makePreformatted()
2016-03-29 09:59:54 +02:00
Gert K. Sønderby
4e33a47401
Added test cases covering strange IE selections. These fail.
2015-10-02 15:02:32 +02:00
Gert K. Sønderby
db8eb7907d
Added test suite that checks a number of cases for hasFormat().
2015-10-02 14:35:28 +02:00
Neil Jenkins
345159b4c4
Better algorithm for remove all formatting action.
...
1. Keeps all leaf nodes not just text nodes, so images etc. are not removed.
2. If the selection is not within a single block, it is expanded to the edges
of the blocks rather than splitting the blocks; this is unlikely to have
been what the user wanted.
3. More efficient tree traversal and manipulation; no duplication of nodes.
4. Records undo state before performing the action.
2015-06-17 15:43:27 +07:00
Gert Sønderby
6aba099388
Tests run in latest Chrome, FF, Safari + IE10 and 11.
2015-06-17 15:43:26 +07:00
Gert Sønderby
985d886ffd
Test runs in Chrome, fails in IE (differences in HTML output)
2015-06-17 15:43:26 +07:00
Gert K. Sønderby
6ced6ded17
Basic testing framework.
2015-06-17 15:43:26 +07:00