-
-
Notifications
You must be signed in to change notification settings - Fork 299
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
Add buttons for creating tables in text editor - SimpleMDE #1531
Comments
I think SimpleMDE already comes with an insert table button, its just not a default option. I'll try it out and see what it does. The button adds a 3x2 table (not counting the column separator) .
As for this, would selected mean that a row would be highlighted or the cursor is in anywhere in the row? |
Resolves kiwitcms#1531 Change adds "table" toolbar option in SimpleMDE config
Change adds "table" toolbar option in SimpleMDE config
Change adds "table" toolbar option in SimpleMDE config
Use cursor position |
I've had a closer look at the simplemde and the API provided and it looks like it would be complicated to implement the appropriate parsing, validation and insertion of the appropriate Markdown text to add new columns & rows in place without breaking the user's markdown formatting. Would it be alright to just provide the add table button and leave it to the user to edit the table for themselves? |
Closing this issue b/c implementing the missing table rows/columns functionality should be something that goes inside the text editor itself and we're not getting any user feedback on this issue. @brymut since you've implemented the button for adding a table markup feel free to claim the bounty attached to this issue. |
Thank you @atodorov, submitted new expense at https://opencollective.com/kiwitcms/expenses/29854 |
The text editor that we use is called SimpleMDE.
Kiwi TCMS needs a way to insert tables in the document for users who are not familiar with the markdown syntax.
SimpleMDE has the ability to define custom buttons so something like the following will do the trick:
Definition of Done:
For more info see the insertTexts and Custom Button examples at:
https://github.com/sparksuite/simplemde-markdown-editor
This issue is part of Kiwi TCMS open source bounty program. For more information see the link(s) in bounty-program milestone
The text was updated successfully, but these errors were encountered: