# CKEditor 5 placeholder feature
## Documentation
This package is a final product of [Implementing an inline widget](https://ckeditor.com/docs/ckeditor5/latest/framework/guides/tutorials/implementing-an-inline-widget.html) tutorial describing how to create a “Placeholder” feature which allow the user to insert a predefined placeholders, like a date or a surname, into the document.
## [Demo](https://ckeditor5-placeholder.netlify.com/)
## Install
```
npm install --save ckeditor5-placeholder
```
## Config
```js
import ClassicEditor from "@ckeditor/ckeditor5-editor-classic/src/classiceditor";
import Placeholder from "ckeditor5-placeholder";
ClassicEditor.create(document.querySelector("#editor"), {
plugins: [
// ...
Placeholder,
],
toolbar: [
// ...
"placeholder",
],
placeholderProps: {
types: ["First Name", "Date"],
},
});
```
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
CKEditor 5占位符功能 文献资料 该软件包是教程的最终产品, 教程描述了如何创建“占位符”功能,该功能允许用户将预定义的占位符(例如日期或姓氏)插入文档中。 安装 npm install --save ckeditor5-placeholder 设定档 import ClassicEditor from "@ckeditor/ckeditor5-editor-classic/src/classiceditor" ; import Placeholder from "ckeditor5-placeholder" ; ClassicEditor . create ( document . querySelector ( "#editor" ) , { plugins : [ // ... Placeholder , ] , toolbar : [ /
资源详情
资源评论
资源推荐
收起资源包目录
ckeditor5-placeholder-master.zip (28个子文件)
ckeditor5-placeholder-master
.gitignore 13B
package.json 1KB
package-lock.json 11KB
src
placeholdercommand.js 812B
placeholderui.js 2KB
placeholder.js 290B
index.js 70B
theme
placeholder.css 131B
placeholderediting.js 3KB
LICENSE 744B
examples
placeholder-demo
.gitignore 125B
.babelrc 245B
.eslintrc 163B
package.json 2KB
webpack
webpack.common.js 1KB
webpack.config.dev.js 837B
webpack.config.prod.js 838B
package-lock.json 888KB
src
scripts
index.js 1003B
index.html 2KB
styles
index.css 489B
.travis.yml 72B
public
favicon.png 580B
.gitkeep 0B
.browserslistrc 145B
README.md 655B
README.md 878B
.prettierrc 46B
共 28 条
- 1
FedAI联邦学习
- 粉丝: 20
- 资源: 4568
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论1