ckeditor headings

Questions around the TYPO3 integration and plugins
Forum rules
Always add your TYPO3, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
rvhelp2
Posts: 29
Joined: 29 Oct 2022, 10:10

ckeditor headings

Post by rvhelp2 » 16 Nov 2022, 17:23

I tried to enable headings in the ckeditor.

Code: Select all

Aimeos.ckeditor.toolbar = [
    'heading', '|',
 ...
The "heading" entry has no effect. Do I have to install something additional first?

Thanks

User avatar
aimeos
Administrator
Posts: 7873
Joined: 01 Jan 1970, 00:00

Re: ckeditor headings

Post by aimeos » 17 Nov 2022, 18:42

The "Heading" plugin is part of the CKEditor source shipped with Aimeos:
https://raw.githubusercontent.com/aimeo ... keditor.js

It works pretty well if you place the code into the EXT:<yourext>/Resources/Private/Extensions/<yourext>/themes/admin/jqadm/custom.js file of your own Aimeos extension (Aimeos 2022.10 example):

Code: Select all

Aimeos.ckeditor.toolbar = [
    'heading', '|',
    'link', '|',
    'bold', 'italic', '|',
    'undo', 'redo', '|',
    'specialCharacters', 'removeFormat', '|',
    'bulletedList', 'numberedList', '|',
    'blockQuote', '|',
    'insertTable', 'mediaEmbed', '|',
    'sourceEditing'
];
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

rvhelp2
Posts: 29
Joined: 29 Oct 2022, 10:10

Re: ckeditor headings

Post by rvhelp2 » 18 Nov 2022, 09:40

I tried, but in our case "heading" has no effect. I could add or remove other elements:

Image

User avatar
aimeos
Administrator
Posts: 7873
Joined: 01 Jan 1970, 00:00

Re: ckeditor headings

Post by aimeos » 19 Nov 2022, 08:12

Which Aimeos version do you use? Maybe the "Heading" plugin isn't available in that version. The example was for 2022.10 LTS.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

rvhelp2
Posts: 29
Joined: 29 Oct 2022, 10:10

Re: ckeditor headings

Post by rvhelp2 » 25 Nov 2022, 09:46

i replaced CKEditor.js and components/html-editor.js in 22.4 with 22.10. Now it workes. Thanks

Post Reply