Age | Commit message (Collapse) | Author |
|
|
|
Signed-off-by: Julius Härtl <jus@bitgrid.net>
|
|
.substr() is deprecated so we replace it with .slice() which works similarily but isn't deprecated
Signed-off-by: Tobias Speicher <rootcommander@gmail.com>
|
|
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>
|
|
|
|
|
|
Signed-off-by: Julius Härtl <jus@bitgrid.net>
|
|
Default to preview mode when the editor is readonly
|
|
otherwise the editor is broken with nc no longer adding a global escapeHTML
Signed-off-by: Robin Appelman <robin@icewind.nl>
|
|
(icewind1991/files_markdown#71)
Signed-off-by: Landry Breuil <breuil@craig.fr>
|
|
Make NewLine auto
|
|
Signed-off-by: ionum <bugs@innuce.ch>
|
|
l10n: Triple dot to ellipsis, Uppercase for first char
|
|
Fix for Searchbox (CTRL + F), adds brace require call for enabling the search box.
Signed-off-by: Gustavo Arnosti Neves <guneves@gmail.com>
|
|
Reported at Transifex.
Signed-off-by: rakekniven <mark.ziegler@rakekniven.de>
|
|
Signed-off-by: Julius Härtl <jus@bitgrid.net>
|
|
|
|
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
|
|
Signed-off-by: Julius Härtl <jus@bitgrid.net>
|
|
Let text app handle new file creation
|
|
Signed-off-by: Julius Härtl <jus@bitgrid.net>
|
|
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
|
|
* improves the list rendering for system report (see app list)
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
|
|
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
|
|
Signed-off-by: Julius Härtl <jus@bitgrid.net>
|
|
Signed-off-by: Robin Appelman <robin@icewind.nl>
|
|
Signed-off-by: Robin Appelman <robin@icewind.nl>
|
|
Signed-off-by: Robin Appelman <robin@icewind.nl>
|
|
Signed-off-by: Robin Appelman <robin@icewind.nl>
|
|
Fix issue 58
|
|
Signed-off-by: Julius Härtl <jus@bitgrid.net>
|
|
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
|
|
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
|
|
|
|
Add endpoint for public editor previews
|
|
|
|
* Fix JS
* Request more data
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
Signed-off-by: Robin Appelman <robin@icewind.nl>
|
|
Allow using hash navigation withing the editor
|
|
Signed-off-by: Robin Appelman <robin@icewind.nl>
|
|
Signed-off-by: Robin Appelman <robin@icewind.nl>
|
|
Signed-off-by: Robin Appelman <robin@icewind.nl>
|
|
Signed-off-by: Robin Appelman <robin@icewind.nl>
|
|
Signed-off-by: Robin Appelman <robin@icewind.nl>
|