Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {AiEditor} from "./core/AiEditor.ts";
// @ts-ignore
window.aiEditor = new AiEditor({
element: "#aiEditor",
placeholder: "点击输入内容1...",
placeholder: "点击输入内容...",
contentRetention: true,
// toolbarSize: 'small',
// toolbarSize:'large',
Expand Down
3 changes: 2 additions & 1 deletion src/styles/aiecontent.less
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,8 @@
padding: 0 3px;
}

p.is-editor-empty:first-child::before {
p.is-editor-empty:first-child::before,
p.is-empty::before {
color: var(--aie-text-placeholder-color);
content: attr(data-placeholder);
float: left;
Expand Down