-
Notifications
You must be signed in to change notification settings - Fork 344
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Font size drop down list. #58
Comments
I agree. Considering this app for a client, and they wouldn't use it without the ability to change font sizes. What about a customizable toolbar like CKEditor where you just add the name of the toolbar item you want in the line for the toolbar in the code? |
Use this plugin : if (!RedactorPlugins) var RedactorPlugins = {};
RedactorPlugins.fontsize = {
init: function()
{
var fonts = [10, 11, 12, 14, 16, 18, 20, 24, 28, 30];
var that = this;
var dropdown = {};
$.each(fonts, function(i, s)
{
dropdown['s' + i] = { title: s + 'px', callback: function() { that.setFontsize(s); } };
});
dropdown['remove'] = { title: 'Remove font size', callback: function() { that.resetFontsize(); } };
this.buttonAdd( 'fontsize', 'Change font size', false, dropdown);
},
setFontsize: function(size)
{
this.inlineSetStyle('font-size', size + 'px');
},
resetFontsize: function()
{
this.inlineRemoveStyle('font-size');
}
}; |
Oh!...... Nice solution. Best Regards, |
Hi.... |
Hi...
I integrated redactor editor in my web application. But there are no any setting for font size drop down list. I wont font size values from 6,7,8,9......,96 like in word document font size drop down list. So, what i do?
Thanks in advance.
Mahesh
The text was updated successfully, but these errors were encountered: