From 4966f3cc4444f8ec13a904d4353ba52e123c8180 Mon Sep 17 00:00:00 2001 From: Henrik Giesel Date: Mon, 13 Dec 2021 05:00:35 +0100 Subject: [PATCH] Add back wrap function (#1551) * Remove surround from RichText and PlainText * Export wrap --- sass/base.scss | 6 ++-- ts/editor/ClozeButton.svelte | 9 ++++-- ts/editor/EditingArea.svelte | 4 +-- ts/editor/PlainTextInput.svelte | 21 ++++++------- ts/editor/RichTextInput.svelte | 9 +----- ts/editor/TemplateButtons.svelte | 23 ++++++++------ ts/editor/index.ts | 16 ++++++++++ ts/lib/shortcuts.ts | 51 ++++++++++++++++---------------- ts/lib/wrap.ts | 6 ++-- 9 files changed, 83 insertions(+), 62 deletions(-) diff --git a/sass/base.scss b/sass/base.scss index 57b5f71e8..e2f649a43 100644 --- a/sass/base.scss +++ b/sass/base.scss @@ -69,9 +69,9 @@ samp { --base-font-size: 14px; } -[dir=rtl] { +[dir="rtl"] { .form-select { /* flip