小编Int*_*oft的帖子

在无apikey的情况下使用带有angular 6的tinyMCE(免费)

我尝试使用angular 6安装tinyMCE。我正在关注https://www.tiny.cloud/docs/integrations/angular2/上的文档。

一切正常,但我必须具有apiKey才能使用tinyMCE云。

我收到错误消息:“此域未在TinyMCE Cloud中注册。开始免费试用以发现我们的高级云服务和专业支持。”

我想使用不带apiKey的自托管版本。

因此,如文档https://www.tiny.cloud/docs/integrations/angular2/#loadingtinymceby自己所解释的那样,我们可以托管tinymce.min.js以禁用apiKey。

如何使用angular 6正确添加tinymce.min.js?

free tinymce api-key angular

2
推荐指数
2
解决办法
5119
查看次数

从php include禁用HTML文件上的PHP脚本执行

我想在php文件脚本中显示html文件内容而不从html文件执行任何php脚本.这是出于安全原因.

Files :  
|_ content 
| |_page.html 
|_page.php
Run Code Online (Sandbox Code Playgroud)

page.php内容:

<div>
    <span>
     <?php include('content/page.html'); ?>
    </span>
</div>
Run Code Online (Sandbox Code Playgroud)

page.html内容:

    <b>Titre :</b> hello world. 
<?php echo "[php execution]"; ?>
Run Code Online (Sandbox Code Playgroud)

当我打开page.html时,我看到:

Titre:你好世界.

当我打开page.php时,我看到:

Titre:你好世界.[php执行]

我不想在page.html上执行任何php脚本,因为用户可以更改内容.我想只包含html内容并禁用所有php脚本执行.

html php php-include

0
推荐指数
1
解决办法
1348
查看次数

标签 统计

angular ×1

api-key ×1

free ×1

html ×1

php ×1

php-include ×1

tinymce ×1