@uxf/wysiwyg 11.73.0 → 11.74.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -1
- package/package.json +3 -3
- package/translations/translations.d.ts +405 -5
- package/translations/translations.js +404 -4
- package/ui/button/insert-button-modal-content.js +9 -9
- package/ui/components/modal/modal-button-cancel.js +3 -3
- package/ui/floating-link.js +8 -8
- package/ui/image/insert-image-modal-content.js +9 -7
- package/ui/toolbar/buttons/button-toolbar-button.js +3 -3
- package/ui/toolbar/buttons/image-toolbar-button.js +3 -3
- package/ui/toolbar/buttons/link-toolbar-button.js +3 -3
- package/ui/toolbar/buttons/undo-redo-button-group.js +4 -4
- package/ui/toolbar/buttons/video-toolbar-button.js +3 -3
- package/ui/toolbar/toolbar.js +16 -16
- package/ui/video/insert-video-modal-content.js +9 -7
- package/ui/video/video-element.js +3 -3
- package/wysiwyg-editor.d.ts +0 -2
- package/wysiwyg-editor.js +6 -8
- package/translations/context.d.ts +0 -2
- package/translations/context.js +0 -9
- package/translations/cs.d.ts +0 -52
- package/translations/cs.js +0 -55
- package/translations/en.d.ts +0 -2
- package/translations/en.js +0 -55
- package/translations/sk.d.ts +0 -2
- package/translations/sk.js +0 -55
|
@@ -4,18 +4,18 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.LinkToolbarButton = void 0;
|
|
7
|
+
const translations_1 = require("@uxf/core-react/translations");
|
|
7
8
|
const react_1 = __importDefault(require("react"));
|
|
8
9
|
const hooks_1 = require("../../../hooks");
|
|
9
10
|
const constants_1 = require("../../../plugins/link/constants");
|
|
10
11
|
const is_link_selected_1 = require("../../../plugins/link/transforms/is-link-selected");
|
|
11
12
|
const trigger_link_insert_or_edit_1 = require("../../../plugins/link/transforms/trigger-link-insert-or-edit");
|
|
12
|
-
const context_1 = require("../../../translations/context");
|
|
13
13
|
const utils_1 = require("../../../utils");
|
|
14
14
|
const toolbar_button_1 = require("./toolbar-button");
|
|
15
15
|
const CLASS_NAME = "uxf-wysiwyg__toolbar-button";
|
|
16
16
|
const LinkToolbarButton = (props) => {
|
|
17
17
|
var _a, _b;
|
|
18
|
-
const t = (0,
|
|
18
|
+
const t = (0, translations_1.useUxfTranslation)();
|
|
19
19
|
const editor = (0, hooks_1.useUxfPlateEditorState)(props.plateId);
|
|
20
20
|
const isLink = (0, is_link_selected_1.isLinkSelected)(editor);
|
|
21
21
|
const onMouseDown = () => {
|
|
@@ -24,6 +24,6 @@ const LinkToolbarButton = (props) => {
|
|
|
24
24
|
(0, utils_1.focusEditor)(editor, (_a = editor.selection) !== null && _a !== void 0 ? _a : editor.prevSelection);
|
|
25
25
|
(0, trigger_link_insert_or_edit_1.triggerLinkInsertOrEdit)(editor, true);
|
|
26
26
|
};
|
|
27
|
-
return (react_1.default.createElement(toolbar_button_1.ToolbarButton, { className: `${CLASS_NAME} ${CLASS_NAME}-link ${(_a = props.className) !== null && _a !== void 0 ? _a : ""}`, editor: editor, iconName: (_b = props.iconName) !== null && _b !== void 0 ? _b : "link", isActive: isLink, onMouseDown: onMouseDown, pluginKey: constants_1.ELEMENT_LINK, tooltipText: t("wysiwyg:plugins.link.tooltip") }));
|
|
27
|
+
return (react_1.default.createElement(toolbar_button_1.ToolbarButton, { className: `${CLASS_NAME} ${CLASS_NAME}-link ${(_a = props.className) !== null && _a !== void 0 ? _a : ""}`, editor: editor, iconName: (_b = props.iconName) !== null && _b !== void 0 ? _b : "link", isActive: isLink, onMouseDown: onMouseDown, pluginKey: constants_1.ELEMENT_LINK, tooltipText: t("uxf-wysiwyg:plugins.link.tooltip") }));
|
|
28
28
|
};
|
|
29
29
|
exports.LinkToolbarButton = LinkToolbarButton;
|
|
@@ -24,18 +24,18 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
26
|
exports.UndoRedoButtonGroup = void 0;
|
|
27
|
+
const translations_1 = require("@uxf/core-react/translations");
|
|
27
28
|
const button_1 = require("@uxf/ui/button");
|
|
28
29
|
const button_group_1 = require("@uxf/ui/button-group");
|
|
29
30
|
const icon_1 = require("@uxf/ui/icon");
|
|
30
31
|
const tooltip_1 = require("@uxf/ui/tooltip");
|
|
31
32
|
const react_1 = __importStar(require("react"));
|
|
32
33
|
const hooks_1 = require("../../../hooks");
|
|
33
|
-
const context_1 = require("../../../translations/context");
|
|
34
34
|
const utils_1 = require("../../../utils");
|
|
35
35
|
const CLASS_NAME = "uxf-wysiwyg__toolbar-button";
|
|
36
36
|
const UndoRedoButtonGroup = (props) => {
|
|
37
37
|
var _a;
|
|
38
|
-
const t = (0,
|
|
38
|
+
const t = (0, translations_1.useUxfTranslation)();
|
|
39
39
|
const editor = (0, hooks_1.useUxfPlateEditorState)(props.plateId);
|
|
40
40
|
const undoHandler = (0, react_1.useCallback)((e) => {
|
|
41
41
|
if (e.button === 0) {
|
|
@@ -54,10 +54,10 @@ const UndoRedoButtonGroup = (props) => {
|
|
|
54
54
|
}
|
|
55
55
|
}, [editor]);
|
|
56
56
|
return (react_1.default.createElement(button_group_1.ButtonGroup, { className: `${CLASS_NAME}-group ${CLASS_NAME}-group-undo-redo ${(_a = props.className) !== null && _a !== void 0 ? _a : ""}` },
|
|
57
|
-
react_1.default.createElement(tooltip_1.Tooltip, { content: t("wysiwyg:plugins.undo.tooltip") },
|
|
57
|
+
react_1.default.createElement(tooltip_1.Tooltip, { content: t("uxf-wysiwyg:plugins.actions.undo.tooltip") },
|
|
58
58
|
react_1.default.createElement(button_1.Button, { className: `${CLASS_NAME} ${CLASS_NAME}-undo`, isDisabled: editor.history.undos.length === 0, isIconButton: true, onMouseDown: undoHandler, variant: "secondary" },
|
|
59
59
|
react_1.default.createElement(icon_1.Icon, { className: `${CLASS_NAME}__icon`, name: "arrow-turn-down-left", size: 16 }))),
|
|
60
|
-
react_1.default.createElement(tooltip_1.Tooltip, { content: t("wysiwyg:plugins.redo.tooltip") },
|
|
60
|
+
react_1.default.createElement(tooltip_1.Tooltip, { content: t("uxf-wysiwyg:plugins.actions.redo.tooltip") },
|
|
61
61
|
react_1.default.createElement(button_1.Button, { className: `${CLASS_NAME} ${CLASS_NAME}-redo`, isDisabled: editor.history.redos.length === 0, isIconButton: true, onMouseDown: redoHandler, variant: "secondary" },
|
|
62
62
|
react_1.default.createElement(icon_1.Icon, { className: `${CLASS_NAME}__icon`, name: "arrow-turn-down-right", size: 16 })))));
|
|
63
63
|
};
|
|
@@ -4,17 +4,17 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.VideoToolbarButton = void 0;
|
|
7
|
+
const translations_1 = require("@uxf/core-react/translations");
|
|
7
8
|
const react_1 = __importDefault(require("react"));
|
|
8
9
|
const hooks_1 = require("../../../hooks");
|
|
9
10
|
const create_video_plugin_1 = require("../../../plugins/embedded/video/create-video-plugin");
|
|
10
|
-
const context_1 = require("../../../translations/context");
|
|
11
11
|
const insert_video_modal_content_1 = require("../../video/insert-video-modal-content");
|
|
12
12
|
const modal_toolbar_button_1 = require("./modal-toolbar-button");
|
|
13
13
|
const CLASS_NAME = "uxf-wysiwyg__toolbar-button";
|
|
14
14
|
const VideoToolbarButton = (props) => {
|
|
15
15
|
var _a, _b;
|
|
16
|
-
const t = (0,
|
|
16
|
+
const t = (0, translations_1.useUxfTranslation)();
|
|
17
17
|
const editor = (0, hooks_1.useUxfPlateEditorState)(props.plateId);
|
|
18
|
-
return (react_1.default.createElement(modal_toolbar_button_1.ModalToolbarButton, { Modal: react_1.default.createElement(insert_video_modal_content_1.InsertVideoModalContent, { editor: editor }), className: `${CLASS_NAME} ${CLASS_NAME}-video ${(_a = props.className) !== null && _a !== void 0 ? _a : ""}`, editor: editor, iconName: (_b = props.iconName) !== null && _b !== void 0 ? _b : "youtube", pluginKey: create_video_plugin_1.ELEMENT_VIDEO_EMBED, tooltipText: t("wysiwyg:plugins.video.tooltip") }));
|
|
18
|
+
return (react_1.default.createElement(modal_toolbar_button_1.ModalToolbarButton, { Modal: react_1.default.createElement(insert_video_modal_content_1.InsertVideoModalContent, { editor: editor }), className: `${CLASS_NAME} ${CLASS_NAME}-video ${(_a = props.className) !== null && _a !== void 0 ? _a : ""}`, editor: editor, iconName: (_b = props.iconName) !== null && _b !== void 0 ? _b : "youtube", pluginKey: create_video_plugin_1.ELEMENT_VIDEO_EMBED, tooltipText: t("uxf-wysiwyg:plugins.video.tooltip") }));
|
|
19
19
|
};
|
|
20
20
|
exports.VideoToolbarButton = VideoToolbarButton;
|
package/ui/toolbar/toolbar.js
CHANGED
|
@@ -4,6 +4,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.Toolbar = void 0;
|
|
7
|
+
const translations_1 = require("@uxf/core-react/translations");
|
|
7
8
|
const button_group_1 = require("@uxf/ui/button-group");
|
|
8
9
|
const react_1 = __importDefault(require("react"));
|
|
9
10
|
const hooks_1 = require("../../hooks");
|
|
@@ -19,7 +20,6 @@ const types_4 = require("../../plugins/mark-bold/types");
|
|
|
19
20
|
const types_5 = require("../../plugins/mark-code/types");
|
|
20
21
|
const types_6 = require("../../plugins/mark-italic/types");
|
|
21
22
|
const types_7 = require("../../plugins/mark-underline/types");
|
|
22
|
-
const context_1 = require("../../translations/context");
|
|
23
23
|
const utils_1 = require("../../utils");
|
|
24
24
|
const button_toolbar_button_1 = require("./buttons/button-toolbar-button");
|
|
25
25
|
const element_toolbar_button_1 = require("./buttons/element-toolbar-button");
|
|
@@ -36,17 +36,17 @@ const Toolbar = (props) => {
|
|
|
36
36
|
// eslint-disable-next-line react/destructuring-assignment
|
|
37
37
|
const { customPluginsButtons, leftElement, plateId, rightElement, ...restProps } = props;
|
|
38
38
|
const editor = (0, hooks_1.useUxfPlateEditorState)(props.plateId);
|
|
39
|
-
const t = (0,
|
|
39
|
+
const t = (0, translations_1.useUxfTranslation)();
|
|
40
40
|
return (react_1.default.createElement("div", { ...restProps, className: `${CLASS_NAME} ${(_a = props.className) !== null && _a !== void 0 ? _a : ""}` },
|
|
41
41
|
leftElement,
|
|
42
42
|
react_1.default.createElement("div", { className: `${CLASS_NAME}-buttons` },
|
|
43
43
|
(0, utils_1.isSomeOfPluginsEnabled)(editor, constants_1.KEYS_HEADING) && (react_1.default.createElement(button_group_1.ButtonGroup, { className: `${BUTTON_GROUP_CLASS_NAME} ${BUTTON_GROUP_CLASS_NAME}-headings` },
|
|
44
|
-
react_1.default.createElement(element_toolbar_button_1.ElementToolbarButton, { iconName: "h1", plateId: plateId, pluginKey: constants_1.ELEMENT_H1, tooltipText: t("wysiwyg:plugins.h1.tooltip") }),
|
|
45
|
-
react_1.default.createElement(element_toolbar_button_1.ElementToolbarButton, { iconName: "h2", plateId: plateId, pluginKey: constants_1.ELEMENT_H2, tooltipText: t("wysiwyg:plugins.h2.tooltip") }),
|
|
46
|
-
react_1.default.createElement(element_toolbar_button_1.ElementToolbarButton, { iconName: "h3", plateId: plateId, pluginKey: constants_1.ELEMENT_H3, tooltipText: t("wysiwyg:plugins.h3.tooltip") }),
|
|
47
|
-
react_1.default.createElement(element_toolbar_button_1.ElementToolbarButton, { iconName: "h4", plateId: plateId, pluginKey: constants_1.ELEMENT_H4, tooltipText: t("wysiwyg:plugins.h4.tooltip") }),
|
|
48
|
-
react_1.default.createElement(element_toolbar_button_1.ElementToolbarButton, { iconName: "h5", plateId: plateId, pluginKey: constants_1.ELEMENT_H5, tooltipText: t("wysiwyg:plugins.h5.tooltip") }),
|
|
49
|
-
react_1.default.createElement(element_toolbar_button_1.ElementToolbarButton, { iconName: "h6", plateId: plateId, pluginKey: constants_1.ELEMENT_H6, tooltipText: t("wysiwyg:plugins.h6.tooltip") }))),
|
|
44
|
+
react_1.default.createElement(element_toolbar_button_1.ElementToolbarButton, { iconName: "h1", plateId: plateId, pluginKey: constants_1.ELEMENT_H1, tooltipText: t("uxf-wysiwyg:plugins.headings.h1.tooltip") }),
|
|
45
|
+
react_1.default.createElement(element_toolbar_button_1.ElementToolbarButton, { iconName: "h2", plateId: plateId, pluginKey: constants_1.ELEMENT_H2, tooltipText: t("uxf-wysiwyg:plugins.headings.h2.tooltip") }),
|
|
46
|
+
react_1.default.createElement(element_toolbar_button_1.ElementToolbarButton, { iconName: "h3", plateId: plateId, pluginKey: constants_1.ELEMENT_H3, tooltipText: t("uxf-wysiwyg:plugins.headings.h3.tooltip") }),
|
|
47
|
+
react_1.default.createElement(element_toolbar_button_1.ElementToolbarButton, { iconName: "h4", plateId: plateId, pluginKey: constants_1.ELEMENT_H4, tooltipText: t("uxf-wysiwyg:plugins.headings.h4.tooltip") }),
|
|
48
|
+
react_1.default.createElement(element_toolbar_button_1.ElementToolbarButton, { iconName: "h5", plateId: plateId, pluginKey: constants_1.ELEMENT_H5, tooltipText: t("uxf-wysiwyg:plugins.headings.h5.tooltip") }),
|
|
49
|
+
react_1.default.createElement(element_toolbar_button_1.ElementToolbarButton, { iconName: "h6", plateId: plateId, pluginKey: constants_1.ELEMENT_H6, tooltipText: t("uxf-wysiwyg:plugins.headings.h6.tooltip") }))),
|
|
50
50
|
(0, utils_1.isSomeOfPluginsEnabled)(editor, [
|
|
51
51
|
types_4.BOLD_PLUGIN_KEY,
|
|
52
52
|
types_6.ITALIC_PLUGIN_KEY,
|
|
@@ -54,16 +54,16 @@ const Toolbar = (props) => {
|
|
|
54
54
|
types_5.CODE_PLUGIN_KEY,
|
|
55
55
|
types_2.HIGHLIGHT_PLUGIN_KEY,
|
|
56
56
|
]) && (react_1.default.createElement(button_group_1.ButtonGroup, { className: `${BUTTON_GROUP_CLASS_NAME} ${BUTTON_GROUP_CLASS_NAME}-marks` },
|
|
57
|
-
react_1.default.createElement(mark_toolbar_button_1.MarkToolbarButton, { iconName: "bold", iconSize: 12, plateId: plateId, pluginKey: types_4.BOLD_PLUGIN_KEY, tooltipText: t("wysiwyg:plugins.bold.tooltip") }),
|
|
58
|
-
react_1.default.createElement(mark_toolbar_button_1.MarkToolbarButton, { iconName: "italic", iconSize: 12, plateId: plateId, pluginKey: types_6.ITALIC_PLUGIN_KEY, tooltipText: t("wysiwyg:plugins.italic.tooltip") }),
|
|
59
|
-
react_1.default.createElement(mark_toolbar_button_1.MarkToolbarButton, { iconName: "underline", iconSize: 14, plateId: plateId, pluginKey: types_7.UNDER_LINE_PLUGIN_KEY, tooltipText: t("wysiwyg:plugins.underline.tooltip") }),
|
|
60
|
-
react_1.default.createElement(mark_toolbar_button_1.MarkToolbarButton, { iconName: "code-simple", plateId: plateId, pluginKey: types_5.CODE_PLUGIN_KEY, tooltipText: t("wysiwyg:plugins.code.tooltip") }),
|
|
61
|
-
react_1.default.createElement(mark_toolbar_button_1.MarkToolbarButton, { iconName: "highlighter-line", iconSize: 19, plateId: plateId, pluginKey: types_2.HIGHLIGHT_PLUGIN_KEY, tooltipText: t("wysiwyg:plugins.highlight.tooltip") }))),
|
|
57
|
+
react_1.default.createElement(mark_toolbar_button_1.MarkToolbarButton, { iconName: "bold", iconSize: 12, plateId: plateId, pluginKey: types_4.BOLD_PLUGIN_KEY, tooltipText: t("uxf-wysiwyg:plugins.formatting.bold.tooltip") }),
|
|
58
|
+
react_1.default.createElement(mark_toolbar_button_1.MarkToolbarButton, { iconName: "italic", iconSize: 12, plateId: plateId, pluginKey: types_6.ITALIC_PLUGIN_KEY, tooltipText: t("uxf-wysiwyg:plugins.formatting.italic.tooltip") }),
|
|
59
|
+
react_1.default.createElement(mark_toolbar_button_1.MarkToolbarButton, { iconName: "underline", iconSize: 14, plateId: plateId, pluginKey: types_7.UNDER_LINE_PLUGIN_KEY, tooltipText: t("uxf-wysiwyg:plugins.formatting.underline.tooltip") }),
|
|
60
|
+
react_1.default.createElement(mark_toolbar_button_1.MarkToolbarButton, { iconName: "code-simple", plateId: plateId, pluginKey: types_5.CODE_PLUGIN_KEY, tooltipText: t("uxf-wysiwyg:plugins.formatting.code.tooltip") }),
|
|
61
|
+
react_1.default.createElement(mark_toolbar_button_1.MarkToolbarButton, { iconName: "highlighter-line", iconSize: 19, plateId: plateId, pluginKey: types_2.HIGHLIGHT_PLUGIN_KEY, tooltipText: t("uxf-wysiwyg:plugins.formatting.highlight.tooltip") }))),
|
|
62
62
|
(0, utils_1.isSomeOfPluginsEnabled)(editor, [types_1.BLOCKQUOTE_PLUGIN_KEY]) && (react_1.default.createElement(button_group_1.ButtonGroup, { className: `${BUTTON_GROUP_CLASS_NAME} ${BUTTON_GROUP_CLASS_NAME}-blocks` },
|
|
63
|
-
react_1.default.createElement(element_toolbar_button_1.ElementToolbarButton, { iconName: "block-quote", plateId: plateId, pluginKey: types_1.BLOCKQUOTE_PLUGIN_KEY, tooltipText: t("wysiwyg:plugins.quote.tooltip") }))),
|
|
63
|
+
react_1.default.createElement(element_toolbar_button_1.ElementToolbarButton, { iconName: "block-quote", plateId: plateId, pluginKey: types_1.BLOCKQUOTE_PLUGIN_KEY, tooltipText: t("uxf-wysiwyg:plugins.blocks.quote.tooltip") }))),
|
|
64
64
|
(0, utils_1.isSomeOfPluginsEnabled)(editor, [constants_3.LIST_UNORDERED_TYPE, constants_3.LIST_ORDERED_TYPE]) && (react_1.default.createElement(button_group_1.ButtonGroup, { className: `${BUTTON_GROUP_CLASS_NAME} ${BUTTON_GROUP_CLASS_NAME}-lists` },
|
|
65
|
-
react_1.default.createElement(list_toolbar_button_1.ListToolbarButton, { iconName: "ul", plateId: plateId, pluginKey: constants_3.LIST_UNORDERED_TYPE, tooltipText: t("wysiwyg:plugins.ul.tooltip") }),
|
|
66
|
-
react_1.default.createElement(list_toolbar_button_1.ListToolbarButton, { iconName: "ol", plateId: plateId, pluginKey: constants_3.LIST_ORDERED_TYPE, tooltipText: t("wysiwyg:plugins.ol.tooltip") }))),
|
|
65
|
+
react_1.default.createElement(list_toolbar_button_1.ListToolbarButton, { iconName: "ul", plateId: plateId, pluginKey: constants_3.LIST_UNORDERED_TYPE, tooltipText: t("uxf-wysiwyg:plugins.lists.ul.tooltip") }),
|
|
66
|
+
react_1.default.createElement(list_toolbar_button_1.ListToolbarButton, { iconName: "ol", plateId: plateId, pluginKey: constants_3.LIST_ORDERED_TYPE, tooltipText: t("uxf-wysiwyg:plugins.lists.ol.tooltip") }))),
|
|
67
67
|
(0, utils_1.isSomeOfPluginsEnabled)(editor, [constants_2.ELEMENT_LINK, button_1.PLUGIN_BUTTON_KEY]) && (react_1.default.createElement(button_group_1.ButtonGroup, { className: `${BUTTON_GROUP_CLASS_NAME} ${BUTTON_GROUP_CLASS_NAME}-clickables` },
|
|
68
68
|
react_1.default.createElement(link_toolbar_button_1.LinkToolbarButton, { plateId: plateId }),
|
|
69
69
|
react_1.default.createElement(button_toolbar_button_1.ButtonToolbarButton, { plateId: plateId }))),
|
|
@@ -24,12 +24,12 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
26
|
exports.InsertVideoModalContent = void 0;
|
|
27
|
+
const translations_1 = require("@uxf/core-react/translations");
|
|
27
28
|
const text_input_1 = require("@uxf/ui/text-input");
|
|
28
29
|
const react_1 = __importStar(require("react"));
|
|
29
30
|
const utils_1 = require("../../plugins/embedded/utils");
|
|
30
31
|
const insert_video_1 = require("../../plugins/embedded/video/insert-video");
|
|
31
32
|
const update_video_1 = require("../../plugins/embedded/video/update-video");
|
|
32
|
-
const context_1 = require("../../translations/context");
|
|
33
33
|
const get_video_meta_data_1 = require("../../utils/get-video-meta-data");
|
|
34
34
|
const modal_buttons_1 = require("../components/modal/modal-buttons");
|
|
35
35
|
const modal_content_1 = require("../components/modal/modal-content");
|
|
@@ -38,7 +38,7 @@ const CLASS_NAME = "uxf-wysiwyg__insert-modal-video";
|
|
|
38
38
|
// eslint-disable-next-line react/destructuring-assignment
|
|
39
39
|
const InsertVideoModalContent = ({ editor, editedVideo }) => {
|
|
40
40
|
var _a;
|
|
41
|
-
const t = (0,
|
|
41
|
+
const t = (0, translations_1.useUxfTranslation)();
|
|
42
42
|
const [url, setUrl] = (0, react_1.useState)((_a = editedVideo === null || editedVideo === void 0 ? void 0 : editedVideo.url) !== null && _a !== void 0 ? _a : "");
|
|
43
43
|
const [embedUrl, setEmbedUrl] = (0, react_1.useState)(editedVideo
|
|
44
44
|
? { id: editedVideo.videoId, provider: editedVideo.provider, url: editedVideo.embeddedUrl }
|
|
@@ -48,7 +48,7 @@ const InsertVideoModalContent = ({ editor, editedVideo }) => {
|
|
|
48
48
|
event.preventDefault();
|
|
49
49
|
setEmbedUrl((0, utils_1.parseVideoUrl)(url));
|
|
50
50
|
if (!((embedUrl === null || embedUrl === void 0 ? void 0 : embedUrl.url) && embedUrl.provider && embedUrl.id)) {
|
|
51
|
-
setError("
|
|
51
|
+
setError(t("uxf-wysiwyg:plugins.video.url-address.invalid"));
|
|
52
52
|
return;
|
|
53
53
|
}
|
|
54
54
|
const metaData = await (0, get_video_meta_data_1.getVideoMetaData)(embedUrl.provider, embedUrl.id);
|
|
@@ -59,19 +59,21 @@ const InsertVideoModalContent = ({ editor, editedVideo }) => {
|
|
|
59
59
|
(0, insert_video_1.insertVideo)(editor, url, embedUrl.url, embedUrl.provider, embedUrl.id, metaData);
|
|
60
60
|
}
|
|
61
61
|
(0, utils_2.closeModalWithFocus)(editor);
|
|
62
|
-
}, [editedVideo, editor, embedUrl, url]);
|
|
62
|
+
}, [editedVideo, editor, embedUrl, url, t]);
|
|
63
63
|
const onChange = (0, react_1.useCallback)((v) => {
|
|
64
64
|
setUrl(v);
|
|
65
65
|
setError(undefined);
|
|
66
66
|
setEmbedUrl((0, utils_1.parseVideoUrl)(v));
|
|
67
67
|
}, []);
|
|
68
|
-
const title = editedVideo
|
|
68
|
+
const title = editedVideo
|
|
69
|
+
? t("uxf-wysiwyg:plugins.video.button-edit")
|
|
70
|
+
: t("uxf-wysiwyg:plugins.video.button-insert");
|
|
69
71
|
return (react_1.default.createElement(modal_content_1.ModalContent, { title: title },
|
|
70
72
|
react_1.default.createElement("form", { className: `${CLASS_NAME}__form`, id: "insert-video-form", onSubmit: onSubmit },
|
|
71
73
|
react_1.default.createElement("div", { className: `${CLASS_NAME}__form-inputs` },
|
|
72
|
-
react_1.default.createElement(text_input_1.TextInput, { helperText: error, isInvalid: Boolean(error), label: t("wysiwyg:plugins.video.url-address.label"), name: "url-address", onChange: onChange, placeholder: t("wysiwyg:plugins.video.url-address.placeholder"), type: "text", value: url })),
|
|
74
|
+
react_1.default.createElement(text_input_1.TextInput, { helperText: error, isInvalid: Boolean(error), label: t("uxf-wysiwyg:plugins.video.url-address.label"), name: "url-address", onChange: onChange, placeholder: t("uxf-wysiwyg:plugins.video.url-address.placeholder"), type: "text", value: url })),
|
|
73
75
|
(embedUrl === null || embedUrl === void 0 ? void 0 : embedUrl.url) && (react_1.default.createElement("div", { className: `${CLASS_NAME}__iframe-wrapper` },
|
|
74
|
-
react_1.default.createElement("iframe", { className: `${CLASS_NAME}__iframe`, height: "100%", src: embedUrl.url, title: t("wysiwyg:plugins.video.iframe-title"), width: "100%" }))),
|
|
76
|
+
react_1.default.createElement("iframe", { className: `${CLASS_NAME}__iframe`, height: "100%", src: embedUrl.url, title: t("uxf-wysiwyg:plugins.video.iframe-title"), width: "100%" }))),
|
|
75
77
|
react_1.default.createElement(modal_buttons_1.ModalButtons, { className: `${CLASS_NAME}__form-buttons`, editor: editor, submitText: title }),
|
|
76
78
|
react_1.default.createElement("button", { hidden: true, type: "submit" }))));
|
|
77
79
|
};
|
|
@@ -24,19 +24,19 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
26
|
exports.VideoElement = void 0;
|
|
27
|
+
const translations_1 = require("@uxf/core-react/translations");
|
|
27
28
|
const dialog_panel_1 = require("@uxf/ui/dialog/dialog-panel");
|
|
28
29
|
const modal_service_1 = require("@uxf/ui/modal/modal-service");
|
|
29
30
|
const react_1 = __importStar(require("react"));
|
|
30
31
|
const hooks_1 = require("../../hooks");
|
|
31
32
|
const get_active_video_1 = require("../../plugins/embedded/video/get-active-video");
|
|
32
|
-
const context_1 = require("../../translations/context");
|
|
33
33
|
const utils_1 = require("../../utils");
|
|
34
34
|
const element_with_action_buttons_1 = require("../components/element/element-with-action-buttons");
|
|
35
35
|
const insert_video_modal_content_1 = require("./insert-video-modal-content");
|
|
36
36
|
const CLASS_NAME = "uxf-wysiwyg__element";
|
|
37
37
|
const VideoElement = (props) => {
|
|
38
38
|
var _a;
|
|
39
|
-
const t = (0,
|
|
39
|
+
const t = (0, translations_1.useUxfTranslation)();
|
|
40
40
|
const selected = (0, hooks_1.useSelected)();
|
|
41
41
|
const onEdit = (0, react_1.useCallback)(() => {
|
|
42
42
|
(0, modal_service_1.openModal)({
|
|
@@ -49,7 +49,7 @@ const VideoElement = (props) => {
|
|
|
49
49
|
}, [props.editor]);
|
|
50
50
|
return (react_1.default.createElement("div", { ...props.attributes, className: `${CLASS_NAME} ${CLASS_NAME}-video ${(_a = props.className) !== null && _a !== void 0 ? _a : ""}` },
|
|
51
51
|
react_1.default.createElement(element_with_action_buttons_1.ElementWithActionButtons, { className: `${CLASS_NAME}-video__action-buttons`, isSelected: selected, onDelete: onDelete, onEdit: onEdit },
|
|
52
|
-
react_1.default.createElement("iframe", { className: `${CLASS_NAME}-video__iframe`, src: props.element.embeddedUrl, tabIndex: -1, title: t("wysiwyg:plugins.video.iframe-title") })),
|
|
52
|
+
react_1.default.createElement("iframe", { className: `${CLASS_NAME}-video__iframe`, src: props.element.embeddedUrl, tabIndex: -1, title: t("uxf-wysiwyg:plugins.video.iframe-title") })),
|
|
53
53
|
props.children));
|
|
54
54
|
};
|
|
55
55
|
exports.VideoElement = VideoElement;
|
package/wysiwyg-editor.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { TEditableProps } from "@udecode/plate-core";
|
|
2
2
|
import { FC, ReactNode } from "react";
|
|
3
|
-
import { TranslationFunction } from "./translations/translations";
|
|
4
3
|
import { UxfPlatePlugin, WysiwygContent } from "./types";
|
|
5
4
|
export interface WysiwygEditorProps {
|
|
6
5
|
className?: string;
|
|
@@ -10,7 +9,6 @@ export interface WysiwygEditorProps {
|
|
|
10
9
|
initialValue: WysiwygContent | undefined;
|
|
11
10
|
onChange: (value: WysiwygContent) => void;
|
|
12
11
|
plugins: UxfPlatePlugin[];
|
|
13
|
-
t?: TranslationFunction;
|
|
14
12
|
toolbarLeftElement?: ReactNode;
|
|
15
13
|
toolbarRightElement?: ReactNode;
|
|
16
14
|
}
|
package/wysiwyg-editor.js
CHANGED
|
@@ -7,22 +7,21 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
7
7
|
exports.WysiwygEditor = void 0;
|
|
8
8
|
const plate_core_1 = require("@udecode/plate-core");
|
|
9
9
|
const use_is_mounted_1 = require("@uxf/core-react/hooks/use-is-mounted");
|
|
10
|
+
const translations_1 = require("@uxf/core-react/translations");
|
|
10
11
|
const classes_1 = require("@uxf/core/constants/classes");
|
|
11
12
|
const loader_1 = require("@uxf/ui/loader");
|
|
12
13
|
const react_1 = __importDefault(require("react"));
|
|
13
|
-
const context_1 = require("./translations/context");
|
|
14
|
-
const translations_1 = require("./translations/translations");
|
|
15
14
|
const toolbar_1 = require("./ui/toolbar/toolbar");
|
|
16
15
|
const CLASS_NAME = "uxf-wysiwyg";
|
|
17
16
|
const Editor = (props) => {
|
|
18
17
|
var _a, _b;
|
|
19
|
-
const t = (0,
|
|
18
|
+
const t = (0, translations_1.useUxfTranslation)();
|
|
20
19
|
return (react_1.default.createElement(react_1.default.Fragment, null,
|
|
21
20
|
react_1.default.createElement(toolbar_1.Toolbar, { customPluginsButtons: props.customPluginsToolbarButtons, leftElement: props.toolbarLeftElement, plateId: props.plateId, rightElement: props.toolbarRightElement }),
|
|
22
21
|
react_1.default.createElement("div", { className: `${CLASS_NAME}__content` },
|
|
23
22
|
react_1.default.createElement(plate_core_1.Plate, { editableProps: {
|
|
24
23
|
autoFocus: false,
|
|
25
|
-
placeholder: t("wysiwyg:common.placeholder"),
|
|
24
|
+
placeholder: t("uxf-wysiwyg:common.placeholder"),
|
|
26
25
|
readOnly: false,
|
|
27
26
|
spellCheck: false,
|
|
28
27
|
...props.editableProps,
|
|
@@ -30,15 +29,14 @@ const Editor = (props) => {
|
|
|
30
29
|
}, id: props.plateId, normalizeInitialValue: true }))));
|
|
31
30
|
};
|
|
32
31
|
const WysiwygEditor = (props) => {
|
|
33
|
-
var _a, _b
|
|
32
|
+
var _a, _b;
|
|
34
33
|
const isMounted = (0, use_is_mounted_1.useIsMounted)();
|
|
35
34
|
if (!isMounted) {
|
|
36
35
|
return (react_1.default.createElement("div", { className: `${CLASS_NAME} ${CLASS_NAME}--${classes_1.CLASSES.IS_LOADING} ${(_a = props.className) !== null && _a !== void 0 ? _a : ""}` },
|
|
37
36
|
react_1.default.createElement(loader_1.Loader, { className: `${CLASS_NAME}__loader` })));
|
|
38
37
|
}
|
|
39
38
|
return (react_1.default.createElement("div", { className: `${CLASS_NAME} ${(_b = props.className) !== null && _b !== void 0 ? _b : ""}` },
|
|
40
|
-
react_1.default.createElement(
|
|
41
|
-
react_1.default.createElement(
|
|
42
|
-
react_1.default.createElement(Editor, { customPluginsToolbarButtons: props.customPluginsToolbarButtons, editableProps: props.editableProps, plateId: props.id, toolbarLeftElement: props.toolbarLeftElement, toolbarRightElement: props.toolbarRightElement })))));
|
|
39
|
+
react_1.default.createElement(plate_core_1.PlateProvider, { id: props.id, initialValue: props.initialValue, onChange: props.onChange, plugins: props.plugins },
|
|
40
|
+
react_1.default.createElement(Editor, { customPluginsToolbarButtons: props.customPluginsToolbarButtons, editableProps: props.editableProps, plateId: props.id, toolbarLeftElement: props.toolbarLeftElement, toolbarRightElement: props.toolbarRightElement }))));
|
|
43
41
|
};
|
|
44
42
|
exports.WysiwygEditor = WysiwygEditor;
|
package/translations/context.js
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.useTranslation = exports.TranslationContextProvider = void 0;
|
|
4
|
-
const react_1 = require("react");
|
|
5
|
-
const translations_1 = require("./translations");
|
|
6
|
-
const TranslationContext = (0, react_1.createContext)(translations_1.defaultTranslationFunction);
|
|
7
|
-
exports.TranslationContextProvider = TranslationContext.Provider;
|
|
8
|
-
const useTranslation = () => (0, react_1.useContext)(TranslationContext);
|
|
9
|
-
exports.useTranslation = useTranslation;
|
package/translations/cs.d.ts
DELETED
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
export declare const cs: {
|
|
2
|
-
readonly "wysiwyg:common.placeholder": "Napište něco hezkého...";
|
|
3
|
-
readonly "wysiwyg:components.modal.button-cancel": "Zrušit";
|
|
4
|
-
readonly "wysiwyg:plugins.bold.tooltip": "Tučné (Ctrl+B)";
|
|
5
|
-
readonly "wysiwyg:plugins.italic.tooltip": "Kurzíva (Ctrl+I)";
|
|
6
|
-
readonly "wysiwyg:plugins.underline.tooltip": "Podtržení (Ctrl+U)";
|
|
7
|
-
readonly "wysiwyg:plugins.code.tooltip": "Kód";
|
|
8
|
-
readonly "wysiwyg:plugins.highlight.tooltip": "Zvýraznění (Ctrl+Shift+H)";
|
|
9
|
-
readonly "wysiwyg:plugins.h1.tooltip": "Nadpis H1";
|
|
10
|
-
readonly "wysiwyg:plugins.h2.tooltip": "Nadpis H2";
|
|
11
|
-
readonly "wysiwyg:plugins.h3.tooltip": "Nadpis H3";
|
|
12
|
-
readonly "wysiwyg:plugins.h4.tooltip": "Nadpis H4";
|
|
13
|
-
readonly "wysiwyg:plugins.h5.tooltip": "Nadpis H5";
|
|
14
|
-
readonly "wysiwyg:plugins.h6.tooltip": "Nadpis H6";
|
|
15
|
-
readonly "wysiwyg:plugins.link.url-address.invalid": "Neplatná URL adresa";
|
|
16
|
-
readonly "wysiwyg:plugins.link.url-address.required": "URL adresa je povinná";
|
|
17
|
-
readonly "wysiwyg:plugins.link.url-address.label": "URL adresa";
|
|
18
|
-
readonly "wysiwyg:plugins.link.url-address.placeholder": "Zadejte URL adresu";
|
|
19
|
-
readonly "wysiwyg:plugins.link.link-text.label": "Text odkazu";
|
|
20
|
-
readonly "wysiwyg:plugins.link.link-text.placeholder": "Zadejte text odkazu";
|
|
21
|
-
readonly "wysiwyg:plugins.link.open-in-new-tab": "Otevřít v nové záložce";
|
|
22
|
-
readonly "wysiwyg:plugins.link.tooltip": "Vložit odkaz";
|
|
23
|
-
readonly "wysiwyg:plugins.link.button-save": "Uložit";
|
|
24
|
-
readonly "wysiwyg:plugins.link.button-close": "Zavřít";
|
|
25
|
-
readonly "wysiwyg:plugins.quote.tooltip": "Citace";
|
|
26
|
-
readonly "wysiwyg:plugins.ul.tooltip": "Vložit odrážkový seznam";
|
|
27
|
-
readonly "wysiwyg:plugins.ol.tooltip": "Vložit číslovaný seznam";
|
|
28
|
-
readonly "wysiwyg:plugins.button.tooltip": "Vložit tlačítko";
|
|
29
|
-
readonly "wysiwyg:plugins.button.button-text.label": "Text tlačítka";
|
|
30
|
-
readonly "wysiwyg:plugins.button.button-text.placeholder": "Zadejte text tlačítka";
|
|
31
|
-
readonly "wysiwyg:plugins.button.url-address.label": "URL adresa";
|
|
32
|
-
readonly "wysiwyg:plugins.button.url-address.placeholder": "Zadejte URL adresu";
|
|
33
|
-
readonly "wysiwyg:plugins.button.button-insert": "Vložit tlačítko";
|
|
34
|
-
readonly "wysiwyg:plugins.button.button-edit": "Upravit tlačítko";
|
|
35
|
-
readonly "wysiwyg:plugins.image.tooltip": "Vložit obrázek";
|
|
36
|
-
readonly "wysiwyg:plugins.image.alt.label": "Alt obrázku";
|
|
37
|
-
readonly "wysiwyg:plugins.image.alt.placeholder": "Zadejte alt obrázku";
|
|
38
|
-
readonly "wysiwyg:plugins.image.caption.label": "Popisek obrázku";
|
|
39
|
-
readonly "wysiwyg:plugins.image.caption.placeholder": "Zadejte popisek obrázku";
|
|
40
|
-
readonly "wysiwyg:plugins.image.source.label": "Zdroj obrázku";
|
|
41
|
-
readonly "wysiwyg:plugins.image.source.placeholder": "Zadejte zdroj obrázku";
|
|
42
|
-
readonly "wysiwyg:plugins.image.button-insert": "Vložit obrázek";
|
|
43
|
-
readonly "wysiwyg:plugins.image.button-edit": "Upravit obrázek";
|
|
44
|
-
readonly "wysiwyg:plugins.video.tooltip": "Vložit video";
|
|
45
|
-
readonly "wysiwyg:plugins.video.url-address.label": "URL adresa";
|
|
46
|
-
readonly "wysiwyg:plugins.video.url-address.placeholder": "Zadejte URL adresu";
|
|
47
|
-
readonly "wysiwyg:plugins.video.iframe-title": "Video";
|
|
48
|
-
readonly "wysiwyg:plugins.video.button-insert": "Vložit video";
|
|
49
|
-
readonly "wysiwyg:plugins.video.button-edit": "Upravit video";
|
|
50
|
-
readonly "wysiwyg:plugins.undo.tooltip": "Vrátit zpět (Ctrl+Z)";
|
|
51
|
-
readonly "wysiwyg:plugins.redo.tooltip": "Opakovat (Ctrl+Y)";
|
|
52
|
-
};
|
package/translations/cs.js
DELETED
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.cs = void 0;
|
|
4
|
-
exports.cs = {
|
|
5
|
-
"wysiwyg:common.placeholder": "Napište něco hezkého...",
|
|
6
|
-
"wysiwyg:components.modal.button-cancel": "Zrušit",
|
|
7
|
-
"wysiwyg:plugins.bold.tooltip": "Tučné (Ctrl+B)",
|
|
8
|
-
"wysiwyg:plugins.italic.tooltip": "Kurzíva (Ctrl+I)",
|
|
9
|
-
"wysiwyg:plugins.underline.tooltip": "Podtržení (Ctrl+U)",
|
|
10
|
-
"wysiwyg:plugins.code.tooltip": "Kód",
|
|
11
|
-
"wysiwyg:plugins.highlight.tooltip": "Zvýraznění (Ctrl+Shift+H)",
|
|
12
|
-
"wysiwyg:plugins.h1.tooltip": "Nadpis H1",
|
|
13
|
-
"wysiwyg:plugins.h2.tooltip": "Nadpis H2",
|
|
14
|
-
"wysiwyg:plugins.h3.tooltip": "Nadpis H3",
|
|
15
|
-
"wysiwyg:plugins.h4.tooltip": "Nadpis H4",
|
|
16
|
-
"wysiwyg:plugins.h5.tooltip": "Nadpis H5",
|
|
17
|
-
"wysiwyg:plugins.h6.tooltip": "Nadpis H6",
|
|
18
|
-
"wysiwyg:plugins.link.url-address.invalid": "Neplatná URL adresa",
|
|
19
|
-
"wysiwyg:plugins.link.url-address.required": "URL adresa je povinná",
|
|
20
|
-
"wysiwyg:plugins.link.url-address.label": "URL adresa",
|
|
21
|
-
"wysiwyg:plugins.link.url-address.placeholder": "Zadejte URL adresu",
|
|
22
|
-
"wysiwyg:plugins.link.link-text.label": "Text odkazu",
|
|
23
|
-
"wysiwyg:plugins.link.link-text.placeholder": "Zadejte text odkazu",
|
|
24
|
-
"wysiwyg:plugins.link.open-in-new-tab": "Otevřít v nové záložce",
|
|
25
|
-
"wysiwyg:plugins.link.tooltip": "Vložit odkaz",
|
|
26
|
-
"wysiwyg:plugins.link.button-save": "Uložit",
|
|
27
|
-
"wysiwyg:plugins.link.button-close": "Zavřít",
|
|
28
|
-
"wysiwyg:plugins.quote.tooltip": "Citace",
|
|
29
|
-
"wysiwyg:plugins.ul.tooltip": "Vložit odrážkový seznam",
|
|
30
|
-
"wysiwyg:plugins.ol.tooltip": "Vložit číslovaný seznam",
|
|
31
|
-
"wysiwyg:plugins.button.tooltip": "Vložit tlačítko",
|
|
32
|
-
"wysiwyg:plugins.button.button-text.label": "Text tlačítka",
|
|
33
|
-
"wysiwyg:plugins.button.button-text.placeholder": "Zadejte text tlačítka",
|
|
34
|
-
"wysiwyg:plugins.button.url-address.label": "URL adresa",
|
|
35
|
-
"wysiwyg:plugins.button.url-address.placeholder": "Zadejte URL adresu",
|
|
36
|
-
"wysiwyg:plugins.button.button-insert": "Vložit tlačítko",
|
|
37
|
-
"wysiwyg:plugins.button.button-edit": "Upravit tlačítko",
|
|
38
|
-
"wysiwyg:plugins.image.tooltip": "Vložit obrázek",
|
|
39
|
-
"wysiwyg:plugins.image.alt.label": "Alt obrázku",
|
|
40
|
-
"wysiwyg:plugins.image.alt.placeholder": "Zadejte alt obrázku",
|
|
41
|
-
"wysiwyg:plugins.image.caption.label": "Popisek obrázku",
|
|
42
|
-
"wysiwyg:plugins.image.caption.placeholder": "Zadejte popisek obrázku",
|
|
43
|
-
"wysiwyg:plugins.image.source.label": "Zdroj obrázku",
|
|
44
|
-
"wysiwyg:plugins.image.source.placeholder": "Zadejte zdroj obrázku",
|
|
45
|
-
"wysiwyg:plugins.image.button-insert": "Vložit obrázek",
|
|
46
|
-
"wysiwyg:plugins.image.button-edit": "Upravit obrázek",
|
|
47
|
-
"wysiwyg:plugins.video.tooltip": "Vložit video",
|
|
48
|
-
"wysiwyg:plugins.video.url-address.label": "URL adresa",
|
|
49
|
-
"wysiwyg:plugins.video.url-address.placeholder": "Zadejte URL adresu",
|
|
50
|
-
"wysiwyg:plugins.video.iframe-title": "Video",
|
|
51
|
-
"wysiwyg:plugins.video.button-insert": "Vložit video",
|
|
52
|
-
"wysiwyg:plugins.video.button-edit": "Upravit video",
|
|
53
|
-
"wysiwyg:plugins.undo.tooltip": "Vrátit zpět (Ctrl+Z)",
|
|
54
|
-
"wysiwyg:plugins.redo.tooltip": "Opakovat (Ctrl+Y)",
|
|
55
|
-
};
|
package/translations/en.d.ts
DELETED
package/translations/en.js
DELETED
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.en = void 0;
|
|
4
|
-
exports.en = {
|
|
5
|
-
"wysiwyg:common.placeholder": "Write something nice...",
|
|
6
|
-
"wysiwyg:components.modal.button-cancel": "Cancel",
|
|
7
|
-
"wysiwyg:plugins.bold.tooltip": "Bold (Ctrl+B)",
|
|
8
|
-
"wysiwyg:plugins.italic.tooltip": "Italic (Ctrl+I)",
|
|
9
|
-
"wysiwyg:plugins.underline.tooltip": "Underline (Ctrl+U)",
|
|
10
|
-
"wysiwyg:plugins.code.tooltip": "Code",
|
|
11
|
-
"wysiwyg:plugins.highlight.tooltip": "Enhance (Ctrl+Shift+H)",
|
|
12
|
-
"wysiwyg:plugins.h1.tooltip": "Title H1",
|
|
13
|
-
"wysiwyg:plugins.h2.tooltip": "Title H2",
|
|
14
|
-
"wysiwyg:plugins.h3.tooltip": "Title H3",
|
|
15
|
-
"wysiwyg:plugins.h4.tooltip": "Title H4",
|
|
16
|
-
"wysiwyg:plugins.h5.tooltip": "Title H5",
|
|
17
|
-
"wysiwyg:plugins.h6.tooltip": "Title H6",
|
|
18
|
-
"wysiwyg:plugins.link.url-address.invalid": "Invalid URL address",
|
|
19
|
-
"wysiwyg:plugins.link.url-address.required": "URL address is required",
|
|
20
|
-
"wysiwyg:plugins.link.url-address.label": "URL address",
|
|
21
|
-
"wysiwyg:plugins.link.url-address.placeholder": "Insert URL address",
|
|
22
|
-
"wysiwyg:plugins.link.link-text.label": "Link text",
|
|
23
|
-
"wysiwyg:plugins.link.link-text.placeholder": "Insert link text",
|
|
24
|
-
"wysiwyg:plugins.link.open-in-new-tab": "Open in the new window",
|
|
25
|
-
"wysiwyg:plugins.link.tooltip": "Insert link",
|
|
26
|
-
"wysiwyg:plugins.link.button-save": "Save",
|
|
27
|
-
"wysiwyg:plugins.link.button-close": "Close",
|
|
28
|
-
"wysiwyg:plugins.quote.tooltip": "Citation",
|
|
29
|
-
"wysiwyg:plugins.ul.tooltip": "Insert bulleted list",
|
|
30
|
-
"wysiwyg:plugins.ol.tooltip": "Insert a numbered list",
|
|
31
|
-
"wysiwyg:plugins.button.tooltip": "Insert button",
|
|
32
|
-
"wysiwyg:plugins.button.button-text.label": "Text of button",
|
|
33
|
-
"wysiwyg:plugins.button.button-text.placeholder": "Insert text of button",
|
|
34
|
-
"wysiwyg:plugins.button.url-address.label": "URL address",
|
|
35
|
-
"wysiwyg:plugins.button.url-address.placeholder": "Insert URL address",
|
|
36
|
-
"wysiwyg:plugins.button.button-insert": "Insert button",
|
|
37
|
-
"wysiwyg:plugins.button.button-edit": "Edit button",
|
|
38
|
-
"wysiwyg:plugins.image.tooltip": "Insert image",
|
|
39
|
-
"wysiwyg:plugins.image.alt.label": "Alt of image",
|
|
40
|
-
"wysiwyg:plugins.image.alt.placeholder": "Insert alt of image",
|
|
41
|
-
"wysiwyg:plugins.image.caption.label": "Image description",
|
|
42
|
-
"wysiwyg:plugins.image.caption.placeholder": "Insert image description",
|
|
43
|
-
"wysiwyg:plugins.image.source.label": "Image source",
|
|
44
|
-
"wysiwyg:plugins.image.source.placeholder": "Insert image source",
|
|
45
|
-
"wysiwyg:plugins.image.button-insert": "Insert image",
|
|
46
|
-
"wysiwyg:plugins.image.button-edit": "Edit image",
|
|
47
|
-
"wysiwyg:plugins.video.tooltip": "Insert video",
|
|
48
|
-
"wysiwyg:plugins.video.url-address.label": "URL address",
|
|
49
|
-
"wysiwyg:plugins.video.url-address.placeholder": "Insert URL address",
|
|
50
|
-
"wysiwyg:plugins.video.iframe-title": "Video",
|
|
51
|
-
"wysiwyg:plugins.video.button-insert": "Insert video",
|
|
52
|
-
"wysiwyg:plugins.video.button-edit": "Edit video",
|
|
53
|
-
"wysiwyg:plugins.undo.tooltip": "Undo (Ctrl+Z)",
|
|
54
|
-
"wysiwyg:plugins.redo.tooltip": "Redo (Ctrl+Y)",
|
|
55
|
-
};
|
package/translations/sk.d.ts
DELETED
package/translations/sk.js
DELETED
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.sk = void 0;
|
|
4
|
-
exports.sk = {
|
|
5
|
-
"wysiwyg:common.placeholder": "Napíšte niečo pekné...",
|
|
6
|
-
"wysiwyg:components.modal.button-cancel": "Zrušiť",
|
|
7
|
-
"wysiwyg:plugins.bold.tooltip": "Tučné (Ctrl+B)",
|
|
8
|
-
"wysiwyg:plugins.italic.tooltip": "Kurzíva (Ctrl+I)",
|
|
9
|
-
"wysiwyg:plugins.underline.tooltip": "Podčiarknutie (Ctrl+U)",
|
|
10
|
-
"wysiwyg:plugins.code.tooltip": "Kód",
|
|
11
|
-
"wysiwyg:plugins.highlight.tooltip": "Zvýraznenie (Ctrl+Shift+H)",
|
|
12
|
-
"wysiwyg:plugins.h1.tooltip": "Nadpis H1",
|
|
13
|
-
"wysiwyg:plugins.h2.tooltip": "Nadpis H2",
|
|
14
|
-
"wysiwyg:plugins.h3.tooltip": "Nadpis H3",
|
|
15
|
-
"wysiwyg:plugins.h4.tooltip": "Nadpis H4",
|
|
16
|
-
"wysiwyg:plugins.h5.tooltip": "Nadpis H5",
|
|
17
|
-
"wysiwyg:plugins.h6.tooltip": "Nadpis H6",
|
|
18
|
-
"wysiwyg:plugins.link.url-address.label": "URL Adresa",
|
|
19
|
-
"wysiwyg:plugins.link.url-address.placeholder": "Vložte URL adresu",
|
|
20
|
-
"wysiwyg:plugins.link.link-text.label": "Text odkazu",
|
|
21
|
-
"wysiwyg:plugins.link.link-text.placeholder": "Vložte text odkazu",
|
|
22
|
-
"wysiwyg:plugins.link.open-in-new-tab": "Otvoriť v novej karte",
|
|
23
|
-
"wysiwyg:plugins.link.tooltip": "Vložiť odkaz",
|
|
24
|
-
"wysiwyg:plugins.link.button-save": "Uložiť",
|
|
25
|
-
"wysiwyg:plugins.link.button-close": "Zavrieť",
|
|
26
|
-
"wysiwyg:plugins.link.url-address.invalid": "Neplatná URL adresa",
|
|
27
|
-
"wysiwyg:plugins.link.url-address.required": "URL adresa je povinná",
|
|
28
|
-
"wysiwyg:plugins.quote.tooltip": "Citácia",
|
|
29
|
-
"wysiwyg:plugins.ul.tooltip": "Vložiť odrážkový zoznam",
|
|
30
|
-
"wysiwyg:plugins.ol.tooltip": "Vložiť číslovaný zoznam",
|
|
31
|
-
"wysiwyg:plugins.button.tooltip": "Vložiť tlačidlo",
|
|
32
|
-
"wysiwyg:plugins.button.button-text.label": "Text tlačidla",
|
|
33
|
-
"wysiwyg:plugins.button.button-text.placeholder": "Vložte text tlačidla",
|
|
34
|
-
"wysiwyg:plugins.button.url-address.label": "URL adresa",
|
|
35
|
-
"wysiwyg:plugins.button.url-address.placeholder": "Vložte URL adresu",
|
|
36
|
-
"wysiwyg:plugins.button.button-insert": "Vložiť tlačidlo",
|
|
37
|
-
"wysiwyg:plugins.button.button-edit": "Upraviť tlačidlo",
|
|
38
|
-
"wysiwyg:plugins.image.tooltip": "Vložiť obrázok",
|
|
39
|
-
"wysiwyg:plugins.image.alt.label": "Alt obrázku",
|
|
40
|
-
"wysiwyg:plugins.image.alt.placeholder": "Vložte alt obrázku",
|
|
41
|
-
"wysiwyg:plugins.image.caption.label": "Popisok obrázku",
|
|
42
|
-
"wysiwyg:plugins.image.caption.placeholder": "Vložte popis obrázku",
|
|
43
|
-
"wysiwyg:plugins.image.source.label": "Zdroj obrázku",
|
|
44
|
-
"wysiwyg:plugins.image.source.placeholder": "Vložte zdroj obrázku",
|
|
45
|
-
"wysiwyg:plugins.image.button-insert": "Vložiť obrázok",
|
|
46
|
-
"wysiwyg:plugins.image.button-edit": "Upraviť obrázok",
|
|
47
|
-
"wysiwyg:plugins.video.tooltip": "Vložiť video",
|
|
48
|
-
"wysiwyg:plugins.video.url-address.label": "URL adresa",
|
|
49
|
-
"wysiwyg:plugins.video.url-address.placeholder": "Vložte URL adresu",
|
|
50
|
-
"wysiwyg:plugins.video.iframe-title": "Video",
|
|
51
|
-
"wysiwyg:plugins.video.button-insert": "Vložiť video",
|
|
52
|
-
"wysiwyg:plugins.video.button-edit": "Upraviť video",
|
|
53
|
-
"wysiwyg:plugins.undo.tooltip": "Vrátiť späť (Ctrl+Z)",
|
|
54
|
-
"wysiwyg:plugins.redo.tooltip": "Opakovať (Ctrl+Y)",
|
|
55
|
-
};
|