Fix issue in RTE with image resize
If you upload an image in PTE and resize it in RTE, the image was lost. This commit fixes it. - Introduce getSourceMapAttributes function for centralized attribute management - Update image and playable extensions to use new source map attributes - Refactor sourcemap extension to use centralized attribute function - Modify image serialization logic to handle different source tag names - Add drag functionality for element manipulation in tests - Implement image resizing test in content editor Changelog: fixed
显示
- app/assets/javascripts/content_editor/extensions/image.js 2 个添加, 0 个删除app/assets/javascripts/content_editor/extensions/image.js
- app/assets/javascripts/content_editor/extensions/playable.js 2 个添加, 0 个删除app/assets/javascripts/content_editor/extensions/playable.js
- app/assets/javascripts/content_editor/extensions/sourcemap.js 2 个添加, 27 个删除...assets/javascripts/content_editor/extensions/sourcemap.js
- app/assets/javascripts/content_editor/services/markdown_sourcemap.js 33 个添加, 0 个删除...javascripts/content_editor/services/markdown_sourcemap.js
- app/assets/javascripts/content_editor/services/serializer/image.js 1 个添加, 1 个删除...s/javascripts/content_editor/services/serializer/image.js
- spec/frontend/content_editor/services/serializer/image_spec.js 14 个添加, 0 个删除...frontend/content_editor/services/serializer/image_spec.js
- spec/support/helpers/rich_text_editor_helpers.rb 18 个添加, 0 个删除spec/support/helpers/rich_text_editor_helpers.rb
- spec/support/shared_examples/features/rich_text_editor/media_shared_examples.rb 21 个添加, 0 个删除...amples/features/rich_text_editor/media_shared_examples.rb
加载中
想要评论请 注册 或 登录