Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve interactive guidance after creating an empty doc #10528

Closed
Vanessa219 opened this issue Mar 6, 2024 · 14 comments
Closed

Improve interactive guidance after creating an empty doc #10528

Vanessa219 opened this issue Mar 6, 2024 · 14 comments
Assignees
Milestone

Comments

@Vanessa219
Copy link
Member

https://ld246.com/article/1673160071322/comment/1709687770948?r=Vanessa#comments

@88250 88250 changed the title Improve empty doc Improve interactive guidance after creating an empty doc Mar 6, 2024
@TCOTC
Copy link
Contributor

TCOTC commented Mar 20, 2024

我觉得像飞书这样把模板放在空白页面的底部也不错,不会干扰到正常输入:

image

image

@TCOTC
Copy link
Contributor

TCOTC commented Jun 20, 2024

还可以参考现在的 Notion :

image

@TCOTC
Copy link
Contributor

TCOTC commented Jun 20, 2024

#11770

In what scenarios do you need this feature?

新建文档的时候,正文首行可以加一行浅灰色文本,比如 输入文本,或按下 "/" 插入元素

image

Describe the optimal solution

类似这样的效果:

image

image

@Vanessa219 Vanessa219 self-assigned this Jun 21, 2024
@Vanessa219
Copy link
Member Author

这个好像更简洁了,只需要在第一个空段落中加一下提示。

@TCOTC
Copy link
Contributor

TCOTC commented Jun 21, 2024

我觉得在页面底下列出模板会比呼出菜单方便得多,点一下就能应用模板了

@Vanessa219
Copy link
Member Author

新建的时候可以指定模版,好像没有必要了,如果是新手的话,默认的模版是空的。

@TCOTC
Copy link
Contributor

TCOTC commented Jun 23, 2024

所以没有模板的就不需要显示这个,或者在 设置 - 编辑器 里给一个开关

@Vanessa219
Copy link
Member Author

新用户没有模版本身就不需要显示。
老用户已经知道使用规则,感觉也不需要了。不然的话首先的去设置,然后还需要设置需要的模版。如果实在需要的话可以使用日记来替代,然后选择需要使用的模版。

@TCOTC
Copy link
Contributor

TCOTC commented Jun 25, 2024

那就只加一句 输入文本,或按下 "/" 插入元素 ,模板功能留给插件实现好了。

Vanessa219 added a commit that referenced this issue Jun 27, 2024
@Vanessa219 Vanessa219 added this to the 3.1.0 milestone Jun 27, 2024
@TCOTC
Copy link
Contributor

TCOTC commented Jul 3, 2024

@Vanessa219 如果文档中已经有其他内容了,就不需要一直显示「写点什么,或按下 ' / ' 查看命令」

default.webm

Vanessa219 added a commit that referenced this issue Jul 3, 2024
@TCOTC
Copy link
Contributor

TCOTC commented Jul 5, 2024

@Vanessa219 这个貌似是用 API 插入内容块,希望也能处理一下:

default.webm

@Vanessa219
Copy link
Member Author

这个 API 前端无法拦截,需要插件作者自己处理一下

editorElement.querySelectorAll(".protyle-wysiwyg--empty").forEach(item => {
  item.classList.remove("protyle-wysiwyg--empty");
});

@jabobian
Copy link

jabobian commented Aug 29, 2024

能否提供开关,不要显示这个 ·写点什么, 或按下'/' 查看命令·
真的感觉没有必要,新建一个文档显示一片空白多好,一张白纸。看到一段重复出现的文字,脑子就会多一点负担,感觉是被重复洗脑。

这个文字以前版本本来就没有。

@Vanessa219
Copy link
Member Author

高级用户用插件吧

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants