mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-02-08 11:12:01 +01:00
proposal just has support for bold icon
This commit is contained in:
parent
cd0f5742f6
commit
ec92562a80
3 changed files with 19 additions and 0 deletions
BIN
etherpad-1.deb
Normal file
BIN
etherpad-1.deb
Normal file
Binary file not shown.
|
@ -104,6 +104,11 @@ exports.minify = true;
|
||||||
*/
|
*/
|
||||||
exports.abiword = null;
|
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
|
* The log level of log4js
|
||||||
*/
|
*/
|
||||||
|
@ -208,6 +213,18 @@ exports.reloadSettings = function reloadSettings() {
|
||||||
if(exports.dbType === "dirty"){
|
if(exports.dbType === "dirty"){
|
||||||
console.warn("DirtyDB is used. This is fine for testing but not recommended for production.");
|
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
|
// initially load settings
|
||||||
|
|
|
@ -56,11 +56,13 @@
|
||||||
</div>
|
</div>
|
||||||
<ul class="menu_left">
|
<ul class="menu_left">
|
||||||
<% e.begin_block("editbarMenuLeft"); %>
|
<% e.begin_block("editbarMenuLeft"); %>
|
||||||
|
<% if(settings.toolbarItems.indexOf("bold") !== -1){ %>
|
||||||
<li class="acl-write" id="bold" data-key="bold">
|
<li class="acl-write" id="bold" data-key="bold">
|
||||||
<a class="grouped-left" data-l10n-id="pad.toolbar.bold.title">
|
<a class="grouped-left" data-l10n-id="pad.toolbar.bold.title">
|
||||||
<span class="buttonicon buttonicon-bold"></span>
|
<span class="buttonicon buttonicon-bold"></span>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
<% } %>
|
||||||
<li class="acl-write" id="italic" data-key="italic">
|
<li class="acl-write" id="italic" data-key="italic">
|
||||||
<a class="grouped-middle" data-l10n-id="pad.toolbar.italic.title">
|
<a class="grouped-middle" data-l10n-id="pad.toolbar.italic.title">
|
||||||
<span class="buttonicon buttonicon-italic"></span>
|
<span class="buttonicon buttonicon-italic"></span>
|
||||||
|
|
Loading…
Reference in a new issue