paulo_webreality
10/11/2023, 3:59 PMravimotha
10/11/2023, 11:24 PMpaulo_webreality
10/12/2023, 8:32 AMravimotha
10/12/2023, 8:33 AMpaulo_webreality
10/12/2023, 8:36 AMmistyn8
10/12/2023, 8:51 AMinsertfile
?
the tinymce.init suggests it's insertfile
too.. (at least for tinymce5) https://www.highcharts.com/blog/tutorials/how-to-integrate-highcharts-editor-into-tinymce-editor/paulo_webreality
10/12/2023, 9:56 AMravimotha
10/12/2023, 10:50 AMpaulo_webreality
10/12/2023, 11:06 AMravimotha
10/12/2023, 11:07 AMpaulo_webreality
10/12/2023, 4:08 PMmistyn8
10/12/2023, 6:31 PM"RichTextEditor": {
"Plugins": ["highcharts" ],
"Commands": [
{
"Alias": "highcharts",
"Name": "High Charts",
"Mode": "Insert"
}
]
}
highcharts-editor.tinymce.js
into \wwwroot\umbraco\lib\tinymce\plugins\highcharts\plugin.min.js
app_plugins/highcharts
gets past the error.. but then no button/menuitem appears.
{
"javascript": [
"~/App_Plugins/HighCharts/backoffice/highcharts-editor.js"
],
"css": [
"~/App_Plugins/HighCharts/backoffice/highcharts-editor.min.css"
]
}
addMenuItem
isn't supported but addButton
is so update
if (tinymce.majorVersion > 4) {
editor.ui.registry.addButton('highcharts', {
text: 'Highcharts (Interactive)',
icon: 'sharpen',
onAction: function (e) {...
}
});
}
package.manifest
removes that.. but then get there is a problem with your chart
think that might be duplicating the core highcharts though{
"javascript": [
"~/App_Plugins/HighCharts/backoffice/highcharts-editor.js",
"~/App_Plugins/HighCharts/backoffice/highcharts.js"
],
"css": [
"~/App_Plugins/HighCharts/backoffice/highcharts-editor.min.css"
]
}
paulo_webreality
10/13/2023, 11:18 AMmistyn8
10/17/2023, 10:25 AMhighcharts-editor.tinymce.js
into \wwwroot\umbraco\lib\tinymce\plugins\highcharts\plugin.min.js
paulo_webreality
10/17/2023, 10:48 AM