Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/files_texteditor.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/js
AgeCommit message (Collapse)Author
2022-10-21Merge pull request #610 from nextcloud/dependabot/npm_and_yarn/marked-4.1.1Julius Härtl
2022-10-21Build scssJulius Härtl
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2022-03-24Replace deprecated String.prototype.substr()Tobias Speicher
.substr() is deprecated so we replace it with .slice() which works similarily but isn't deprecated Signed-off-by: Tobias Speicher <rootcommander@gmail.com>
2021-11-16fix regression: typo s/x-pearl/x-perl/Andreas Boesen
It seems that this has been fixed before in Pull Request 98 https://github.com/nextcloud/files_texteditor/pull/98 Signed-off-by: Andreas Boesen <andreasb@selfnet.de>
2021-06-14l10n: Change to uppercaseValdnet
2020-10-26l10n: Separate the ellipsis with a spaceValdnet
2020-10-08use fetch for network requestsRobin Appelman
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2020-10-07Merge pull request #125 from landryb/preview_by_default_when_readonlyJulius Härtl
Default to preview mode when the editor is readonly
2020-09-18use escape-htmlRobin Appelman
otherwise the editor is broken with nc no longer adding a global escapeHTML Signed-off-by: Robin Appelman <robin@icewind.nl>
2020-09-18Default to preview mode when the editor is readonly ↵Landry Breuil
(icewind1991/files_markdown#71) Signed-off-by: Landry Breuil <breuil@craig.fr>
2020-09-18Merge pull request #197 from ionum/masterJulius Härtl
Make NewLine auto
2020-09-18Make NewLine autoionum
Signed-off-by: ionum <bugs@innuce.ch>
2020-03-31Merge pull request #207 from nextcloud/rakekniven-patch-1Julius Härtl
l10n: Triple dot to ellipsis, Uppercase for first char
2020-03-11Fix for Searchbox (CTRL + F)Gustavo Arnosti Neves
Fix for Searchbox (CTRL + F), adds brace require call for enabling the search box. Signed-off-by: Gustavo Arnosti Neves <guneves@gmail.com>
2020-02-05l10n: Triple dot to ellipsis, Uppercase for first charrakekniven
Reported at Transifex. Signed-off-by: rakekniven <mark.ziegler@rakekniven.de>
2019-12-19Adjust element id to avoid conflictsJulius Härtl
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2019-10-26Fix #186Robin Windey
2019-09-03Translate menu actionJohn Molakvoæ (skjnldsv)
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
2019-07-05Rename edit file actionJulius Härtl
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2019-06-24Let text app handle new file creation (#163)John Molakvoæ
Let text app handle new file creation
2019-06-12Let text app handle new file creationJulius Härtl
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2019-05-09Ship marked ourselfsRoeland Jago Douma
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2019-05-06Use correct CSS URL, remove default marked settings and change to GFM renderingMorris Jobke
* improves the list rendering for system report (see app list) Signed-off-by: Morris Jobke <hey@morrisjobke.de>
2019-01-24Fix directy opening editor from new menuRoeland Jago Douma
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2019-01-18Load ace only if neededJulius Härtl
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2019-01-18More reliable way to get the nonceRobin Appelman
Signed-off-by: Robin Appelman <robin@icewind.nl>
2019-01-18split the code a bit moreRobin Appelman
Signed-off-by: Robin Appelman <robin@icewind.nl>
2019-01-18switch to webpack bundlingRobin Appelman
Signed-off-by: Robin Appelman <robin@icewind.nl>
2018-08-15trigger ace resize after toggling previewRobin Appelman
Signed-off-by: Robin Appelman <robin@icewind.nl>
2018-08-15Merge pull request #98 from Mormuig/fix-issue-58Roeland Jago Douma
Fix issue 58
2018-08-15Move editor container outside of the app contentJulius Härtl
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2018-05-24Get fetched bytes and check for byte count into sync when showing ellipsisMorris Jobke
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
2018-05-16Do not sanitize markdown output twiceMorris Jobke
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
2018-04-30Merge branch fix-issue-58 into masterMormuig
2018-04-16Merge pull request #71 from nextcloud/editor_previewMorris Jobke
Add endpoint for public editor previews
2018-04-13Patch issue #58Mormuig
2018-03-08Don't do do json just return a blob of textRoeland Jago Douma
* Fix JS * Request more data Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2018-02-13Do not keep FileInfoModels returned by "getModelForFile"Daniel Calviño Sánchez
FileInfoModels returned by "getModelForFile" are just temporary, and they should be used and forgotten instead of being kept by apps. It is not guaranteed that different calls to "getModelForFile" for the same file returns the same FileInfoModel object, so changes in one model instance could be not known by other model instances (and their views), and this could lead to different bugs (for example, a file list entry being duplicated when a text file is edited or favourited after being created). Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2018-02-09Add plain text previewsDaniel Calviño Sánchez
The default plain text previews always assume that the text file uses UTF-8 encoding, so when it uses a different one the characters are not properly parsed by the browser. The "public" endpoint from this app tries to guess the actual encoding of the file and then converts the data sent to the browser to UTF-8. Thus, now the default plain text previews are overriden with the preview generated by this app. Note that this does not prevent the default plain text preview from being generated, though; it is simply hidden. Following the same approach used for Markdown previews, ".preview" is added to the "#imgframe" element, which is the parent element for the default plain text preview. This removes the default plain text preview thanks to the CSS rules. However, as the "overrider" plain text preview is also a descendant of ".preview", a special CSS class has to be added to the "overrider" plain text preview to prevent it from being hidden. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2018-02-09Remove children elements instead of detaching themDaniel Calviño Sánchez
The children elements are not attached again later, so they can be removed instead of just detached. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2018-02-09Use CSS rules for formatted text only with formatted text previewsDaniel Calviño Sánchez
This will be needed in a following commit when plain text previews generated by this app are introduced. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2018-02-05Fix ACE module files failing to loadDaniel Calviño Sánchez
When the ACE editor is initialized, by default the base path used to load module files is set to the directory of the "ace.js" file. Since the JavaScript files were merged "ace.js" is no longer added to the page as a single script file, so the base path was no longer set, and thus the module files failed to load. Now the right base path is explicitly set in the editor configuration. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2017-11-06Fix autosave timerSuperSayu
The autosave timer was not functioning properly because the timer was being incorrectly stored, resulting in a save file request for every change in the editor to be sent to the server. Signed-off-by: Vincent Van Laak <supersayu@gmail.com>
2017-08-29Prevent the editor from closing when clicking on a dialogRobin Appelman
Signed-off-by: Robin Appelman <robin@icewind.nl>
2017-08-28Merge pull request #59 from nextcloud/hash-navigationRobin Appelman
Allow using hash navigation withing the editor
2017-08-28keep editoroverlay when in preview modeRobin Appelman
Signed-off-by: Robin Appelman <robin@icewind.nl>
2017-08-28smooth transitions between preview statesRobin Appelman
Signed-off-by: Robin Appelman <robin@icewind.nl>
2017-08-28initialize preview plugins on demandRobin Appelman
Signed-off-by: Robin Appelman <robin@icewind.nl>
2017-08-28Fix preview when on mobileRobin Appelman
Signed-off-by: Robin Appelman <robin@icewind.nl>
2017-08-26Allow using hash navigation withing the editorRobin Appelman
Signed-off-by: Robin Appelman <robin@icewind.nl>