Publisher does not support the Fluid field type. Please do not contact asking when support will be available.

If you purchased an add-on from expressionengine.com, be sure to visit boldminded.com/claim to add the license to your account here on boldminded.com.

Ticket: Bloqs + Wygwam + Live Preview not working

Status Resolved
Add-on / Version Bloqs 4.0.3
Severity
EE Version 4.3.1

Kees Internetbureau

Jun 06, 2018

The live preview works after clicking the button, but when you change something, the Wygwam fields are empty, uneditable and previews are not updated.

It’s the combination of Bloqs & Wygwam, because there are pages with Wygwam without Bloqs and those are working correctly.

There are some console errors…

#1

BoldMinded (Brian)

Thanks for the report. Can you share the console errors you are seeing? I’ll take a look into this, but I have a feeling this may be on EE Harbor to fix. Bloqs just provides the data, its up to the field type on how to handle that data in the template. Did you test Wygwam inside of Grid with Live Preview to see if it works there?

#2

Est Digital

Refused to execute script from ‘https://loader.webspellchecker.net/sproxy_fck/sproxy.php?plugin=fck2&customerid=1:ua3xw1-2XyGJ3-GWruD3-6OFNT1-oXcuB1-nR6Bp4-hgQHc-EcYng3-sdRXG3-NOfFk&cmd=script&doc=wsc&schema=22’ because its MIME type (‘text/xml’) is not executable, and strict MIME type checking is enabled.

Is the error I am getting!

#3

Est Digital

And I do get this error in Developer log everytime:

D:\Projecten\basismeters\webmanager\user\addons\bloqs\libraries\EEBlocks\Controller\TagController.php on line 422.

From template tag exp:channel:entries in pagina/contact.

Deprecated since 4.0. Use ee(‘Variables/Parser’)->parseVariableProperties() instead.

#4

BoldMinded (Brian)

The first error looks like some spell checker thing in Wygwam. The second isn’t an error, its just a deprecation notice. Neither of those would prevent Wygwam from working in Live Preview.

Did you test it in Grid yet?

#5

Est Digital

Hmmm, no I did not. But it occurs in every site we have..

#6

BoldMinded (Brian)

I just did a test and it appears to be working fine. Using Wygwam 4.1.11 and Bloqs 4.0.3.

https://screenshots.firefox.com/nwF0vNaPocGF1ISA/ee400.vm

#7

Est Digital

Yes, true, it works for me when adding a new Bloq. But all breaks down after saving the entry

#8

BoldMinded (Brian)

Did you try it in Grid yet? Did you try changing the Wygwam field to a textarea field? All Bloqs sees when there is a Wygwam field is a textarea field, there is nothing special Bloqs has to do to handle Wygwam. In fact, Wygwam has to do more to work when it’s in a Grid or Bloqs field b/c it is binding JavaScript events to the textarea.

#9

DSite

I just ran into this bug, too. I hope it’s appropriate for me to jump in.

I tried this with WYGWAM in a Grid field and experienced the same thing.

I’ll contact EE Harbor and check in back here if and when they have some thoughts. If the OP has already done so, feel free to say what you found out.

#10

BoldMinded (Brian)

I’m pretty sure its a Wygwam bug… I’ve seen Jace talking about it in Slack.

#11

DSite

Aha! Looks like EE Harbor is already on it…

VERSION 4.1.13 Fixed JS errors when triggering live preview Fixed Wygwam editors in a Grid or Bloq appearing in live preview with full editor even if basic was selected

VERSION 4.1.12 Fixed editor when Wygwam was in a Bloq during Live Preview Fixed Live Preview URL formatting

Downloading 4.1.13 to check.

#12

DSite

Huh. 4.1.13 appears to fix it in Bloqs for me but I’m still getting the behavior in Grid. Looks like I might be hitting up EE Harbor after all.

Thanks for your work on Bloqs, Brian. Have a nice day.

#13

BoldMinded (Brian)

Going to close this b/c I’m 99.9% certain its a Wygwam issue. Bloqs just gets the raw data from the DB and passes it through.

Login to reply