0
Fork 0
mirror of https://github.com/fastmail/Squire.git synced 2024-12-22 07:13:08 -05:00
Commit graph

53 commits

Author SHA1 Message Date
Neil Jenkins
02cc7baacc Fix error in readme 2023-09-19 14:34:46 +08:00
Seth Falco
c84f48e480 docs: add pasteImage to demo and document the event 2023-03-20 20:31:39 +11:00
Neil Jenkins
fe0dfdf6c4 Squire 2.0
This is a massive refactor to port Squire to TypeScript, fix a bunch of small
bugs and modernise our tooling. The development was done on an internal
repository, so apologies to anyone following externally for the commit dump;
updates from here should come as real commits again.

Co-authored-by: Joe Woods <woods@fastmailteam.com>
2023-01-23 13:18:29 +11:00
Robert O'Leary
8ff042dd22 Add Teamwork Desk to list of production uses
Hi,

We've been successfully using Squire in Teamwork Desk for several years. We've really found it to be the best tool for the job, in terms of formatting and simplicity when it comes to sending emails (which is the main driver of Teamwork Desk). So it'd be cool if you could add it to the list of places it is being used in production successfully!
2021-04-08 10:36:23 +10:00
Neil Jenkins
2687063248 Add SnappyMail to list of Squire users 2021-02-05 15:54:22 +11:00
Neil Jenkins
660a90afc7 Add Google Earth to list of Squire users 2021-02-05 15:24:52 +11:00
Jasper Spaans
42572d71e4 Add StartMail to list of providers using Squire.
Also fixes a typo.
2020-07-23 22:08:38 +10:00
Neil Jenkins
42a15fde2b Note Tutanota uses Squire in the readme 2020-04-27 16:22:35 +10:00
Neil Jenkins
374d067ef3 Fix capitalisation of "Fastmail" in readme 2020-03-11 14:52:16 +11:00
Neil Jenkins
fddf91b9c8 Update readme 2018-10-05 17:01:12 +10:00
Neil Jenkins
79e65240bd Make detect-link regular expression customisable
Resolves #313
2018-10-05 17:00:09 +10:00
Neil Jenkins
625d10139e Add support for <pre>/<code> formatting 2018-07-27 10:47:38 +10:00
Neil Jenkins
db005b379b Make createRange method public 2018-05-09 17:43:11 +10:00
Neil Jenkins
00dbc089c4 Fix documentation error 2018-04-04 14:41:18 +10:00
Neil Jenkins
601043f020 Fire a 'cursor' event so selection end can be monitored 2017-06-21 17:03:14 +10:00
James Simpson
048b792bad Add missing attributes documentation for insertImage 2016-12-29 17:30:21 -06:00
Neil Jenkins
e35ad32c09 Fix potential null deref when sanitizing html 2016-12-13 12:15:35 +11:00
Neil Jenkins
9fac7ffdb6 Make HTML sanitization configurable.
And default to sanitizing setHTML content as well.
2016-12-07 17:24:16 +11:00
Neil Jenkins
65138a68ea Add security note to readme 2016-12-07 14:31:44 +11:00
Neil Jenkins
484a629357 Add documentation for using Squire w/o iframe
Resolves #215
2016-08-05 20:59:03 +10:00
Andy Kauffman
9b75e26451 Update README 2016-07-07 09:38:06 -04:00
Daniel Buckmaster
046579fe5f Add link to NPM package in readme 2016-06-29 14:21:02 +10:00
Andy Kauffman
f50962db7f Add a modifyDocument method
There are certain times when it is necessary to modify the document
programmatically, such as to set attributes, add tooltips, etc. Such
edits should not be observed as inputs. This method allows edits to be
ignored by the editor.
2016-05-05 11:30:27 +10:00
Neil Jenkins
072a2d9fce Add getCursorPosition method, remove scrollRangeIntoView
Scrolling depends so much on the integration. Better to allow the cursor
position to be fetched, and then the integration can do the scrolling when it
wants (for example on each "input" event).
2016-03-24 13:48:09 +11:00
Neil Jenkins
62616ef4ec Add saveUndoState method to public API
For #174
2016-03-11 15:58:32 +11:00
Neil Jenkins
df25d6d596 Add colour/background-colour to result of getFontInfo
Resolves #158
2015-12-03 18:14:49 +11:00
Neil Jenkins
2bade7e868 Add documentation for changeFormat method.
Omission noted in #150
2015-10-23 12:21:14 +02:00
Gert K. Sønderby
94f5a56255 Added getFontInfo() function, which extracts font-family and font-size styles. 2015-09-03 11:48:47 +01:00
Neil Jenkins
522a481dd3 Require <html data-squireinit="true"> to auto-instantiate.
Explicit opt-in to autoinstantiation (included in the default document.html)
means Squire may be loaded in sites that themselves are loaded in iframes,
without unexpected consequences.

