CKEditor激活时如何显示占位符
How to display the placeholder when CKEditor is activated
如何在激活CKEditor或点击编辑
时在HTML5文本区域中显示占位符属性
<textarea id="historyDescription" class="ckeditor" name="historyDescription" placeholder="historyDescription" contenteditable="true" spellcheck="true"> </textarea>
当点击编辑占位符文本时应该显示
var config = {};
config.placeholder = 'Place holder';
CKEDITOR.replace("editor1" , config );
您可以使用 Configuration Helper 插件来获得该行为。只需将插件添加到您的构建中,它就会自动运行。
如何在激活CKEditor或点击编辑
时在HTML5文本区域中显示占位符属性<textarea id="historyDescription" class="ckeditor" name="historyDescription" placeholder="historyDescription" contenteditable="true" spellcheck="true"> </textarea>
当点击编辑占位符文本时应该显示
var config = {};
config.placeholder = 'Place holder';
CKEDITOR.replace("editor1" , config );
您可以使用 Configuration Helper 插件来获得该行为。只需将插件添加到您的构建中,它就会自动运行。