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

Ace на вкладке кэша в Обзоре ресурса? #40

Open
argnist opened this issue Oct 24, 2014 · 0 comments
Open

Ace на вкладке кэша в Обзоре ресурса? #40

argnist opened this issue Oct 24, 2014 · 0 comments

Comments

@argnist
Copy link

argnist commented Oct 24, 2014

Возможно ли добавить Ace туда (т.к. там длинный html-код подсветка бы не помешала).
Попробовал в отдельном плагине на OnDocFormPrerender добавить

<?php
if ($modx->event->name == 'OnDocFormPrerender') {
    if ($modx->controller->config['controller'] == 'resource/data') {
        $modx->controller->addHTML("<script>
        Ext.onReady(function(){
           MODx.ux.Ace.replaceComponent('modx-rdata-buffer', 'text/html', true);
          });
        </script>");
    }
}

Поле заменилось, но оно пустое.

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