summaryrefslogtreecommitdiff
path: root/public/js/lib/editor/utils.js (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Fix insertOnStartOfLines behaviourDavid Mehren2021-05-051-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>
* Linter: Fix all lint errorsPhilip Molares2021-02-151-23/+23
| | | | Signed-off-by: Philip Molares <philip.molares@udo.edu>
* Fix eslint warningsSheogorath2019-05-311-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>
* Fix all newly introduced linting issuesSheogorath2018-06-231-10/+10
| | | | Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
* Fix liniting and optimize some functionsSheogorath2018-06-231-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>
* Add a toolbar to Codemirror editorEdgar Zanella Alvarenga2018-06-191-0/+40
| | | | Signed-off-by: Edgar Zanella Alvarenga <e@vaz.io>
* Use JavaScript standard styleYukai Huang2017-03-091-43/+45
|
* Extract editor related codeYukai Huang2017-03-081-0/+46
- in public/js/lib/editor/index.js