summaryrefslogtreecommitdiff
path: root/public/js/lib/editor/utils.js (unfollow)
Commit message (Collapse)AuthorFilesLines
2021-05-05Fix insertOnStartOfLines behaviourDavid Mehren1-4/+7
A bug in insertOnStartOfLines lead to duplicated text, if the cursor was not at the start of a line. This fixes the behaviour of insertOnStartOfLines to always use the complete first and last line of the selection, even if they were only partially selected. Fixes #1231 Signed-off-by: David Mehren <git@herrmehren.de>
2021-02-15Linter: Fix all lint errorsPhilip Molares1-23/+23
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2019-05-31Fix eslint warningsSheogorath1-7/+7
Since we are about to release it's time to finally fix our linting. This patch basically runs eslint --fix and does some further manual fixes. Also it sets up eslint to fail on every warning on order to make warnings visable in the CI process. There should no functional change be introduced. Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
2018-06-23Fix all newly introduced linting issuesSheogorath1-10/+10
Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
2018-06-23Fix liniting and optimize some functionsSheogorath1-28/+61
First fixed some linting issues. Also optimized some functions to be undoable with one ctrl+z. This should also speedup some operations Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
2018-06-19Add a toolbar to Codemirror editorEdgar Zanella Alvarenga1-0/+40
Signed-off-by: Edgar Zanella Alvarenga <e@vaz.io>
2017-03-09Use JavaScript standard styleYukai Huang1-43/+45
2017-03-08Extract editor related codeYukai Huang1-0/+46
- in public/js/lib/editor/index.js