nextcloud / files_texteditor

:page_facing_up: Text editor for plaintext files
72 stars 41 forks source link

How to change font in preview #160

Open guidtz opened 5 years ago

guidtz commented 5 years ago

Hello,

how to change or set fonts in Preview Editor ?

Operating system: Debian GNU/Linux 9

Web server: Apache 2.4

Database: MariaDB

PHP version: 7.3

Nextcloud version: (see Nextcloud admin page) 16.0.1

Where did you install Nextcloud from: Official sources

List of activated apps: activity calendar comments contacts dav federatedfilesharing federation files files_markdown files_pdfviewer files_sharing files_texteditor files_trashbin files_versions files_videoplayer firstrunwizard gallery impersonate logreader lookup_server_connector mail news nextcloud_announcements notes notifications oauth2 onlyoffice password_policy provisioning_api quota_warning serverinfo sharebymail survey_client systemtags theming twofactor_backupcodes updatenotification workflowengine

Client configuration

Firefox

Operating system: Windows

Thanks

porjo commented 5 years ago

Not only is font size not user configurable, CSS for texteditor overrides child plugins that set their own font size e.g. files_markdown sets font-size to 14px but texteditor forces this back to 13px:

#editor_container div {
    font-size: 13px !important;
}

:cry:

TheNomad11 commented 3 years ago

setting in custom css

#editor_container div {
    font-size: 16px !important;
}

actually works!!