|
|
|
@ -110,7 +110,7 @@ define([
|
|
|
|
|
var defaultName = Cryptpad.getDefaultName(parsedHash);
|
|
|
|
|
|
|
|
|
|
if (readOnly) {
|
|
|
|
|
$('#pad-iframe')[0].contentWindow.$('#cke_1_toolbox > .cke_toolbar').hide();
|
|
|
|
|
$('#pad-iframe')[0].contentWindow.$('#cke_1_toolbox > .cke_toolbox_main').hide();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* add a class to the magicline plugin so we can pick it out more easily */
|
|
|
|
@ -584,10 +584,10 @@ define([
|
|
|
|
|
editHash = Cryptpad.getEditHashFromKeys(info.channel, secret.keys);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var $existingButton = $bar.find('#cke_1_toolbar_collapser').hide();
|
|
|
|
|
if (!readOnly) {
|
|
|
|
|
// Expand / collapse the toolbar
|
|
|
|
|
var $existingButton = $bar.find('#cke_1_toolbar_collapser');
|
|
|
|
|
var $collapse = Cryptpad.createButton(null, true);
|
|
|
|
|
$existingButton.hide();
|
|
|
|
|
$collapse.removeClass('fa-question');
|
|
|
|
|
var updateIcon = function () {
|
|
|
|
|
$collapse.removeClass('fa-caret-down').removeClass('fa-caret-up');
|
|
|
|
@ -601,6 +601,7 @@ define([
|
|
|
|
|
updateIcon();
|
|
|
|
|
});
|
|
|
|
|
$rightside.append($collapse);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* add an export button */
|
|
|
|
|
var $export = Cryptpad.createButton('export', true, {}, exportFile);
|
|
|
|
|