Comments (6)
What would be the direct advantage of this change? You can see the image in the media folder, but you can't do anything with it without breaking the front-end (apart from overwriting it).
from contenteditor-plugin.
The benefit is that's a better practice for the october CMS as it's the recommanded way to get the image path. For example if, for some reason, you have to change the path of your media directory, you don't need to change the "src" attributes of all your images, instead, you work on the media variable of october CMS.
In addition, it can prepare the images to be extended, for example with the image resizer plugin that works as a twif filter. If the contenteditor plugin can't understand mustache tags, that possibility can be forget definitively.
So I think there are plenty advantages to use october syntax for images.
from contenteditor-plugin.
I think, it can be possible but image cant be rendered because, that media tag needs to be parsed with php not js, you can see only empty image without nothing
from contenteditor-plugin.
Maybe the contenteditor plugin can globally register the path of october media tag and make it available in javascript.
The same way you define the contenteditor default media folder in backend, that variable is not registered in JS, but it can be accessed by contenteditor js plugin when it need to upload an image.
from contenteditor-plugin.
Register default media folder is something other then this. {{ '/folderpath/dummy.png'|media }}
this needs to be parsed with php template system TWIG, but you cant parse php on frontend
from contenteditor-plugin.
The Media Manager isn't accessible on the front-end (AFAIK), so there is no clean way to implement this feature I think.
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.