Comments (8)
see this https://www.brainbell.com/javascript/making-resizable-table-js.html
this is perfect.
also, this may help https://www.brainbell.com/javascript/download/demo-resizable.html
this is good article https://medium.com/the-z/making-a-resizable-div-in-js-is-not-easy-as-you-think-bda19a1bc53dthis is for an editor https://www.froala.com/wysiwyg-editor/v2.0/examples/resize-table
Sorry, if you are already searched and saw these.
I replaced your tool (sorry :() with this method https://www.brainbell.com/javascript/making-resizable-table-js.html
and removed the colgroup, and It's working even if the table is centered or in the right. but col-tool is used in the operations menu so I need to deal with this
from quill-better-table.
see this https://www.brainbell.com/javascript/making-resizable-table-js.html
this is perfect.
also, this may help https://www.brainbell.com/javascript/download/demo-resizable.html
this is good article https://medium.com/the-z/making-a-resizable-div-in-js-is-not-easy-as-you-think-bda19a1bc53d
this is for an editor https://www.froala.com/wysiwyg-editor/v2.0/examples/resize-table
Sorry, if you are already searched and saw these.I replaced your tool (sorry :() with this method https://www.brainbell.com/javascript/making-resizable-table-js.html and removed the colgroup, and It's working even if the table is centered or in the right. but col-tool is used in the operations menu so I need to deal with this
@KMLX28 can you share your code sir on how you implemented it?
from quill-better-table.
The main problem I see with the alignment is with column-width-tool when I center the table the tool breaks.
from quill-better-table.
@MuhammedAlkhudiry Yes. Since the column-width calculation depend on locations of domNode.getBoundingClientRect()
, the alignment changes will make calculation errors.
from quill-better-table.
do you know any other API (to change the size of an element by dragging)?, I believe It's worth rebuilding the tool just to make it like Word and Google Docs,
from quill-better-table.
see this https://www.brainbell.com/javascript/making-resizable-table-js.html
this is perfect.
also, this may help https://www.brainbell.com/javascript/download/demo-resizable.html
this is good article https://medium.com/the-z/making-a-resizable-div-in-js-is-not-easy-as-you-think-bda19a1bc53d
this is for an editor https://www.froala.com/wysiwyg-editor/v2.0/examples/resize-table
Sorry, if you are already searched and saw these.
from quill-better-table.
@MuhammedAlkhudiry thanks for your detailed reply~ quill-better-table
uses colgroup
and col
html5 tags to control the width of columns, these tags are specialized for managing attributes of table columns.
Actually, I mean the calculations of most operations(like: merge, unmerge, select, insert, delelte) depend on the locations(got by domNode.getBoundingClientRect()
) of DOM. The alignment changes will change the locations of DOM.
I think that it need to modify the location calculations for support alignment.
from quill-better-table.
You are welcome:)
That's cool. It looks like you have made the table module more powerful~
I will seriously consider your suggests.
from quill-better-table.
Related Issues (20)
- Cannot center table with align tool.
- Hope to upgrade to Quill version 2.0.0 HOT 3
- display bug
- Selection tool not aligned when horizontal scrollbar is present
- can't input list item.
- Uncaught TypeError: Cannot read properties of undefined (reading 'next') HOT 1
- 如何修改单元格的width HOT 1
- Unexpected token ':' in Angular Project HOT 2
- How can I put the "merged function" into the toolbar?
- lower performance when paste a large doc which include many tables
- 怎样将table的Delta转换成html
- Modify column to specified width
- <p>` tags are adding instead of table. HOT 3
- TypeError: Cannot read properties of null (reading 'descendants')
- Cannot read properties of undefined (reading 'pop') HOT 5
- Are there plans to fix bugs, add features for this module?
- Error: [Parchment] Unable to create table blot
- Not working on quill v2.0.0-beta.0
- 作者大佬还更新吗?table 插件用不了,是不是紧跟一下 quill 的更新啊
- Operation-Menu goes outside screen size when Quill is near bottom: HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from quill-better-table.