最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

nuget - Issue with the self-hosted version of TinyMCE - Stack Overflow

programmeradmin3浏览0评论

I'm using TinyMCE 7.7.1 in a .NET 8 MVC application, downloading the component from NuGet. Therefore, I'm using the self-hosted version, which doesn't require a commercial license, as explained at /get-tiny/

However, when using this control, I see an "upgrade" button, as if the license wasn't configured correctly. This happens whether I'm using the GPL license, using my API Key (obtained after registration), or even deleting the license_key attribute from the initialization.

TinyMCE UI with Upgrade button

My code is basic:

tinymce.init({
 selector: "#maileditor",
 license_key: 'gpl',
 language: "es",
 height: 600,
 plugins: "lists link image searchreplace visualblocks wordcount help ",
 toolbar: "undo redo | bold italic underline forecolor | align lineheight | numlist bullist outdent indent | link image | removeformat",
});

On the other hand, if instead of using the self-hosted code I use the Cloud version, everything works correctly (but I prefer the self-hosted version).

For the self-hosted version, I use: <script src="/lib/tinymce/tinymce.min.js" referrerpolicy="origin"></script>

For the Cloud version, I use: <script src="/1/[My API Key here]/tinymce/7.1.2/tinymce.min.js" referrerpolicy="origin"></script>

Any ideas on how to fix this?

Thank you very much, best regards.

I've tried setting the GPL license to use, or the personal license I received after registration; but neither has worked.

发布评论

评论列表(0)

  1. 暂无评论