Jump to content
View in the app

A better way to browse. Learn more.

IPBMafia.ru - поддержка Invision Community, релизы, темы, плагины и приложения

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Редактирование функционала кнопок CKeditor

Featured Replies

Posted

Уважаемое сообщество, столкнулся с такой проблемой!!! в редакторе CKeditor нужно изменить функционал на кнопках/

Версия движка форума 4.2.5
Столкнулся с проблемой куда писать параметры, что бы получилось универсально.
Вот пример:
Хочу изменить Color List убрать дефолтовый и вписать усеченный, отключить параметр config.colorButton_enableAutomatic = false;
Документация описания https://docs.ckeditor.com/ckeditor4/docs/#!/guide/dev_colorbutton но куда вписывать я так и не понял.
Если верить и следовать данному хелпу https://invisioncommunity.com/4guides/themes-and-customizations/tips-tricks_362/styling-ckeditor-r178/
Разработчик пишет, что 95% можно отредактировать функционал CKeditor в custom CSS.

Просьба помочь с данной проблемой.
Заранее благодарен за помощь.

applications/core/interface/ckeditor/ckeditor/config.js

В конец перед закрывающей скобкой "}" добавляй через запятую нужные конфиги:

a.colorButton_colors="aaa,bbb,ccc,ddd,eee,fff,abcdef", //свой список цветов;
a.colorButton_enableAutomatic=false, //скрыть кнопку "Автоматически";
a.colorButton_enableMore=false //скрыть кнопку "Ещё цвета...";

 

  • Author
3 часа назад, LastLife сказал:

applications/core/interface/ckeditor/ckeditor/config.js

В конец перед закрывающей скобкой "}" добавляй через запятую нужные конфиги:

 

 только немного по другому сделал, что бы при обновлении код не перезаписали, без скобок в конец конфига.

CKEDITOR.config.colorButton_colors = '1abc9c,2ecc71,3498db,9b59b6,4e5f70,f1c40f';

Тему можно закрывать

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Ответить в этой теме...

Последние посетители 0

  • No registered users viewing this page.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.