Remove styling info.
This commit is contained in:
@@ -274,6 +274,10 @@ export const useLabelEditorStore = defineStore('label_editor_store', {
|
||||
async updateArticle(article: Article) {
|
||||
if (this.article != null) {
|
||||
try {
|
||||
if (article.ingredients != null) {
|
||||
article.ingredients = article.ingredients.replace(/style="[^"]*"/g, '');
|
||||
}
|
||||
|
||||
let updatedArticle = await $fetch<Article>(this.config.public.url + '/article/' + article.id, {
|
||||
method: 'POST',
|
||||
body: JSON.stringify(article),
|
||||
|
||||
Reference in New Issue
Block a user