Modern Pages: New CK5 editor type - are the current DIV wrappers for text web parts still correct? Or do they need an update? #1599
Unanswered
heinrich-ulbricht
asked this question in
General
Replies: 1 comment
-
Looking at the So the answer to my question seems to be: no changes required. I'd still like to have a nod in this direction, to have a second opinion. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
PnP Core is about to switch to the (relatively new) CK5 editor type by default (still unreleased as of writing this), when creating modern pages:
pnpcore/src/sdk/CHANGELOG.md
Line 32 in 74e4d0c
The new editor type requires different HTML to be generated for certain page contents, like inline images, tables (now using
figure
) and others.Here for example the editor type determines, which inline image HTML will be generated:
pnpcore/src/sdk/PnP.Core/Model/SharePoint/Pages/Internal/Page.cs
Lines 20 to 21 in 74e4d0c
Looking at the page structure of current modern pages, I'm wondering if the DIVs containing the text web parts also need to be changed, specifically this part:
pnpcore/src/sdk/PnP.Core/Model/SharePoint/Pages/Internal/PageText.cs
Lines 144 to 145 in 74e4d0c
When I create a modern page in the browser and look at the HTML structure, it looks different.
At the same time, generating new CK5 pages using the existing
div
wrappers seems to work.Nevertheless, I see some effects like tables not being sized properly until I edit the page, even if the page is provisioned as CK5. So, I'm wondering if the surrounding DIVs needs to be adjusted to be "proper CK5 HTML".
Any insights are appreciated. cc @jansenbe
Beta Was this translation helpful? Give feedback.
All reactions