'Ckeditor how to change button text
My django site uses the image upload feature. I want to change the send it to the server button text to upload
I have checked what seems like every source file but I cannot filed a reference to button. How would I go about changing it.
I found this posts trying to do the same thing but it is very old
Update:
I dug through what seems like every file but I cannot find the reference to send it to the server not sure what to do at this point.
Solution 1:[1]
Probably too late for your situation, but posting anyway in case others needs a solution in the future (as I just did today):
I found a solution using CKEDITOR this way:
CKEDITOR.on('dialogDefinition', function(ev)
{
var dialogName = ev.data.name;
var dialogDefinition = ev.data.definition;
if (dialogName == 'image')
{
//console.log(dialogDefinition);
dialogDefinition.contents[2].elements[1].label = 'upload';
}
});
You can use the commented out console.log(dialogDefinition) to see the array positions of everything in the dialog window. In short, the contents represents the tabs (in which [2] is the upload tab) and elements represents labels, buttons etc inside each tab.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Anders Hoffmann |

