Comments (5)
Hello @kwazaro !
Here is the text from doc:
Toolbar
By default, Redactor has the following set of buttons:
['html','formatting','bold','italic','deleted', 'unorderedlist','orderedlist','outdent','indent', 'image','file','link','alignment','horizontalrule']
//additionalbuttons //'underline'
If you need to setup your own set of buttons you can do so using this option:
$('#redactor').redactor({
buttons:['formatting','bold','italic']
});
For more info please see the Toolbar
section from the doc: https://imperavi.com/assets/pdf/redactor-documentation-10.pdf
In context of this specific widget it may look like this:
echo \vova07\imperavi\Widget::widget([
'name' => 'redactor',
'settings' => [
'lang' => 'ru',
'minHeight' => 200,
'buttons' => ['formatting','bold','italic'],
],
]);
from yii2-imperavi-widget.
The problem was with button names. On the Imperavi website there are different button names, like "undo", "redo", "ul", "ol"...
https://imperavi.com/redactor/docs/settings/button/#s-buttons
But it seems that doc is not for this version of redactor in this widget. So your button names like ['html','formatting','bold','italic','deleted', 'unorderedlist','orderedlist','outdent','indent', 'image','file','link','alignment','horizontalrule'] works well. Thanks!
from yii2-imperavi-widget.
Yes, the widget's redactor version is 10.x.x
, which is quite different from what is now on the website, as that one describe the new version instead.
from yii2-imperavi-widget.
Is it possible to upgrade widget's redactor version to latest one?
from yii2-imperavi-widget.
No, because of OEM.
The Yii
community bought only OEM for Redactor 10
.
from yii2-imperavi-widget.
Related Issues (20)
- Как изменить цвет заголовка? HOT 1
- Sticky блок HOT 3
- Конструкция "="" в тегах <img> HOT 2
- Как изменить список удаляемых тегов? HOT 7
- GetImagesAction and GetFilesAction return invalid paths for files in subfolders
- При редактировании теряется форматирование HOT 1
- Some strange happens with versions HOT 1
- Как разрешить отображение тега "script" HOT 7
- Spell Check
- Редактор не сразу появляется при переключении табов компонента yii/bootstrap4/tabs HOT 1
- Проблема с тегом <p> HOT 3
- Редактор дублирует текст при вставке HOT 1
- How to add superscript and subscript buttons?
- Не выводится стиль форматирования h6
- Please add en.js to the language folder
- Тэг p внутри li
- CodeMirror implementation for source
- При загрузке картинки ошибка
- Bugs on adding an image
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from yii2-imperavi-widget.