feat: add html editor for telegram messages
This commit is contained in:
@@ -96,6 +96,7 @@ class ControllerExtensionModuleTgshop extends Controller
|
||||
public function index(): void
|
||||
{
|
||||
$this->runMaintenanceTasks();
|
||||
$this->injectAssets();
|
||||
$this->injectVueJs();
|
||||
$this->showConfigPage();
|
||||
}
|
||||
@@ -112,7 +113,7 @@ class ControllerExtensionModuleTgshop extends Controller
|
||||
$data['themes'] = self::$themes;
|
||||
$data['telecart_module_version'] = module_version();
|
||||
$data['shop_base_url'] = HTTPS_CATALOG;
|
||||
|
||||
|
||||
$data['action'] = $this->url->link(
|
||||
'extension/module/tgshop',
|
||||
'user_token=' . $this->session->data['user_token'],
|
||||
@@ -272,4 +273,10 @@ class ControllerExtensionModuleTgshop extends Controller
|
||||
|
||||
return $log;
|
||||
}
|
||||
|
||||
private function injectAssets(): void
|
||||
{
|
||||
$this->document->addScript('view/javascript/summernote/summernote.js');
|
||||
$this->document->addStyle('view/javascript/summernote/summernote.css');
|
||||
}
|
||||
}
|
||||
|
||||
@@ -31,4 +31,6 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript" src="view/javascript/summernote/summernote.js"></script>
|
||||
<link href="view/javascript/summernote/summernote.css" rel="stylesheet" />
|
||||
{{ footer }}
|
||||
|
||||
Reference in New Issue
Block a user