PropertyFieldRichTextBox no editor appears on Modern Pages or including the Tenant Workbench
michaelgalyon opened this issue · 3 comments
I'm running into an issue with the Rich Text Box where no toolbar appears in Modern Pages. It works perfectly in the local workbench, and it works on classic pages, but it looks like many of the cke pieces aren't loading on the modern pages. I'm using version 1.3.7
Here's an example of one of my Rich Text Properties:
groupFields: [
PropertyFieldRichTextBox('englishContent',{
label: strings.EnglishContentFieldLabel,
initialValue: this.properties.englishContent,
inline: false,
minHeight: 400,
mode: 'standard',
onPropertyChange: this.onPropertyPaneFieldChanged.bind(this),
render: this.render.bind(this),
properties: this.properties,
deferredValidationTime: 200,
key: 'richTextBoxFieldEnglish',
context: this.context
})
]
I'm open to the fact that I've messed something up here, but I could use some guidance on what that might be.
Thanks,
Michael
Any resolution on this issue? I am facing the same issue. I'm using version 1.3.7. @michaelgalyon
Hi Olivier.
Same issue, I am using version 1.3.7 with SharePoint 2019 OnPremise. The editor bar is missing as shown in screenshot.
The browser (Edge Chromium) is logging that :
ckeditor.js:88 [Report Only] Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'strict-dynamic' 'unsafe-eval' 'nonce-08244f4c-3871-4495-a2cf-bc73121f74f8' ". Either the 'unsafe-inline' keyword, a hash ('sha256-JFALnBq6pndDoTntwWxO/03AIwA2Pj7A2f5GhDWWPUU='), or a nonce ('nonce-...') is required to enable inline execution.
I am no longer at the same place where I ran into this problem. (sorry I missed your comment @Mayure5h ) But we ended up building our own text editor webpart that pulled in a different Javascript Text Editor. I'll hunt it down this weekend and let you guys know what it was.
Oliver hasn't updated this in a while. But I'll see if I can get the one we built switched out into it's own component and post it to github. No guarantees though, I do need to run that by my old coworkers to make sure they're ok with it.