Ticket #1484747 (closed Feature Requests: fixed)
Suggestion: Customization of tinyMCE
| Reported by: | seansan | Owned by: | estadtherr |
|---|---|---|---|
| Priority: | 5 | Milestone: | 0.2-alpha |
| Component: | Client Scripts | Version: | 0.1-rc2 |
| Severity: | trivial | Keywords: | suggestion |
| Cc: |
Description
I changed the way tinyMCE works because i thought there are just too many buttons for this e-mail program (in current state). This probably my own taste here, but thought I'd share.
I changed two things
1. only 1 bar - to make it more common to use
@program: editor.js
function rcmail_editor_init(skin_path)
{
tinyMCE.init({ mode : 'specific_textareas',
accessibility_focus : false,
apply_source_formatting : true,
theme : 'advanced',
plugins : 'emotions,media,nonbreaking,table,searchreplace,spellchecker,visualchars',
theme_advanced_buttons1 : 'bold,italic,underline,separator,justifyleft,justifycenter,justifyright,justifyfull,separator,bullist,numlist,outdent,indent,separator,emotions,forecolor,backcolor,fontselect,fontsizeselect, separator,undo,redo,image,media',
theme_advanced_buttons2 : '',
theme_advanced_buttons3 : '',
theme_advanced_toolbar_location : 'top',
theme_advanced_toolbar_align : 'left',
font_size_classes : "fontSize1",
extended_valid_elements : 'font[face|size|color|style],span[id|class|align|style]',
content_css : skin_path + '/editor_content.css',
popups_css : skin_path + '/editor_popup.css',
editor_css : skin_path + '/editor_ui.css'
});
}
2. changed the default template to support default font (that it is actually readable) + make it better readable in received messages (not alligned directly to the top and left frame). Often when clicking backspace in an empty message brought the default font back to a very small font
@skins: editor_content.css
body, td, pre {
font-family: Arial;
font-size: 12px;
}
body {
background-color: #FFFFFF;
margin-left: 5px;
margin-top: 1em;
}
Attachments
Change History
Note: See
TracTickets for help on using
tickets.
