-
-
Notifications
You must be signed in to change notification settings - Fork 582
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
文本控件内插入列表元素 #825
Comments
控件内目前不支持插入列表元素 |
This is something I would use as well. Rather than break the control into multiple, have one single control and all elements inside it like text, checkbox, list, table. Also be able to have a different border or background color for the control that looks like a section of the document. |
你好:
我这边的应用场景其实是管理员维护好报告的模板,页头、页尾、主要内容的格式。
在用户具体使用时,将用户的信息加载进去,同时,用户进行编辑,完成后,需要从中取出用户编辑的一些指定信息同步给第三方。
如涉及到如:
1、模板中设置二维码,相应于占位,根据用户具体信息,将二维码进行替换
2、动态参数表格,先设定一个参数表格,相当于占位,用户使用时,根据用户当前的类型,加载动态的参数表N行、M列,然后用户进行修改
3、获取用户的指定字段富文本内容,同步给第三方
4、从用户中心或是签名应用中,同步用户的签名图片替换相应的占位图片
5、通过模板设置哪些元素不允许删除。不允许在模板外的区域添加内容等
这是一些基本应用。
根据提供的API,我这边现在是修改了部分源码,如二维码设定标识,在用户加载时,将模板中的内容解析替换的方式。很多时候只能获取value解析,然后替换内容区域,再进行重新加载进行处理。我尝试获取id,根据id替换id替换,未重新渲染。
非常感谢你的回复,我一直在看源码,看如何更方便的满足应用的需求。
孟庆德
***@***.***
…------------------ 原始邮件 ------------------
发件人: "Hufe921/canvas-editor" ***@***.***>;
发送时间: 2024年10月2日(星期三) 晚上9:44
***@***.***>;
***@***.******@***.***>;
主题: Re: [Hufe921/canvas-editor] 文本控件内插入列表元素 (Issue #825)
Something like this if control could support other elements inside and some extra styling
image.png (view on web)
With this. we could get text only from history or diagnosis on frontend or backend, without need to render the canvas for that
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
The new element Area supports it now, but it has some issues |
你好!
首先非常感谢您的回复。一直以来都非常关注该应用的更新。
对于您的回复,第3点非常重要,也是最迫切的功能,就是"3 - Unable to make an Area deletable false and editable false",同时,希望Area可以增加像table通过拖拽的形式调整默认高度,有一个最小的高度设置。
如果解决第3点,我们的使用场景的基本功能就可以投入到正常的生产中。非常期待。
最后,再次表示感谢!
孟庆德
***@***.***
…------------------ 原始邮件 ------------------
发件人: "Hufe921/canvas-editor" ***@***.***>;
发送时间: 2024年11月30日(星期六) 上午6:27
***@***.***>;
***@***.******@***.***>;
主题: Re: [Hufe921/canvas-editor] 文本控件内插入列表元素 (Issue #825)
The new element Area supports it now, but it has some issues
1 - There is no visible label for that area during edit mode
2 - Unable to add an Area inside a table
3 - Unable to make an Area deletable false and editable false
If we have this options, I could solve all the problems we currently have in our app
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
version
0.9.93
Link to minimal reproduction
No response
Steps to reproduce
添加表格
添加文本控件
设置列表
What is expected?
可以正常显示到文本控件内,且获取控件值是正常的。
What is actually happening?
Editor Value
No response
System Info
No response
Any additional comments?
No response
The text was updated successfully, but these errors were encountered: