admin管理员组文章数量:1355660
import './component/my-component';
is used in src/Resources/app/administration/src/main.js
and within src/Resources/app/administration/src/component/my-component/index.js
the code looks like this:
const {Component, Mixin} = Shopware;
import template from './my-component.html.twig';
Component.override('sw-text-editor', {
template,
created() {
console.log("created");
},
mounted() {
console.log("mounted");
}
});
And within my-component.html.twig
the code looks like this
{% block sw_text_editor_box %}
Override this
{% endblock %}
The console.log functions are not triggered. If there is a console.log in the main.js it gets triggered.
There are no errors while building administration and storefront. What am I missing?
import './component/my-component';
is used in src/Resources/app/administration/src/main.js
and within src/Resources/app/administration/src/component/my-component/index.js
the code looks like this:
const {Component, Mixin} = Shopware;
import template from './my-component.html.twig';
Component.override('sw-text-editor', {
template,
created() {
console.log("created");
},
mounted() {
console.log("mounted");
}
});
And within my-component.html.twig
the code looks like this
{% block sw_text_editor_box %}
Override this
{% endblock %}
The console.log functions are not triggered. If there is a console.log in the main.js it gets triggered.
There are no errors while building administration and storefront. What am I missing?
Share Improve this question edited Mar 30 at 12:57 sh0pware_n00b asked Mar 28 at 16:25 sh0pware_n00bsh0pware_n00b 214 bronze badges1 Answer
Reset to default 0It works when using mt-text-editor
instead of sw-text-editor
本文标签: shopware6Trying to override component swtexteditor in Shopware 67 RCStack Overflow
版权声明:本文标题:shopware6 - Trying to override component sw-text-editor in Shopware 6.7 RC - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744025523a2577975.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论