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

期待能有全屏的选项 #412

Closed
veitool opened this issue Mar 13, 2023 · 8 comments
Closed

期待能有全屏的选项 #412

veitool opened this issue Mar 13, 2023 · 8 comments
Labels
🚀enhancement New feature or request

Comments

@veitool
Copy link

veitool commented Mar 13, 2023

期待能有全屏的功能选项,以及可参数配置文本域的名称

@sunsonliu
Copy link
Collaborator

收到,“配置文本域的名称”这个是指给textarea增加name属性么?

@sunsonliu sunsonliu added the 🚀enhancement New feature or request label Mar 14, 2023
@veitool
Copy link
Author

veitool commented Mar 14, 2023

收到,“配置文本域的名称”这个是指给textarea添加名称属性吗?

是的,现在好像是以固定code命名。

@sunsonliu
Copy link
Collaborator

已实现相关功能
1、指定文本域的名称,可以在option里增加对editor的配置

editor: {
    name: 'cherry-text', // 设置textarea的name属性值
    autoSave2Textarea: true, // 设置为true后,编辑区的变更会自动同步到textarea里(默认为false)
  }

2、全屏按钮 ,可以在option里增加对toolbar/toolbarRight的配置

toolbars:{
    toolbarRight: ['fullScreen'],
}

@veitool
Copy link
Author

veitool commented Apr 17, 2023

好的,非常感谢!待会用下

@veitool
Copy link
Author

veitool commented Apr 17, 2023

已实现相关功能 1、指定文本域的名称,可以在option里增加对editor的配置

editor: {
    name: 'cherry-text', // 设置textarea的name属性值
    autoSave2Textarea: true, // 设置为true后,编辑区的变更会自动同步到textarea里(默认为false)
  }

2、全屏按钮 ,可以在option里增加对toolbar/toolbarRight的配置

toolbars:{
    toolbarRight: ['fullScreen'],
}

你好,刚下载了 0.8.18 用了下,全屏是可以用了(放在toolbar:['fullScreen',...]中),属性 autoSave2Textarea,toolbarRight 好像在源码中是没有的。
不好意思,是不是还没发布新的?

@sunsonliu
Copy link
Collaborator

哦哦,是的,还没发布,目前只提交到了dev分支哈,需要发布后才能使用(或者直接使用dev分支的)

@veitool
Copy link
Author

veitool commented Apr 17, 2023

哦哦,是的,还没发布,目前只提交到了dev分支哈,需要发布后才能使用(或者直接使用dev分支的)

好的,那待会下dev里的试下先,谢谢!

wty92911 pushed a commit to wty92911/cherry-markdown that referenced this issue May 22, 2023
@RSS1102
Copy link
Collaborator

RSS1102 commented Jun 12, 2023

可以查看这个示例体验:https://tencent.github.io/cherry-markdown/examples/multiple.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🚀enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants