Comments (4)
Can you give a more accurate example, possibly live/web? I don't quite understand when the div or p tag pops out, since you're supposed to wrap editable areas in their own div tags. Does this happen with a custom theme or vanilla WonderCMS installation without any additional plugins?
As far as I understand the problem, this doesn't happen with regular content, but only the extra editable blocks? Or all editable blocks in general? I'm testing out all possible variations and the only time something saves wrong and becomes in-editable is when you're editing the HTML inside the editable blocks and close any of your code incorrectly.
An example of your code/site or when this happens will greatly help.
from wondercms.
To reproduce that kind of problem, the steps are:
- Install WonderCMS
- Go to theme.php
- On line 42 wrap
<?=wCMS::page('content')?>
into<p><?=wCMS::page('content')?></p>
- See the result
In my own theme, I have some misc content (like item prices) wrapped around with a <p>
tag. And if I try to store something, that is starting with a block element in my content section, this will cause a bug.
The problem goes with all editable blocks in general.
from wondercms.
Thank you very much for the clear explanation.
I've tested out a fixed (unpublished) version pasted below. Can you please do a short test and replace the below index.php with your index.php or just create an extra folder (to avoid you overriding any files) on your server to test this out until we push an official fix.
What I changed in the index.php core file is changed the structure from spans to divs. Please report back as I couldn't break the editor any more in the way you described with the fix below.
If all tests go ok, we'll push a fix accordingly and credit your bug report and assistance. Please note this index.php below is not for production use and is only for testing purposes.
from wondercms.
Fix pushed with version 2.0.3. You have been also publicly credited at the following locations:
- https://www.wondercms.com/whatsnew
- https://github.com/robiso/wondercms/releases
- https://github.com/robiso/wondercms in the readme file
- https://www.wondercms.com/forum/viewtopic.php?f=8&p=1684
from wondercms.
Related Issues (20)
- Custom page 404.php template doesn't work for all 404 pages. HOT 1
- Edit contact form plugin to not delete config and data
- Default language of site HOT 7
- Could renderPageNavMenuItem() be made public, or injectable?
- System administration should escape data HOT 3
- It would be nice if the result of loadPlugins() could be re-used HOT 2
- suggestion: don't use CDNs for default theme HOT 3
- database.js: Page visibility indicator HOT 2
- Hooks on logins HOT 2
- Can't install HOT 6
- Synology NAS Support HOT 16
- [Feature Request] Per page theming/multiple active themes HOT 1
- Add timeCreated and timeUpdated to database.js for posts
- Option to display Blog on homepage HOT 2
- Control that the url is not already used when creating a new blog post
- Backup a(nd Restore) Plugin? HOT 2
- [Plugin improvement] Next/Previous on Blog Plugin
- [Plugin request] RSS Feed
- some question about image and plugin of create blog HOT 1
- php on a specific page HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wondercms.