Open MurzNN opened 7 years ago
Interesting idea, I was in fact wondering on how to make it easier to enter lots of data. Anyway, a pull request would definitely speed up things ;-)
We can initialise in popup window new ckeditor instance with minimal interface and only table, tr, td tags allowed. So users can fill in it any table data (create-remove rows, columns), also will be allowed clipboard paste from html tables, Libreoffice calc and other formats.
Any news about this feature? I imlement same feature in my custom website code, and it works very good for users!
Here is screenshot of chart settings modal window:
and here is resulting chart:
As implementation, in modal window I render new ckeditor instance, that limited only to table, tr, td tags, and users can easily paste any table into it from clipboard.
More info here https://www.drupal.org/project/charts/issues/3032169
Very often we have chart data as table with name-value columns (for example, in Excel-like xls file or table in browser page). At now we must manually fill each value by hands, and if values is many, this is too long work.
Will be good to have ability to paste table data from clipboard in one field (for example - data rows separated by tabulation) and script will parse them, and build the chart.
So we can add button "Import from clipboard" that replace current form with textarea, and function that converts text rows with tabulation to array. Can you add something like this in your plugin?