Comments (3)
That would be the expected behavior. If there's custom css code overriding the widgets, the widgets no longer take effect. But deleting the custom css code should make them active again.
from snowball.
Okay. For this would it make sense to have separate event handlers for each of the code sections because if the javascript is edited would that mean the admin block wouldn't work as well. Also I have created the read only sections of the code and html should be ignored, correct?
from snowball.
That's right, HTML should be ignored. Same with the read-only sections of CSS and JS.
Adding custom CSS or JS shouldn't affect the admin block directly. Instead, custom CSS should be appended to the block's style scoped element (creating the style scoped if it doesn't exist yet). So the custom CSS works in addition to the widget styles, and can override them as well. Similarly, the custom JS would be appended to the script tag (again creating it if it doesn't exist).
I don't know if it makes sense to have different event handlers, but it would to get the CSS part working first. There will be some tricky aspects of previewing custom JS that we may or may not want to take on (i.e., infinite loops, resetting to original state, etc.) CSS will be simpler.
from snowball.
Related Issues (20)
- HTML/CSS not editable HOT 2
- Last paragraph in text module not being parsed as a paragraph HOT 1
- Could not insert image from media library HOT 1
- Timeline module HOT 2
- Document module
- Word cloud module
- Lead module
- Use capabilities on snowball post type? HOT 3
- Call to a member function add_cap() on a non-object HOT 1
- Snowball Articles Not Appearing in Feeds or Front Page HOT 1
- Limit modules by user role
- Snowball not work image slider in my Newspaper 7 theme HOT 5
- Snowball add next version idea cars function. HOT 3
- Visual editor support for text module
- Collapsable blocks for better navigation and reordering
- Rework table of contents module
- Visual Compressor dont show snowball post? HOT 6
- Stop logging HOT 5
- How to remove/change snowball permalink HOT 2
- Newbie: Video block not available HOT 3
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 snowball.