These are chat archives for luyadev/luya

24th
Mar 2017
Alponso Pratama
@alponso_1st_twitter
Mar 24 2017 09:44
Why this method is not working on block view file?
\luya\cms\base\PhpBlockView::registerCss()
I have to use this to make it working:
$this->appView->registerCss($css);
is this by design?
Basil
@nadar
Mar 24 2017 09:49
Yes, this is cause the block view provides additonal helpers to communicate with the block context, this is used very often and is there fore very important.
Alponso Pratama
@alponso_1st_twitter
Mar 24 2017 09:51
So if I want to add additional css or js on my block view, I have to use the second method?
Basil
@nadar
Mar 24 2017 09:51
Yes
Alponso Pratama
@alponso_1st_twitter
Mar 24 2017 09:52
Ok thanks 😁
Rodrigo Z. Armond
@rodzadra
Mar 24 2017 14:10
Hello, There is a way to configure the ngWig to show another button like in this example: https://plnkr.co/edit/TgKThPQjlG4ctzGYk6Kq?p=preview ?
Thank you.
Basil
@nadar
Mar 24 2017 14:20
Not yet - must be implemented into the zaaWysiwyg directive (maybe adding options to provide those buttons)
Rodrigo Z. Armond
@rodzadra
Mar 24 2017 14:50
@nadar thank you.
Rodrigo Z. Armond
@rodzadra
Mar 24 2017 20:19
Hello again, @nadar! I have installed the format plugin (from http://cdn.rawgit.com/stevermeister/ngWig/master/dist/plugins/formats.ngWig.min.js) and change the zaaWysiwyg directive and works. I also enabled the editing / visualization of source code, with the "source-mode-allowed" directive od the ngWig and also worked. The only problem is that the source code viewed does not come beautifully formatted. Do you have any idea how I can integrate this with js-beautify, for example?
(i'm new on Angular)
Basil
@nadar
Mar 24 2017 20:28
Maybe check the issues list on GitHub (https://github.com/stevermeister/ngWig) or create an issue there. Your changes sounds interesting, lookin forward to see it in action