TangibleInc / template-system

A template system for WordPress with content type loops and conditions
https://docs.loopsandlogic.com/reference/template-system/
8 stars 3 forks source link

Tangible Template block: Remember the selected saved template #76

Closed BenTangible closed 7 months ago

BenTangible commented 9 months ago

When a Tangible Template block is added to a page, it's possible to enter markup inline within the editor. Even if you switch over to the "saved template" tab of the block and select a template, you can always switch back to the editor view to see any manual markup you might have added there. The contents of the editor are never lost even if they aren't being displayed on the front end.

However, the opposite does not seem to be true. If you select a saved template, then switch to the inline editor tab and back to the saved template tab, your saved template selection is lost and it instead selects the first template by default. It would be better if the Tangible Template block could remember the selected saved template even when switching to the editor.

eliot-akira commented 7 months ago

Solved by https://github.com/TangibleInc/template-system/commit/aada85ddfa19831109dfa1d0ffd503dcaa2e0f09