Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-82210

Add support to Font Awesome families

XMLWordPrintable

    • MOODLE_405_STABLE
    • MOODLE_405_STABLE
    • MDL-82210-main
    • Hide

      Setup

      1. Edit lib/classes/output/icon_system_fontawesome.php and around line 100, set 

        'core:e/insert_edit_video' => 'fa-file-video-o'

        to

        'core:e/insert_edit_video' => 'fa-regular fa-file-video'

      2. Purge caches.

       

      Testing scenario

      1. Login as admin.
      2. Go to Site administration > Plugins > Text editors > Manage editors.
      3. Change the order to move the Atto HTML editor in the first place.
      4. Edit the user profile (or any other place where the Atto editor is displayed).
      5. In the Atto editor:
        1. Confirm that the icon for "Insert or edit an audio/video file" is not displayed using the solid version but the regular version.
        2. Confirm the rest of the icons on the page are displayed properly.
      Show
      Setup Edit lib/classes/output/icon_system_fontawesome.php and around line 100, set  'core:e/insert_edit_video' => 'fa-file-video-o' to 'core:e/insert_edit_video' => 'fa-regular fa-file-video' Purge caches.   Testing scenario Login as admin. Go to Site administration > Plugins > Text editors > Manage editors. Change the order to move the Atto HTML editor in the first place. Edit the user profile (or any other place where the Atto editor is displayed). In the Atto editor: Confirm that the icon for "Insert or edit an audio/video file" is not displayed using the solid version but the regular version . Confirm the rest of the icons on the page are displayed properly.
    • 5
    • HQ 2024 Sprint I2.3 Moppies

      The solid family was chosen by default when Font Awesome was upgraded from 4 to 6, but FA6 has more families, like regular.
      However, it would be great to support other FA families by allowing developers/designers to use more icons.

            sarjona Sara Arjona (@sarjona)
            sarjona Sara Arjona (@sarjona)
            Carlos Escobedo Carlos Escobedo
            Ferran Recio Ferran Recio
            Ron Carl Alfon Yu Ron Carl Alfon Yu
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 3 hours, 15 minutes
                3h 15m

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.