highcharts / highcharts-editor

https://www.highcharts.com/products/highcharts-editor
Other
250 stars 96 forks source link

Wordpress plugin loads library multiple times which leads to highcharts error #16 #132

Open sweber83 opened 7 years ago

sweber83 commented 7 years ago

The Wordpress plugin loads the highcharts library from the plugin folder via wp_enqueue_script, which is fine. But additionally the code snippets created by the editor each load the libraries from https://code.highcharts.com/ which leads to the library throwing Highcharts error #16.

tw-360vier commented 7 years ago

this seems to be a duplicate of #121 you can fix it with the following php snippet:

add_action('admin_print_footer_scripts', function(){
  echo "<script>highed.option({'includeCDNInExport': false})</script>";
});