Comments (6)
+1
I used contenteditor "link" tool for some links that were styled as buttons using classes and as soon as I saved my edits, the classes were stripped off leaving the link a plain one.
from contenteditor-plugin.
+1000 here, I just wanted to post the same issue and discover yours. Why closed without answers ?
Personaly, I use fixture a lot because I want my clients to be able to edit texts on their sites, but not the design neither the semantic, so I don't want to let them to play with different tags.
But I still want to be able to easily apply styles to that elements, and using class would greatly help for that purpose.
I would wrap the fixture in another tag with the class I want, but, as most october CMS user. I always try to remove a wrapper when I can (to have lighter, more readable, elegant code).
For this reason, adding class directly to the fixture element would be the best option.
Best regards,
Alex
from contenteditor-plugin.
Since opening this issues, we've tackled this problem by wrapping the element with a div. In CSS apply that styling to the html element. (like @Alex360hd already pointed out). It's the same principe, just a bit messier.
.lead h1 {
// styles here
}
from contenteditor-plugin.
PR added, even if the wrapper solution works. I think it's nicer to have class support directly in content editor component (at lease for fixture, where it make sense).
from contenteditor-plugin.
@Alex360hd Thanks for pr!
But I want to complete rework content editor when Content Tools will be ported to ES6. Then it should be easier to change, customize and many better features :)
from contenteditor-plugin.
Nice !
Do you think you can commit the PR by waiting the new version ? I'm actually building a website by using this method, would like to know if the PR will be commited before I finish it or if I have to go back to the old method by adding a wrapper with the class I need.
from contenteditor-plugin.
Related Issues (20)
- Style palettes not appearing in front-end HOT 1
- Create predefined text if file doesn't exit HOT 1
- insert "button" tag HOT 1
- Not work in snippet - AJAX handler 'contenteditor::onSave' was not found. HOT 3
- Image upload issue HOT 1
- Add font color HOT 1
- Disable wysiwyg editor on backend HOT 1
- Edit Images HOT 2
- Save button only work if I didnt edit something HOT 1
- How to add block id to you editor, i have option only class HOT 1
- All the buttons are greyed out HOT 5
- October v2 image upload HOT 2
- Save not working HOT 7
- button stuck at spinning gear animation prevents using the plugin HOT 2
- Make plugin compatible with octobercms 3.x HOT 1
- Syntax error on october cms marketplace HOT 2
- Would it be possible to use variables on content editor block ?
- Improve folder hierarchy when dealing with multilingual website
- Add to WINTER CMS HOT 1
- Plugin no longer works on OctoberCMS v3 due to changes to OctobeCMS Ajax API HOT 2
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 contenteditor-plugin.