{"id":49003170,"url":"https://github.com/bfh/moodle-tiny_fontcolor","last_synced_at":"2026-04-18T19:07:30.262Z","repository":{"id":157137493,"uuid":"623578687","full_name":"bfh/moodle-tiny_fontcolor","owner":"bfh","description":null,"archived":false,"fork":false,"pushed_at":"2026-04-17T19:27:36.000Z","size":292,"stargazers_count":2,"open_issues_count":0,"forks_count":6,"subscribers_count":7,"default_branch":"main","last_synced_at":"2026-04-17T20:22:26.664Z","etag":null,"topics":["hacktoberfest","moodle-plugin","open-source"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bfh.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGES.md","contributing":null,"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,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-04-04T16:48:12.000Z","updated_at":"2026-04-17T19:27:40.000Z","dependencies_parsed_at":"2024-04-25T08:27:47.808Z","dependency_job_id":"3f108c00-eb1e-4a72-9814-a0ae6c7989d0","html_url":"https://github.com/bfh/moodle-tiny_fontcolor","commit_stats":null,"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"purl":"pkg:github/bfh/moodle-tiny_fontcolor","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bfh%2Fmoodle-tiny_fontcolor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bfh%2Fmoodle-tiny_fontcolor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bfh%2Fmoodle-tiny_fontcolor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bfh%2Fmoodle-tiny_fontcolor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bfh","download_url":"https://codeload.github.com/bfh/moodle-tiny_fontcolor/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bfh%2Fmoodle-tiny_fontcolor/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31980845,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T17:30:12.329Z","status":"ssl_error","status_checked_at":"2026-04-18T17:29:59.069Z","response_time":103,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["hacktoberfest","moodle-plugin","open-source"],"created_at":"2026-04-18T19:07:29.256Z","updated_at":"2026-04-18T19:07:30.235Z","avatar_url":"https://github.com/bfh.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"moodle-tiny_fontcolor\n========================\n\n![Release](https://img.shields.io/badge/Release-1.3-blue.svg)\n[![Moodle Plugin CI](https://github.com/bfh/moodle-tiny_fontcolor/actions/workflows/moodle-plugin-ci.yml/badge.svg?branch=main)](https://github.com/bfh/moodle-tiny_fontcolor/actions/workflows/moodle-plugin-ci.yml)\n[![PHP Support](https://img.shields.io/badge/php-8.1--8.4-blue)](https://github.com/bfh/moodle-tiny_fontcolor/action)\n[![Moodle Support](https://img.shields.io/badge/Moodle-4.1--5.2-orange)](https://github.com/bfh/moodle-tiny_fontcolor/actions)\n[![License GPL-3.0](https://img.shields.io/github/license/bfh/moodle-tiny_fontcolor?color=lightgrey)](https://github.com/bfh/moodle-tiny_fontcolor/blob/main/LICENSE)\n[![GitHub contributors](https://img.shields.io/github/contributors/bfh/moodle-tiny_fontcolor)](https://github.com/bfh/moodle-tiny_fontcolor/graphs/contributors)\n\n## Installation\n\n- Unzip the contents of the zip archive into the Moodle `\u003cmoodle_base\u003e/lib/editor/tiny/plugins/fontcolor` directory,\n  (`\u003cmoodle_base\u003e/public/lib/editor/tiny/plugins/fontcolor` as of Moodle 5.1)\n- As a Moodle Admin go to Site Administration -\u003e Plugins -\u003e Text Editors -\u003e TinyMCE editor -\u003e Tiny text color/text background color settings\nand add a view color names and color codes for at least on of the setting \"Available text colors\" or \"Available text background colors\".\n- You may also enable the color picker for text color or background color.\n \nIf no colors are available and the color picker is disabled then the\nmenu item and button in the TinyMCE editor will not appear. This is valid for both,\nthe text color setting and the background color setting.\n\nThe color name can be an arbitrary string e.g. Red or Dark Green or whatever you name\nyour color. The name can be also the \"corporate name\" e.g. that is used in any style guides\nof the corporate identity at your institution.\n\n### Colorscheme\n\nIf you want a predefined color scheme, then you may add the json from\nthe file `colorscheme.json` into the settings `textcolors` and/or `backgroundcolors`\nin the plugin settings. This can be done by e.g.\n\n```\nUPDATE config_plugins\nSET value = '\u003cjson_string\u003e'\nWHERE plugin = 'tiny_fontcolor' AND name = 'textcolors';\n```\n\n### Multilanguage support\n\nColor names may also use language tags for the color names. Text filters\nare applied. For example setting black and white with German and English\nlabels would look like this:\n\n```\n[\n    {\n        \"name\": \"\u003cspan class=\\\"multilang\\\" lang=\\\"de\\\"\u003eSchwarz\u003c/span\u003e\u003cspan class=\\\"multilang\\\" lang=\\\"en\\\"\u003eBlack\u003c/span\u003e\",\n        \"value\": \"#000000\"\n    },\n    {\n        \"name\": \"\u003cspan class=\\\"multilang\\\" lang=\\\"de\\\"\u003eWeiss\u003c/span\u003e\u003cspan class=\\\"multilang\\\" lang=\\\"en\\\"\u003eWhite\u003c/span\u003e\",\n        \"value\": \"#ffffff\"\n    }\n]\n```\n\nThe value of the `name` property can be copied as it is, in the admin settings area.\n\nThe name of the color is used as a tooltip in the editor when hovering\nover the appropriate color square.\n\n### Use CSS classes\n\nSince version 1.0 there is a mode to use css classes for defining colors, instead of having\nthe color code defined directly in the `style` attribute. This feature addresses\nthe issue [CSS Rules rather than style attribute #18](https://github.com/bfh/moodle-tiny_fontcolor/issues/18).\n\nThere are a few things to mention when using css classes over the color codes:\n\n- Export and import courses/activities across Moodle sites will loose the color\n  information because the css classes with the colors may not exist on the target\n  site. In most use cases you will probably duplicate activities or courses within\n  the same instance (course copy, sharing cart). In these cases the colors will also\n  work on the copied item.\n- Deinstalling the plugin will leave the colors because the css is stored in the\n  theme settings.\n- The class names are derived from the descriptive color names. Invalid characters\n  will be filtered, html is stripped (in case you use multilanguage annotation from\n  Moodle).\n- CSS classes with the appropriate styles are stored in the custom scss settings\n  of all installed themes. Whenever these settings are changed manually, be careful\n  not to remove the fontcolor styles. They can be applied again when saving the\n  color settings of the plugin in the site administration.\n- The color picker in the editor is not available when the css classes are in use.\n  With the color picker you may use an arbitrary color that is not defined in the\n  css classes, and so no corresponding class name can be found.\n\nThere is no easy switch between the use of css classes and the use of the style\nattributes. Whenever you change the setting, remember that existing content is\nnot changed. When editing the content, the plugin will only change the colors in\nthe specified mode.\n\n## Version History\n\nSee [Changes](CHANGES.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbfh%2Fmoodle-tiny_fontcolor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbfh%2Fmoodle-tiny_fontcolor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbfh%2Fmoodle-tiny_fontcolor/lists"}