Resolves #104.
2015-07-06 12:19:21 +07:00
Neil Jenkins
32d56823ce Document must wait for iframe onload before instantiating
Resolves #106
2015-07-06 12:03:46 +07:00
Gert Sønderby
90660e8e4f Updated README, aligned return value with other API functions. 2015-06-17 15:43:26 +07:00
Neil Jenkins
27b1532ca6 Add Squire#moveCursorTo(Start|End) methods.
I've got 99 GitHub issues, but #99 ain't one (any more).
2015-06-13 11:20:07 +07:00
Neil Jenkins
a2ca4a3864 Allow setting default attributes for ul/ol/li/blockquote.
Merges #83, with fixes, tidying and squashing.
2015-05-09 17:22:54 +07:00
Neil Jenkins
223060ecf9 Add method to set key handlers.
Resolves #70
2015-04-29 11:16:11 +07:00
Neil Jenkins
27267ff376 Add documentation on detecting current edit state
Resolves #71
2015-04-29 09:42:08 +07:00
Umer Farooq
c249e3bc19 Document that if the current selection is not collapsed, that it will
be deleted and replaced by the html. Make style and consistency changes.
2015-04-15 16:23:36 +10:00
Umer Farooq
6fdb288e00 Add the ability to insert an HTML fragment at the cursor location. 2015-04-15 16:23:36 +10:00
Neil Jenkins
437a3c4451 Reword "in in" in README to be less clumsy 2015-03-05 15:19:22 +08:00
Neil Jenkins
39fd173c6a Merge pull request #48 from cvrebert/events
README: hyperlink DOM event refs to MDN docs
2015-03-05 15:15:45 +08:00
Neil Jenkins
1a91065baa Merge pull request #47 from cvrebert/patch-1
README: hyperlink document.execCommand mention to MDN
2015-03-05 15:15:11 +08:00
Neil Jenkins
4d7d99ae7e Merge pull request #46 from cvrebert/size-val
README: link to MDN regarding font size values
2015-03-05 15:14:23 +08:00
Chris Rebert
b301d152c7 README: hyperlink DOM event refs to MDN docs 2015-03-04 19:09:14 -08:00
Chris Rebert
f25c6713bd README: hyperlink document.execCommand mention to MDN 2015-03-04 19:03:37 -08:00
Chris Rebert
77c0fc6d93 README: link to MDN regarding font size values 2015-03-04 18:53:32 -08:00
Chris Rebert
ce5867f424 README: use same return value phrasing for remove{Italic,Underline} as elsewhere 2015-03-04 18:46:10 -08:00
Chris Rebert
0506b8a1c7 README: hyperlink CSS color value refs to MDN docs 2015-03-04 18:40:18 -08:00
Chris Rebert
cde65d93a9 README: hyperlink Range references to MDN docs 2015-03-04 18:34:56 -08:00
Neil Jenkins
249ea93c13 Allow defaultBlockTag to be configured
Resolves #23
2014-12-27 15:02:26 +07:00
Neil Jenkins
824a3b0a3b Resolves #22. 2014-12-20 17:07:11 +11:00
Craig Marvelley
8d604d7deb Add increaseListLevel and decreaseListLevel API methods to README 2014-12-11 11:36:42 +00:00