Skip to content

Commit 0743fee

Browse files
committed
form macro share assets paths
1 parent c08fc2b commit 0743fee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/templates/form/macros.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ language packages must be downloaded from https://www.tiny.cloud/get-tiny/langua
250250
{% import _self as selfMacros %}
251251
{# check locale file path #}
252252
{% set languageCode = attribute(context.language, 'ISO-639-1') %}
253-
{% set localePath = '/public/share/rich-text-editor/locales/%s.js'|format(languageCode) %}
253+
{% set localePath = 'rich-text-editor/locales/%s.js'|format(languageCode)|pathToShareAsset %}
254254
{% if isFile(localePath) == false %}
255255
{% set config = updateProperty(config, 'validation', updateProperty(config.validation, 'invalidMessage', 'TinyMCE local file missing in %s'|format(localePath))) %}
256256
{% set loadLocale = false %}

0 commit comments

Comments
 (0)