Skip to content

Commit 20d9013

Browse files
refactor: Allow HTML fields to retain color & font size when copy pasting content from other source (#2787)
AB#112824
1 parent 8e04f2f commit 20d9013

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

libs/shared/src/lib/const/tinymce.const.ts

+2
Original file line numberDiff line numberDiff line change
@@ -338,6 +338,8 @@ export const FIELD_EDITOR_CONFIG: RawEditorSettings = {
338338
toolbar:
339339
'undo redo | bold italic underline strikethrough | fontselect fontsizeselect formatselect | alignleft aligncenter alignright alignjustify | outdent indent | numlist bullist | forecolor backcolor removeformat | charmap emoticons | fullscreen preview save | insertfile image media link avatar recordeditor',
340340
toolbar_sticky: true,
341+
paste_retain_style_properties: 'color font-size',
342+
paste_webkit_styles: 'color font-size',
341343
image_advtab: true,
342344
importcss_append: true,
343345
height: 600,

0 commit comments

Comments
 (0)