0
Fork 0
mirror of https://github.com/fastmail/Squire.git synced 2024-12-22 23:40:35 -05:00
Commit graph

12 commits

Author SHA1 Message Date
dhoko
10bf787651 Parse url and create anchor with queryparams 2018-06-23 14:21:46 +10:00
kyuwoo.choi
9eacfb7b22 fix: handle insert table by CF_HTML
ms html clipboard format CF_HTML handles table like below if we copy part of table.
it makes problem when copying table from ms product such as ie, excel, powerpoint then pasting to squire.

<TABLE BORDER>
<!--StartFragment-->
<TR><TD>Item 6</TD><TD>Item 7</TD></TR><TR><TD>Item 10</TD><TD>Item 11</TD></TR>
<!--EndFragment-->
</TABLE>

and

<TABLE BORDER><TR>
<!--StartFragment-->
<TD>Item</TD>
<!--EndFragment-->
</TR></TABLE>

https://msdn.microsoft.com/en-us/library/windows/desktop/ms649015(v=vs.85).aspx
#274
2017-05-10 13:59:30 +10:00
Islam Sharabash
6a9582c7e7 Allowing arbitrary nesting for bullets
This allows any level of indentation for bullets. It does this by introducing
invalid HTML. In particular, you can make bullets like:

<ul>
  <ul>
    <li>foo</li>
  </ul>
</ul>
2016-09-27 05:50:59 +04:00
Islam Sharabash
082fb79fcd Fix tests by resetting the selection when selectAll is called 2016-08-22 12:59:51 -07:00
Andy Kauffman
f5a816be76 Update failing test after merge 2016-07-07 10:20:49 -04:00
Andy Kauffman
1c9dc9ebb5 Update getPath tests 2016-07-07 09:39:06 -04: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