{"id":29190695,"url":"https://github.com/owncloud/files_texteditor","last_synced_at":"2025-07-02T00:10:55.325Z","repository":{"id":13885101,"uuid":"16583250","full_name":"owncloud/files_texteditor","owner":"owncloud","description":null,"archived":false,"fork":false,"pushed_at":"2024-10-17T01:01:55.000Z","size":5713,"stargazers_count":17,"open_issues_count":37,"forks_count":25,"subscribers_count":63,"default_branch":"master","last_synced_at":"2025-06-27T21:13:47.180Z","etag":null,"topics":["owncloud-app"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/owncloud.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2014-02-06T15:22:42.000Z","updated_at":"2025-06-18T02:11:14.000Z","dependencies_parsed_at":"2024-02-09T01:55:00.612Z","dependency_job_id":"bb787f7f-646f-45c8-9f3e-6cc8f050e093","html_url":"https://github.com/owncloud/files_texteditor","commit_stats":null,"previous_names":[],"tags_count":322,"template":false,"template_full_name":null,"purl":"pkg:github/owncloud/files_texteditor","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/owncloud%2Ffiles_texteditor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/owncloud%2Ffiles_texteditor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/owncloud%2Ffiles_texteditor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/owncloud%2Ffiles_texteditor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/owncloud","download_url":"https://codeload.github.com/owncloud/files_texteditor/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/owncloud%2Ffiles_texteditor/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263052430,"owners_count":23406106,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["owncloud-app"],"created_at":"2025-07-02T00:10:54.562Z","updated_at":"2025-07-02T00:10:55.293Z","avatar_url":"https://github.com/owncloud.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Texteditor\n\n[![Build Status](https://drone.owncloud.com/api/badges/owncloud/files_texteditor/status.svg?branch=master)](https://drone.owncloud.com/owncloud/files_texteditor)\n[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=owncloud_files_texteditor\u0026metric=alert_status)](https://sonarcloud.io/dashboard?id=owncloud_files_texteditor)\n[![Security Rating](https://sonarcloud.io/api/project_badges/measure?project=owncloud_files_texteditor\u0026metric=security_rating)](https://sonarcloud.io/dashboard?id=owncloud_files_texteditor)\n[![Coverage](https://sonarcloud.io/api/project_badges/measure?project=owncloud_files_texteditor\u0026metric=coverage)](https://sonarcloud.io/dashboard?id=owncloud_files_texteditor)\n\n\nThe original text editor app for ownCloud, based on [Ace](http://ace.c9.io/).\n\nFeatures:\n - Syntax highlighting\n - Autosave\n - Syntax checking\n - Responsive design (optimised on mobile and desktop)\n\n## Install\nSimply copy the `files_texteditor` folder into the `apps` directory and enable the app within the ownCloud settings.\n\n## Usage\nTo use the editor, click on a [supported file](https://github.com/owncloud/files_texteditor/blob/master/js/editor.js#L6) within the Files app and the file will be loaded into the editor. Saving is automatic, but can also be triggered manually with `Ctrl+S` or `Cmd+S`.\n\n## Contributors\nMaintainer: [Tom Needham](http://github.com/tomneedham)\nPast contributors: [Thomas Müller](http://github.com/deepdiver1975) [Robin Appelman](http://github.com/icewind) [Jörn Friedrich Dreyer](http://github.com/butonic) [Vincent Petry](http://github.com/pvince)\n\n\nPreview apps\n------------\n\nApps can add side-by-side previews to the app for certain file types by using the preview api\n\n```js\n\nOCA.MYApp.Preview = function(){\n    ...\n}\n\nOCA.MYApp.Preview.Prototype = {\n    /**\n     * Give the app the opportunity to load any resources it needs and prepare for rendering a preview\n     */\n    init: function() {\n        ...\n    },\n    /**\n     * @param {string} the text to create the preview for\n     * @param {jQuery} the jQuery element to render the preview in\n     */\n    preview: function(text, previewElement) {\n        ...\n    }\n}\n\nOCA.Files_Texteditor.registerPreviewPlugin('text/markdown', new OCA.MYApp.Preview());\n\n```\n\nFor styling of the preview, the preview element will have the id `preview` and the className will be set to the mimetype of the file being edited with any slash replaced by dashes.\n\ne.g. when editing a markdown file the preview element can be styled using the `#preview.text-markdown` css query.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fowncloud%2Ffiles_texteditor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fowncloud%2Ffiles_texteditor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fowncloud%2Ffiles_texteditor/lists"}