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

JSXGraph filter doesn't work with TinyMCE

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • 4.4
    • Text editor TinyMCE
    • MOODLE_404_STABLE

      Unfortunately, if you want to use the JSXGraph filter, the new TinyMCE text editor won't let you. ⁠

      To be able to create different graphs you need to use a specific syntax, similar to this:

      <jsxgraph>

          var brd = JXG.JSXGraph.initBoard(BOARDID, {boundingbox:[-5,5,5,-5], axis:true});
          var p = brd.create('point', [1,2]);
      </jsxgraph>

      Unfortunately Tiny removes the crucial <jsxgraph> tags and replaces them with <p>. So you will see the code as a text rather than the generated graph.

      https://moodle.org/plugins/filter_jsxgraph

            Unassigned Unassigned
            ferenclengyel1 Ferenc Lengyel
            Votes:
            2 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 23 minutes
                23m

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