Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hi how to use the wysiwyg in a GridView ? #3

Open
DrMabuse23 opened this issue Apr 28, 2014 · 0 comments
Open

hi how to use the wysiwyg in a GridView ? #3

DrMabuse23 opened this issue Apr 28, 2014 · 0 comments

Comments

@DrMabuse23
Copy link
Contributor

my test

 [
                'value'=>function($model) {
                    return $model->description;
                },
                'class' => \mcms\xeditable\XEditableColumn::className(),
                'url' => 'editable',
                'dataType'=>'wysihtml5',
                'editable'=>[
                    'id' => 'wysihtml5-editable',
                    "font-styles"=> true, //Font styling, e.g. h1, h2, etc. Default true
                    "emphasis"=> true, //Italics, bold, etc. Default true
                    "lists"=> true, //(Un)ordered lists, e.g. Bullets, Numbers. Default true
                    "html"=> true, //Button which allows you to edit the generated HTML. Default false
                    "link"=> true, //Button to insert a link. Default true
                    "image"=> false, //Button to insert an image. Default true,
                    "color"=> false //Button to change color of font
                ],
                'attribute' => 'description',
                'format' => 'raw',
            ],

generate following js code

$(".editable").editable({"id":"wysihtml5-editable","font-styles":true,"emphasis":true,"lists":true,"html":true,"link":true,"image":false,"color":false});
@DrMabuse23 DrMabuse23 changed the title hi how to use the wysiwyg hi how to use the wysiwyg in a GridView ? Apr 28, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant