Values added at source in web content are not working properly
How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!
While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.
Legacy Article
You are viewing an article from our legacy "FastTrack"
publication program, made available for informational purposes. Articles
in this program were published without a requirement for independent
editing or verification and are provided"as is" without
guarantee.
Before using any information from this article, independently verify its
suitability for your situation and project.
Issue
-
When the string '-' or any special character is written in the source code of web content, it should display the hyphen character or expected character on the display page
- Current Behavior: The page is not displaying the hyphen character or any special characters as expected. Instead, it displays some other random characters.
- In some updates, values added at source at rich text are not saved when publishing directly
Resolution
- The observed behavior is a known concern of DXP updates.
-
Reason: As a WYSIWYG editor, the responsibility of transforming the input to the desired HTML is handled by CKEditor itself. The user should not use the editor in source mode for editing, that is a convenient feature and its intent was never to allow users to make changes by writing HTML. Once users save their changes from source mode or simply change back from source mode, the editor will modify the source to ensure the main feature of the editor.
-
The workaround applies to web content: Users must be careful not to utilize character codes in the editor, but if they want, may use them if they switch back to normal view mode before publishing.
- This has been addressed via LPS-190984 and is included in Update 92.
Did this article resolve your issue ?