Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Custom element disappeared after refreshing the preview #138
Everything was fine when adding my custom element into the canvas and hit the save button, I could see my custom element in the front end. However, if I refresh the preview window it gets disappeared while it's still visible on the front end and WordPress content editor. Here is what I see in the content editor:
This is happened after updating Tailor plugin from 1.7.4 to the latest version 1.8.0, I was never facing this problem on previously.
Below is my custom element codes:
@conwaydev I don't think that it happened only to custom namespaced elements, I tried to install tailor official sample extension which has
* Added - The ability to modify the default media query sizes. * Improved - Frontend CSS is automatically recompiled from project SCSS files when Customizer settings are updated. * Improved - The performance of the tailor_modify_colorpicker function. * Fixed - Element CSS not loading when restoring the "Initialized" history snapshot. * Fixed - Notice of undefined index [body_class] displayed on the Gutenberg edit screen [GitHub 134](#134). * Fixed - Certain character sets are not being encoded properly [GitHub 137](#137). * Fixed - Custom elements are not being correctly extracted from saved HTML content [GitHub 138](#138).
Not really though, updated to the 1.8.1 custom elements still can't be extracted from post content, I don't know why my commit it's worked on 1.8.0, probably some other changes affecting to it. But after some digging, I found that
So I pull another commit #143 to make sure it's fired at the very end.