Ends in:
7 DAYS
13 HRS
32 MIN
29 SEC
Ends in:
7 D
13 H
32 M
29 S
Open Closed

Queries in CMS #5770


User avatar
0
sanobarm@cloudassert.com created

We are facing issue with CMS kit while creating page the style and script are not applying for the content we created.(only inline style are working). We have attached the screenshot for your reference. so please let us know the solution for this.


4 Answer(s)
  • User Avatar
    0
    Anjali_Musmade created
    Support Team Support Team Member

    Hello sanobarm

    can you please check this once https://github.com/abpframework/abp/issues/13274

    Regards

  • User Avatar
    0
    sanobarm@cloudassert.com created

    Hello sanobarm

    can you please check this once https://github.com/abpframework/abp/issues/13274

    Regards

    The above link is for issue in rendering html content, but I am having issue in style and script. The style and script are not applying for the content we created. can you provide me the solution for this.

  • User Avatar
    0
    enisn created
    Support Team .NET Developer

    Hello,

    CSS and Javascript files will be attached at the document after you saved. Unfortunately, you can't see CSS and Javascript working on the Preview tab of the editor, you can see them only when you save and navigated to that page by going to /pages/{slug} (default path if you didn't changed)

    Javascript issue might be related to the same problem with https://support.abp.io/QA/Questions/5784

    CMS Kit manipulates the entire content to prevent XSS attacks. But It's no necessary admin-created pages & blog posts. Now we made a change about that and PreventXSS will be enabled only comments and configurable for blogs with the following PR: https://github.com/abpframework/abp/pull/17681

    But, until the next version released you can sue the same workaround with https://support.abp.io/QA/Questions/5784#answer-3a0dc39d-70af-5fd6-453b-873d141585c5

  • User Avatar
    0
    enisn created
    Support Team .NET Developer

    It should be properly working after the workaround that I mentioned above

Made with ❤️ on ABP v9.1.0-preview. Updated on November 20, 2024, 13:06