Just to ensure I understand. Your component will allow the menu to be translated when a non english native uses there browser to translate the table editor context to there native tongue?
If your users are not native speakers of English, you have the option of translating these menu items.
For example: My forum members are Hungarian so I translate these to Hungarian it makes easier to understand to them. It does not depend on the browser language. If you change these texts, it will change for everyone.
Thanks for bringing this up and creating your component
This got me curious though, and I did a little digging. Turns out the external JS library allows you to hook into the strings for translations. I mapped all those to theme translations in this commit:
So if you update the table builder component you can now add translations directly in the theme component settings. This can be helpful if your forum supports multiple translations.
If I start an entry of a cell with = as soon as I press Enter to ‘save’ the entry to the cell, it becomes invisible.
To be clear, once the table is inserted in the markdown code, it is visible again, but any cell entry starting with = is made invisible in the table editor mode.
Interesting… I believe this is because spreadsheet formulas can be entered using =, though formulas are not supported in the theme component. I will look into this.
The theme component uses the pluginAPI to add the button to the cog wheel menu (see code).
You could similarly use the api to add it directly to the toolbar like so:
What I mean is, I would be interested in having the full spreadsheet functionality, i.e. the functions that I insert would be evaluated.
Is there a way to modify this plugin to achieve this?
EDIT: to clarify, I would like the inputs of the spreadsheet editor not be be converted into markdown for insertion, but instead that the entire spreadsheet is inserted (and that functions work).
I’m not entirely sure and would need to look into the JSpreadsheet library a bit more, but briefly looking over, it seems that spreadsheet functions/formulas are a premium feature of the library:
You will likely need to purchase a premium license from JSpreadsheet and modifiy the theme component to use the pro version JS scripts for it to work.
when I try to install this as a theme component with the given git repo link I encounter an error:
Error creating upload asset: jsuites. Original filename Sorry, the file you are trying to upload is not authorized (authorized extensions: jpg, jpeg, png, woff, woff2, svg, eot, ttf, otf, gif, mp4, webm).