From dd66824cd16ee7233245e1c0d4c6df32290e11ed Mon Sep 17 00:00:00 2001 From: djmaze Date: Wed, 9 Sep 2020 18:45:33 +0200 Subject: [PATCH] Added the modified Squire HTML editor --- vendors/squire/LICENSE | 21 + vendors/squire/README.md | 503 ++++ vendors/squire/build/squire-raw.js | 4521 ++++++++++++++++++++++++++++ vendors/squire/build/squire.js | 1 + 4 files changed, 5046 insertions(+) create mode 100644 vendors/squire/LICENSE create mode 100644 vendors/squire/README.md create mode 100644 vendors/squire/build/squire-raw.js create mode 100644 vendors/squire/build/squire.js diff --git a/vendors/squire/LICENSE b/vendors/squire/LICENSE new file mode 100644 index 000000000..06cfb7473 --- /dev/null +++ b/vendors/squire/LICENSE @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright © 2011–2014 by Neil Jenkins + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to +deal in the Software without restriction, including without limitation the +rights to use, copy, modify, merge, publish, distribute, sublicense, and/or +sell copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS +IN THE SOFTWARE. diff --git a/vendors/squire/README.md b/vendors/squire/README.md new file mode 100644 index 000000000..5c11d5beb --- /dev/null +++ b/vendors/squire/README.md @@ -0,0 +1,503 @@ +Squire +====== + +Squire is an HTML5 rich text editor, which provides powerful cross-browser normalisation in a flexible lightweight package (only 16.5KB of JS after minification and gzip, with no dependencies!). + +It was designed to handle email composition for the [Fastmail](https://www.fastmail.com) web app. The most important consequence of this (and where Squire differs from most other modern rich text editors) is that it must handle arbitrary HTML, because it may be used to forward or quote emails from third-parties and must be able to preserve their HTML without breaking the formatting. This means that it can't use a more structured (but limited) internal data model (as most other modern HTML editors do) and the HTML remains the source-of-truth. The other consequence is excellent handling of multiple levels of blockquotes. + +Squire was designed to be integrated with your own UI framework, and so does not provide its own UI toolbar, widgets or overlays. Instead, you get a component you can insert in place of a `