Uploaded image for project: 'OpenOLAT'
  1. OpenOLAT
  2. OO-1090

Allow internal links in HTML editor

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 9.4.0
    • Fix Version/s: 9.4.2
    • Component/s: None
    • Labels:
      None

      Description

      Internal links to course nodes should be allowed in HTML editor, i.e. on description of course nodes.

      This is the patch which adds a regular expression to antisamy for internal olat URLs:

      diff -r 9334a4e2b4be src/main/java/org/olat/core/util/filter/impl/_resources/antisamy-tinymce.xml
      --- a/src/main/java/org/olat/core/util/filter/impl/_resources/antisamy-tinymce.xml	Fri May 09 13:08:21 2014 +0200
      +++ b/src/main/java/org/olat/core/util/filter/impl/_resources/antisamy-tinymce.xml	Wed May 14 15:39:15 2014 +0200
      @@ -33,6 +33,8 @@
       
       		<!--  force non-empty with a '+' at the end instead of '*'
       		-->
      +		<regexp name="olatInternalURL"
      +			value="javascript:parent\.gotonode\(\d+\)" />
       		<regexp name="onsiteURL"
       			value="([\p{L}\p{N}\p{Zs}/\.\?=&amp;\-~_])+" />
       		<regexp name="offsiteURL"
      @@ -116,7 +118,7 @@
       			<regexp-list>
       				<regexp name="onsiteURL" />
       				<regexp name="offsiteURL" />
      -
      +				<regexp name="olatInternalURL" />
       				<!--
       				-->
       			</regexp-list>
      

        Attachments

          Activity

            People

            Assignee:
            srosse Stéphane Rossé
            Reporter:
            stephan Stephan Clemenz
            Tester:
            Florian Gnägi
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 10 minutes
                10m