CKEditor Integration
  1. CKEditor Integration
  2. CKEDITOR-159

Add support for creating wiki links with auto-generated label

    Details

    • Type: New Feature New Feature
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.13
    • Fix Version/s: 1.14
    • Labels:
      None
    • Similar issues:

      Description

      The wiki syntax supports links with auto-generated label:

      [[Path.To.Page]]
      

      The way the label is generated can be configured in xwiki.properties. It can be the page title, the page name, etc.

      The CKEditor preserves the links with auto-generated label, as long as you don't modify the (generated) label, but it doesn't offer support for creating such links. An idea is to create links with auto-generated label when the user doesn't specify any label.

      The advantage of these links is that they behave better when you rename or move the linked page. The label being auto-generated is going to be kept in sync.

        Issue Links

          Activity

          Hide
          Marius Dumitru Florea added a comment -

          This feature is now available but I disabled it by default because XWiki uses the page name (not the page title) for auto-generated link labels by default, which can confuse the users because we display the page title in the page tree and in the page suggest.

          You can enable using the following in the Advanced configuration:

          config['xwiki-link'] = config['xwiki-link'] || {};
          config['xwiki-link'].autoGenerateLabels = true;
          

          The link label generation is configurable also.

          Show
          Marius Dumitru Florea added a comment - This feature is now available but I disabled it by default because XWiki uses the page name (not the page title) for auto-generated link labels by default, which can confuse the users because we display the page title in the page tree and in the page suggest. You can enable using the following in the Advanced configuration : config['xwiki-link'] = config['xwiki-link'] || {}; config['xwiki-link'].autoGenerateLabels = true; The link label generation is configurable also.

            People

            • Assignee:
              Marius Dumitru Florea
              Reporter:
              Marius Dumitru Florea
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 3 days, 30 minutes
                3d 30m