Thank you for the great and elegant module.

I would like to extend a functionality of it to to allow to override a template for the link. E.g. so a user can choose custom html, classes, tweet format, etc...

One of the reasons it that we need to add more attributes (e.g. nofollow, noreferrer to the link), some accessibility improvements and be able to choose different styling. Having a custom template would solve all of it for us.

Comments

dealancer created an issue. See original summary.

dealancer’s picture

Priority: Normal » Major
Status: Active » Needs work
StatusFileSize
new7.86 KB

Here is patch which does the job. There are also some minor tweets.

dealancer’s picture

Status: Needs work » Needs review
StatusFileSize
new7.86 KB

Attaching a patch that also resolves $base_url no longer exist in drupal 9 or higher. All previous changes are still there. Please review.

dealancer’s picture

Status: Needs review » Reviewed & tested by the community

works nicely locally

dealancer’s picture

Status: Reviewed & tested by the community » Patch (to be ported)
StatusFileSize
new723 bytes

Patch to be ported and tested in master environment:

* Added additional checks for different methods of checking a patch of the referred or set host set.
* Remove incompatibility as previous patch were derived from the older version of this module

GTG BH!

dealancer’s picture

Status: Patch (to be ported) » Fixed
StatusFileSize
new9.08 KB
vishnukumar’s picture

Thank you @dealancer for spending your time improving the module. I have made few changes and new patch for Drupal 10 suitable.
Apply the patch on 'drupal/tweetable_text_for_ckeditor:^1.2@beta'

tweetable text
tweetable text

  • vishnukumar committed c77dda7 on 1.2.x
    Issue #3313964 by dealancer: Allow to override template
    

  • vishnukumar committed c77dda7 on 1.0.x
    Issue #3313964 by dealancer: Allow to override template
    

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.