Files
awo-hamburg-intranet/module/shared_components/quill/toolbar_presets.js
Moritz Weinmann 887ac6a4bb Fix post save and file gallery for knowledgecenter
- Create module/shared_components/quill/ with toolbar_presets.js,
  quill_resize.js and quill_resize.css — missing files caused a JS crash
  in $(document).ready() before the save button's click handler was
  registered, so clicking save did nothing
- Fix filesgallery.php session detection to search any sid* cookie
  dynamically (site session name is 'sidawo', not the hardcoded
  'sidintranet'), fixing the popup showing the homepage instead of
  the gallery
- Revert categories_cardform.php from 3-tab layout back to original
  sidebar layout with full-width permissions section below

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-22 11:49:59 +02:00

47 lines
1.5 KiB
JavaScript

window.QuillToolbarPresets = {
full: function () {
return [
[{ header: [1, 2, 3, 4, 5, 6, false] }],
['bold', 'italic', 'underline', 'strike'],
[{ color: [] }, { background: [] }],
[{ list: 'ordered' }, { list: 'bullet' }],
[{ indent: '-1' }, { indent: '+1' }],
[{ align: [] }],
['blockquote', 'code-block'],
['link', 'image'],
['table'],
['clean']
];
},
compact: function () {
return [
[{ header: [1, 2, 3, false] }],
['bold', 'italic', 'underline'],
[{ list: 'ordered' }, { list: 'bullet' }],
['link', 'image'],
['table'],
['clean']
];
},
betterTableConfig: function () {
return {
operationMenu: {
items: {
insertColumnRight: { text: 'Spalte rechts' },
insertColumnLeft: { text: 'Spalte links' },
insertRowUp: { text: 'Zeile oben' },
insertRowDown: { text: 'Zeile unten' },
mergeCells: { text: 'Zellen verbinden' },
unmergeCells: { text: 'Zellen trennen' },
deleteColumn: { text: 'Spalte löschen' },
deleteRow: { text: 'Zeile löschen' },
deleteTable: { text: 'Tabelle löschen' }
}
}
};
}
};