Add basic URL resolution to client-side renderer
Add an API to the Hast to ProseMirror converter module that allows applying a transformation function to every attribute that matches a given criteria for every node in the document tree The purpose of this API is allowing to resolve an asset or link URL in the same way that we do in the server side backend renderer
显示
- app/assets/javascripts/content_editor/services/hast_to_prosemirror_converter.js 56 个添加, 25 个删除.../content_editor/services/hast_to_prosemirror_converter.js
- app/assets/javascripts/content_editor/services/remark_markdown_deserializer.js 28 个添加, 0 个删除...s/content_editor/services/remark_markdown_deserializer.js
- app/assets/javascripts/content_editor/services/serialization_helpers.js 2 个添加, 3 个删除...ascripts/content_editor/services/serialization_helpers.js
- app/assets/javascripts/lib/utils/url_utility.js 24 个添加, 0 个删除app/assets/javascripts/lib/utils/url_utility.js
- glfm_specification/example_snapshots/html.yml 162 个添加, 162 个删除glfm_specification/example_snapshots/html.yml
- glfm_specification/example_snapshots/prosemirror_json.yml 315 个添加, 315 个删除glfm_specification/example_snapshots/prosemirror_json.yml
- spec/frontend/content_editor/remark_markdown_processing_spec.js 62 个添加, 12 个删除...rontend/content_editor/remark_markdown_processing_spec.js
- spec/frontend/content_editor/services/markdown_serializer_spec.js 40 个添加, 35 个删除...ntend/content_editor/services/markdown_serializer_spec.js
- spec/frontend/lib/utils/url_utility_spec.js 24 个添加, 0 个删除spec/frontend/lib/utils/url_utility_spec.js
加载中
想要评论请 注册 或 登录