Giter Site home page Giter Site logo

Comments (5)

vova07 avatar vova07 commented on May 28, 2024

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.

kwazaro avatar kwazaro commented on May 28, 2024

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.

vova07 avatar vova07 commented on May 28, 2024

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.

kwazaro avatar kwazaro commented on May 28, 2024

Is it possible to upgrade widget's redactor version to latest one?

from yii2-imperavi-widget.

vova07 avatar vova07 commented on May 28, 2024

No, because of OEM.
The Yii community bought only OEM for Redactor 10.

from yii2-imperavi-widget.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.