You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I read the html of the editor and then set it again (see repro code).
If a cke is inside a block the formatting inside that block is lost after saving.
See this video for an example:
Screencast.From.2025-11-27.17-18-59.webm
Steps to reproduce
Install Control Panel JS:
Add the following js as its content:
document.addEventListener('onVizyConfigReady',()=>{letfirst=true;Craft.Vizy.Config.registerExtensions((extensions,vizyInput)=>{if(!first)return;first=false;window.vizyGetSetHTML=()=>{consthtml=vizyInput.editor.getHTML();vizyInput.editor.chain().focus().setContent(html,true).run();console.log('set content to: ',html);};console.log('vizyGetSetHTML registered');});});
Open a page with a vizy field with a cke field inside a block (see video).
Go into the console and execute the function vizyGetSetHTML().
After reloading the page, the formatting in the cke is gone.
Describe the bug
Well this is probably a big edge case.
I read the html of the editor and then set it again (see repro code).
If a cke is inside a block the formatting inside that block is lost after saving.
See this video for an example:
Screencast.From.2025-11-27.17-18-59.webm
Steps to reproduce
Add the following js as its content:
vizyGetSetHTML().Craft CMS version
5.8.20
Plugin version
3.0.12
Multi-site?
No
Additional context
No response