Ticket #1032 (closed defect: fixed)

Opened 20 months ago

Last modified 4 weeks ago

RewriteHashLinks for tinymce

Reported by: ischommer Owned by: sminnee
Priority: medium Milestone:
Component: CMS - TinyMCE editor Version:
Severity: medium effort / impact Keywords:
Cc: Hours:

Description

  • problem: anchor-links entered in tinymce through "link to website" (format: #MyAnchor?) are not linking correctly because of the base-tag on every silverstripe-site (specifically needed for inform-project)
  • fixing this inside the DBObject Text would cause too many side-effects for existing code
  • fix tinymce_improvements.js to automatically rewrite hashlinks on the clientside instead
  • send out a notify to all devs to check sites which use hashlinks

Change History

Changed 19 months ago by sminnee

  • status changed from new to closed
  • resolution set to fixed

Fixed in r35230. The CMS will add a special tag, $CurrentPageURL, to the beginning of the URL. This is replaced by the AbsoluteLinks? method.

Changed 13 months ago by anonymous

  • milestone 2.1.0 deleted

Milestone 2.1.0 deleted

Changed 9 months ago by sharvey

  • status changed from closed to reopened
  • harvest_task set to (Unknown)
  • invoice_sent set to 0
  • resolution fixed deleted

There's still a problem here.

in 2.1.0, if you add a hash link it doesn't add the page URL segment in front, meaning you must add the page yourself in the link.

Am I right in thinking this issue should've solved the problem, by suffixing the page name if you're adding a hash link in the content editor?

Changed 4 weeks ago by sminnee

  • status changed from reopened to closed
  • resolution set to fixed

This has been fixed with a special interface for adding anchors.

Note: See TracTickets for help on using tickets.