D_Inventor
09/28/2022, 10:49 AMD_Inventor
09/28/2022, 10:50 AMjson
{
"Umbraco":{
"CMS":{
"RichTextEditor":{
"Commands":[
{
"Alias": "myplugin",
"Name": "My plugin",
"Mode": "All"
}
],
"Plugins":[
"myplugin"
]
}
}
}
}
You can probably play with the names here to a certain degree, I am not sure how exact these need to be.D_Inventor
09/28/2022, 10:52 AMwwwroot/umbraco/lib/tinymce/plugins/myplugin/plugin.min.js
javascript
// register plugin
tinymce.PluginManager.add("myplugin", function (editor)
{
editor.addButton("myplugin", {
text: "myplugin",
style: "background-color:rgb(255, 200, 0); color:rgb(255, 0, 105)!important;",
classes: "myclass",
tooltip: "My cool plugin",
onclick: function () {
alert("Hello world!");
// your custom logic can fit here!
}
})
});
That should be all you need to create the button, though it's likely not visible yetD_Inventor
09/28/2022, 10:52 AMD_Inventor
09/28/2022, 10:53 AMjnprov
09/28/2022, 1:25 PMjnprov
09/28/2022, 1:40 PMhackerman2
11/21/2022, 12:58 PMD_Inventor
11/21/2022, 2:26 PMhackerman2
11/21/2022, 2:50 PMwwwroot/umbraco
directory doesn't existhackerman2
11/21/2022, 2:54 PMD_Inventor
11/21/2022, 4:07 PM