添加API Key后仍收到Tiny Cloud域名未注册提示的问题
解决TinyMCE "This domain is not registered with Tiny Cloud" 问题
我使用了TinyMCE官方Angular示例代码:
<editor [init]="{ apikey: '<secret>', height: 500, plugins: [ 'a11ychecker','advlist','advcode','advtable','autolink','checklist','export', 'lists','link','image','charmap','preview','anchor','searchreplace','visualblocks', 'powerpaste','fullscreen','formatpainter','insertdatetime','media','table','help','wordcount' ], toolbar: 'undo redo | casechange blocks | bold italic backcolor | \ alignleft aligncenter alignright alignjustify | \ bullist numlist checklist outdent indent | removeformat | a11ycheck code table help' }" initialValue="Welcome to TinyMCE Angular"></editor>
已确认API Key和账号正确,但仍收到提示:"This domain is not registered with Tiny Cloud"。
以下是针对性的排查和解决步骤:
- 检查域名注册状态:登录Tiny Cloud后台,确认当前项目的允许域名列表中包含你正在使用的域名。注意区分开发环境(如
localhost:4200)和生产环境域名,端口号需完全匹配,不能省略。 - 清除浏览器缓存:浏览器可能缓存了旧的域名验证信息,按
Ctrl+Shift+R(Windows/Linux)或Cmd+Shift+R(Mac)强制刷新页面,或直接清除站点缓存后重试。 - 确认API Key绑定项目:确保使用的API Key属于当前配置的项目,Tiny Cloud中每个项目对应独立的API Key,不要混用不同项目的Key。
- 检查初始化配置语法:确保
apikey字段拼写正确(小写,不是apiKey),引号包裹格式无误,避免因语法错误导致配置未生效。 - 本地开发临时方案:如果是本地开发测试,可在初始化配置中添加
cloud_service_url: 'https://cdn.tiny.cloud/1/<你的API Key>/tinymce/6',强制指定云服务地址,跳过域名验证的缓存问题。
内容的提问来源于stack exchange,提问作者Jerome
相关产品推荐
相关产品推荐

