返回介绍

Checking links as-you-type

发布于 2019-05-06 06:50:15 字数 2811 浏览 938 评论 0 收藏 0

The Link Checker plugin provides a link checking service right within the TinyMCE editor.

Think of Link Checker as “spell-checking for URLs”. But instead of checking spelling, it will let you know if a URL in the editor is valid, invalid or questionable. This is a huge time-saver for anyone who creates content — no more having to double-check URLs, especially in imported content. Not to mention the benefit of no longer frustrating readers with broken hyperlinks.

Link Checker is available as a stand-alone plugin or as part of our Pro Bundle. To learn more about your options, check out our pricing and plans here.

Your have two deployment options. One is super easy with TinyMCE Cloud, the other is to go the more traditional Self-hosted route, requiring an additional server-side component to be installed and configured.

Link Checker cloud setup

TinyMCE Cloud makes setting up Link Checker a breeze. Simply include the linkchecker parameter in your tinymce.init and have our Cloud services do the work for you.

Link Checker self-hosted quick setup

If you’d rather deploy Link Checker via the Self-hosted package, you have a little more work to do. Once you’ve got the server-side component installed, additional configuration to your application.conf file is required. (Don’t forget to restart the Java application server after updating the configuration.)

This element configures the Link Checker service’s built-in cache. When a hyperlink is checked and confirmed valid, the result is cached to save unnecessary network traffic in the future.

Default settings are automatically configured, meaning these settings are optional.

  • capacity - sets the capacity of the cache. The default setting is 500.
  • timeToLiveInSeconds - sets the time-to-live of elements of the cache, measured in seconds. This is the maximum total amount of time that an element is allowed to remain in the cache. The default setting is 86400 seconds, which is one day.
  • timeToIdleInSeconds - sets the time-to-idle of elements of the cache, measured in seconds. This is the maximum amount of time that an element will remain in the cache if it is not being accessed. The default setting is 3600 seconds, which is one hour.

Example:

ephox {
  link-checking.cache {
    capacity = 500
    timeToLiveInSeconds = 86400
    timeToIdleInSeconds = 3600
  }
}

You will also find more Self-hosted setup information on the Link Checker plugin page.

Important note: The Link Checker server currently does not support integration with IBM WebSphere Application Server.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文