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

Create Capability for TinyMCE Premium plugins

XMLWordPrintable

    • MOODLE_404_STABLE
    • MDL-79709-master
    • Hide

      Setup

      1. Login as an Admin
      2. Go to Site admin -> Plugins -> Mange editors and ensure TinyMCE is the preferred editor.
      3. Go to Site admin -> Plugins -> Tiny Premium and enter in a valid API key (reach out if you need assistance in getting one. You can also get a free trial at https://www.tiny.cloud/).
      4. Create two users that are not admins called 'User 1' and 'User 2'.

      Test scenario

      1. Log in as an Admin
      2. Go to Site admin -> Users -> Define Roles
      3. Click on 'Add a new role'
      4. Click on 'Continue'
      5. Enter in 'tinypremiumtest' for the Short name field.
      6. Enter in 'Tiny premium test' for the Custom long name field.
      7. Select the 'User' checkbox next to 'Context types where this role may be assigned'
      8. Scroll down and enter in 'accesspremium' into the filter field
      9. CONFIRM there is a result called 'Access Tiny Premium features'
      10. Select the 'Allow' checkbox (if in Advanced mode, choose the 'Allow' radio option).
      11. Click on 'Create this role'
      12. Go to Site admin -> Users -> Browse list of users
      13. Click on 'User 1's name
      14. Under 'Administration', click on 'Preferences'
      15. Under 'Roles', click on 'Assign roles relative to this user'
      16. Click on 'Tiny premium test'
      17. In the right-hand column, search for 'User 1' and add them
      18. Go to Site admin -> Users -> Define roles
      19. Click on the 'Authenticated user' link
      20. Click on the 'Edit' button
      21. In the filter field, search for 'accesspremium' and change the permission to 'Prevent'
      22. Save changes
      23. Log in as 'User 1'
      24. Using the user icon, Go to Profile -> Edit profile
      25. Scroll down to the editor and CONFIRM that you can see the additional Tiny Premium toolbar/menu features.
      26. Log in as 'User 2'
      27. Using the user icon, Go to Profile -> Edit profile
      28. Scroll down to the editor and CONFIRM that you cannot see the additional Tiny Premium toolbar/menu features.
      Show
      Setup Login as an Admin Go to  Site admin -> Plugins -> Mange editors  and ensure TinyMCE is the preferred editor. Go to  Site admin -> Plugins -> Tiny Premium  and enter in a valid API key (reach out if you need assistance in getting one. You can also get a free trial at  https://www.tiny.cloud/ ). Create two users that are not admins called 'User 1' and 'User 2'. Test scenario Log in as an Admin Go to Site admin -> Users -> Define Roles Click on 'Add a new role' Click on 'Continue' Enter in 'tinypremiumtest' for the Short name field. Enter in 'Tiny premium test' for the Custom long name field. Select the 'User' checkbox next to 'Context types where this role may be assigned' Scroll down and enter in 'accesspremium' into the filter field CONFIRM there is a result called 'Access Tiny Premium features' Select the 'Allow' checkbox (if in Advanced mode, choose the 'Allow' radio option). Click on 'Create this role' Go to Site admin -> Users -> Browse list of users Click on 'User 1's name Under 'Administration', click on 'Preferences' Under 'Roles', click on 'Assign roles relative to this user' Click on 'Tiny premium test' In the right-hand column, search for 'User 1' and add them Go to Site admin -> Users -> Define roles Click on the 'Authenticated user' link Click on the 'Edit' button In the filter field, search for 'accesspremium' and change the permission to 'Prevent' Save changes Log in as 'User 1' Using the user icon, Go to Profile -> Edit profile Scroll down to the editor and CONFIRM that you can see the additional Tiny Premium toolbar/menu features. Log in as 'User 2' Using the user icon, Go to Profile -> Edit profile Scroll down to the editor and CONFIRM that you cannot see the additional Tiny Premium toolbar/menu features.
    • 1
    • Team Hedgehog 2023 Sprint 4.1, Team Hedgehog 2023 Sprint 4.2, Team Hedgehog 2023 Sprint 4.3
    • Small

      For TinyMCE premium features charging is done on "per request" basis (number of editor loads), it is then worth implementing a capability that controls if the premium features are available to a user or not. This will allow admins to have more granular control which users can use premium features and in which context.

            david.woloszyn@moodle.com David Woloszyn
            matt.porritt@moodle.com Matt Porritt
            Raquel Ortega Raquel Ortega
            Jun Pataleta Jun Pataleta
            Ron Carl Alfon Yu Ron Carl Alfon Yu
            Votes:
            1 Vote for this issue
            Watchers:
            15 Start watching this issue

              Created:
              Updated:
              Resolved:

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

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