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

tinymce editor in code sample does not accept TAB as input

XMLWordPrintable

    • MOODLE_401_STABLE, MOODLE_402_STABLE, MOODLE_403_STABLE, MOODLE_404_STABLE, MOODLE_405_STABLE

      When using TinyMCE and using insert | code sample, the TAB key to insert TAB in the code does not work. Instead, the focus is lost and moved to the "Cancel" button.

      Steps to replicate:
      1. Go to the course page
      2. Under any section, click “Add an activity or resource”, then click “Page”
      3. Fill in these fields:
      Name: (anything of your choosing), e.g “hello”
      4. In “Page content”:
      Click Insert → Code sample
      Click on the dropdown menu under language , then “Python”
      5. for first line type in “def foo():”
      6. insert a new line by pressing enter
      7. Since we want an indent, we press tab

       

      RESULT: The focus is lost and no tab is inserted. The focus is shifted to the "Cancel" button

            Unassigned Unassigned
            jebarvia Joshua Ebarvia
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

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