View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0007867 | WYSIWYG Editor + Media Gallery | module WYSIWYG Editor + Media Gallery - sub | public | 2025-12-09 13:26 | 2025-12-17 15:12 |
| Reporter | OxidSimonGassenschmidt | Assigned To | |||
| Priority | normal | Severity | feature | Reproducibility | always |
| Status | assigned | Resolution | open | ||
| Summary | 0007867: Summernote adjustment per Modul | ||||
| Description | To make the Summernote code easier to customize via the OXID module, it would be useful to insert several blocks into this template (https://github.com/OXID-eSales/ddoe-wysiwyg-editor-module/blob/v6.0.1/views/twig/ddoewysiwyg.html.twig), as well as to give the autoInitializeSummernote() function a parameter with your own option values for initialization, since Summernote requires destruction and reinitialization for many settings options. To have a reduced toolbar, you seem to use this as javascript atm, this javascript needs to be put in an own Template and an own Renderer-Service, which overwrites the current one, so the own template is used. Sample code: var $editor = $(‘.ddoe-wysiwyg-editor > textarea’); var sn = $editor.data(‘summernote’); $editor.summernote(‘destroy’); sn.options.toolbar = [[‘view’, [‘fullscreen’, ‘codeview’, ‘help’]]]; $editor.summernote(sn.options); | ||||
| Tags | No tags attached. | ||||