javascript - CKEditor激活时如何显示占位符

标签 javascript jquery html ckeditor bootstrap-modal

如何在激活CKEditor或点击编辑时在HTML5 textarea中显示placeholder属性

<textarea id="historyDescription" class="ckeditor" name="historyDescription" placeholder="historyDescription" contenteditable="true" spellcheck="true"> </textarea>

当点击编辑占位符文本时应该显示

最佳答案

您可以使用 Configuration Helper插件来获得这种行为。只需将插件添加到您的构建中,它就会自动运行。

关于javascript - CKEditor激活时如何显示占位符,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39411172/

相关文章:

javascript - 发送超过 2000 个字符的 JSON 数据

javascript - 来自鼠标的粒子 "run away"

javascript - 使用 .load 时 Bootstrap 模态背景高度?

html - 表单嵌套不正确

html - 如何保持元素的高度等于 2 行?

javascript - 在 JavaScript 中,reduce 之后按字段分组不起作用

javascript - 如何在特定页面上运行JS文件

javascript - 是否可以计算 html 内容在默认缩放屏幕上占用的空间?

javascript - 将 var 与 $.getScript() 一起使用

html - 在页面重定向上保持按钮状态