Drupal ckeditor 不支持某些 html 标签
Drupal ckeditor not supports some html tags
我在 Drupal 中使用 Ckeditor。
我尝试使用ckeditor在块内容中添加以下代码
<header>
<div class="container">
<div class="row">
<div class="col-lg-12">
<img class="img-responsive" src="img/profile.png" alt="">
<div class="intro-text">
<span class="name">Start Bootstrap</span>
<hr class="star-light">
<span class="skills">Web Developer - Graphic Artist - User Experience Designer</span>
</div>
</div>
</div>
</div>
</header>
但是上面的代码是这样显示的
<header></header>
里面的内容没有显示。我不知道里面发生了什么。有人知道吗?
这与Drupal 和CKEditor 的清理和输出设置有关。实现这一点的最快和最有效的方法是创建一个新的输入格式,例如 "HTML" 通过 /admin/config/content/formats/add 并禁用所有清理处理。这样,您的 HTML 输入 = HTML 输出。
旁注:确保您的 profile/the 管理员 profile/role 是唯一能够使用它的角色,因此只有受信任的用户才能访问此文本格式。
我在 Drupal 中使用 Ckeditor。
我尝试使用ckeditor在块内容中添加以下代码
<header>
<div class="container">
<div class="row">
<div class="col-lg-12">
<img class="img-responsive" src="img/profile.png" alt="">
<div class="intro-text">
<span class="name">Start Bootstrap</span>
<hr class="star-light">
<span class="skills">Web Developer - Graphic Artist - User Experience Designer</span>
</div>
</div>
</div>
</div>
</header>
但是上面的代码是这样显示的
<header></header>
里面的内容没有显示。我不知道里面发生了什么。有人知道吗?
这与Drupal 和CKEditor 的清理和输出设置有关。实现这一点的最快和最有效的方法是创建一个新的输入格式,例如 "HTML" 通过 /admin/config/content/formats/add 并禁用所有清理处理。这样,您的 HTML 输入 = HTML 输出。
旁注:确保您的 profile/the 管理员 profile/role 是唯一能够使用它的角色,因此只有受信任的用户才能访问此文本格式。