proposal just has support for bold icon
parent
cd0f5742f6
commit
ec92562a80
Binary file not shown.
|
@ -104,6 +104,11 @@ exports.minify = true;
|
|||
*/
|
||||
exports.abiword = null;
|
||||
|
||||
/**
|
||||
* The default buttons we should show on the editbar
|
||||
*/
|
||||
exports.toolbarItems = ["bold", "italic", "underline", "orderedList", "button", "indent", "outdent", "undo", "redo", "clearAuthorship", "importExport", "timeslider", "saveRevision", "settings", "shareEmbed", "users"];
|
||||
|
||||
/**
|
||||
* The log level of log4js
|
||||
*/
|
||||
|
@ -208,6 +213,18 @@ exports.reloadSettings = function reloadSettings() {
|
|||
if(exports.dbType === "dirty"){
|
||||
console.warn("DirtyDB is used. This is fine for testing but not recommended for production.");
|
||||
}
|
||||
|
||||
//checks if any toolbar items shouldn't be visible
|
||||
if( settings.toolbarItems ){ // if we have them set..
|
||||
for(var i in exports.toolbarItems){ // for each setting in exports
|
||||
// does it exist in the settings file?
|
||||
var exists = settings.toolbarItems.indexOf(exports.toolbarItems[i] !== -1);
|
||||
if(!exists){
|
||||
exports.toolbarItems.splice(i,1); // if not remove it from the array of buttons
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
// initially load settings
|
||||
|
|
|
@ -56,11 +56,13 @@
|
|||
</div>
|
||||
<ul class="menu_left">
|
||||
<% e.begin_block("editbarMenuLeft"); %>
|
||||
<% if(settings.toolbarItems.indexOf("bold") !== -1){ %>
|
||||
<li class="acl-write" id="bold" data-key="bold">
|
||||
<a class="grouped-left" data-l10n-id="pad.toolbar.bold.title">
|
||||
<span class="buttonicon buttonicon-bold"></span>
|
||||
</a>
|
||||
</li>
|
||||
<% } %>
|
||||
<li class="acl-write" id="italic" data-key="italic">
|
||||
<a class="grouped-middle" data-l10n-id="pad.toolbar.italic.title">
|
||||
<span class="buttonicon buttonicon-italic"></span>
|
||||
|
|
Loading…
Reference in New Issue