feat(ckeditor): add emoji functionality

This commit is contained in:
Elian Doran
2025-05-07 18:27:37 +03:00
parent 1d577bffd3
commit aabd3da8bf
7 changed files with 33 additions and 5 deletions

View File

@@ -81,6 +81,7 @@ module.exports = composePlugins(
}));
inlineSvg(config);
externalJson(config);
return config;
}
@@ -100,4 +101,16 @@ function inlineSvg(config) {
resourceQuery: /raw/,
type: 'asset/source',
});
}
function externalJson(config) {
if (!config.module?.rules) {
return;
}
// Add a rule for prepending ?external.
config.module.rules.push({
resourceQuery: /external/,
type: 'asset/resource',
});
}