Legacy Knowledge Base
Published Jul. 2, 2025

Double quotes in CKEditor source view are converted to " upon publishing the content

Written By

Alfonso Crisci

How To articles are not official guidelines or officially supporteddocumentation. They are community-contributed content and may not alwaysreflect the latest updates to Liferay DXP. We welcome your feedback toimprove How to articles!

While we make every effort to ensure this Knowledge Base is accurate, itmay not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with anyfeedback or concerns.

Legacy Article

You are viewing an article from our legacy "FastTrack"publication program, made available for informational purposes. Articlesin this program were published without a requirement for independentediting or verification and are provided "as is" withoutguarantee.

Before using any information from this article, independently verify itssuitability for your situation and project.

Issue

  • In a web content having an HTML field, after inserting this HTML in the source view:
    <video id="vid1" class="video-js vjs-default-skin" controls width="100%"
        height="480" data-setup='{ "techOrder": ["youtube"], "sources": [{ "type":
        "video/youtube", "src": "https://www.youtube.com/watch?v=2EPZxIC5ogU"}]
        }'>
    It will be observed that such markup will turn to
    <video class="video-js vjs-default-skin" controls="" data-setup="{ &quot;techOrder&quot;:
        [&quot;youtube&quot;], &quot;sources&quot;: [{ &quot;type&quot;:
        &quot;video/youtube&quot;, &quot;src&quot;: &quot;https://www.youtube.com/watch?v=2EPZxIC5ogU&quot;}]
        }" height="480" id="vid1" width="100%">&nbsp;</video>
    Once published, turning the double quotes into &quot;

Environment

  • Liferay DXP 7.0+

Resolution

Additional Information

  • Note: CKEditor and Alloy Editor are provided as WYSIWYG Content Editors and are not intended to be HTML Editors. These editors' Source Modes are provided for convenience and are only intended for minor markup adjustments. Any markup entered into Source Mode is not guaranteed to remain unmodified nor intact upon publication.
Did this article resolve your issue ?

Legacy Knowledge Base