-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Link on image is lost after loading the content with GHS enabled #12831
Comments
Temporary fix: Somehow the editor does not break the link when it's not contained within FIGURE but is the parent of FIGURE instead.
|
Hi @Schwammerl11, Thanks for reaching out and for bringing this issue to our attention. We can confirm that it does indeed occur and seems to be related to the I took the liberty of changing your post's title and adding my troubleshooting steps to the top of it to make it a little bit easier for our devs to tackle this issue. Hope you don't mind. Feel free to continue participating in this thread if you have anything else to share. Once again, thank you for using our editor and helping us make it better 🙂 |
Refinement: to check the order of upcast conversion when GHS and |
…hen-ghs-enabled Fix (html-support): Link on image should not be lost when loading content with `LinkImage` and full GHS enabled. Closes #12831.
…hen-ghs-enabled Fix (html-support): Link on image should not be lost when loading content with `LinkImage` and full GHS enabled. Closes #12831.
EDITED:
📝 Provide detailed reproduction steps (if any)
LinkImage
plugineditor.setData( editor.getData() )
in the browser's consoleeditor.getData()
<a>
tag is stripped in the data retrieved📃 Other details
Disabling GHS makes this works as expected i.e. the link is retained. Tested this using our
linkimage
manual test with theGeneralHtmlSupport
plugin enabled.This doesn't seem to be a regression (at least not a recent one) since it exists as far back as v30.0.0 of the editor.
ORIGINAL POST:
📝 Provide detailed reproduction steps (if any)
✔️ Expected result
Link should show up in editor and be editable
❌ Actual result
Link does not show up in editor and is therefore lost when content is saved again
📃 Other details
HTML Code on which editor is initialized upon, link tag included
Editor source code, link tag omitted
Example code, use toggle button to show/hide editor
https://codepen.io/schwammerl11/pen/mdKWaoV
"Alignment",
"Autoformat",
"AutoImage",
"AutoLink",
"Autosave",
"Base64UploadAdapter",
"BlockQuote",
"Bold",
"CloudServices",
"Code",
"CodeBlock",
"DataFilter",
"DataSchema",
"Essentials",
"FindAndReplace",
"FontBackgroundColor",
"FontColor",
"FontFamily",
"FontSize",
"GeneralHtmlSupport",
"Heading",
"Highlight",
"HorizontalLine",
"HtmlComment",
"HtmlEmbed",
"Image",
"ImageCaption",
"ImageInsert",
"ImageResize",
"ImageStyle",
"ImageToolbar",
"ImageUpload",
"Indent",
"IndentBlock",
"Italic",
"Link",
"LinkImage",
"List",
"ListProperties",
"MediaEmbed",
"MediaEmbedToolbar",
"Mention",
"PageBreak",
"Paragraph",
"PasteFromOffice",
"RemoveFormat",
"SourceEditing",
"SpecialCharacters",
"SpecialCharactersArrows",
"SpecialCharactersCurrency",
"SpecialCharactersLatin",
"SpecialCharactersMathematical",
"SpecialCharactersText",
"StandardEditingMode",
"Strikethrough",
"Style",
"Subscript",
"Superscript",
"Table",
"TableCaption",
"TableCellProperties",
"TableColumnResize",
"TableProperties",
"TableToolbar",
"TextPartLanguage",
"TextTransformation",
"Title",
"TodoList",
"Underline",
"WordCount"
]
If you'd like to see this fixed sooner, add a 👍 reaction to this post.
The text was updated successfully, but these errors were encountered: