Skip to content

websight-io/websight-rte-extensions

Repository files navigation

WebSight RTE Extensions

WebSight RTE Extensions contains extensions for WebSight Rich Text Editor dialog field.

Email extension

Email plugin encrypt email addresses in case to prevent spam messages. Decryption happens after the page load, therefore plugin must be used with a decryption script, which should be added independently on the page. Script code:

window.addEventListener('load', () => {
    const links = document.querySelectorAll('[data-part1][data-part2][data-part3]');
    for (const link of links) {
      const attrs = link.dataset;
      link.setAttribute(
        'href',
        `mailto:${attrs.part1}@${attrs.part2}.${attrs.part3}`
      );
    }
});

About

No description, website, or topics provided.

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •