You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I'd like to discuss if it's possible to achieve an not invasive way of how the inline actions are attached to the content elements.
The problem
Currently the HTML of the content elements is gone be wrapped by several containers. This can break layouts in many ways.
A (possible) solution
Don't wrap content elements, instead put alle inline action for each available content element before the closing </body>
Don't add dropzones if nothing is dragged
Assume, that each content element is at least selectable with a CSS selector like [id^="c"], which match for example <div id="c123">
Add JS with this selector, filter out non content elements, add hover which calculate and set the position for the inline actions on the fly
Add JS which adds the dropzones, when something is dragged, and removes the dropzones, when something was dropped/abort
Add maybe an optional config for each CType within TypoScript tt_content, which would allow to override position relative from the calculation (CSS transform) of something like orientation (right on the x-axis)
The good
since it works more like browser extensions, it should not break any layout
...
The bad
This would probably be more a v3 than a v2.5
...
Since I'm currently not heavily into the code of Frontend Editing, I'm not sure, if it's even possible to change it this way. So before I would try it myself, I'd like to hear your opinion to this topic.
The text was updated successfully, but these errors were encountered:
vaxul
changed the title
[DISCUSSION] Change way, how inline actions are attached
[DISCUSSION] Change way, how inline actions and dropzones are attached
May 17, 2021
@vaxul This is a very good idea and I am all for it! The idea with making it more versatile and more modular is awesome, the questions how to achieve this in the best way?
One of my concerns will be that it will be a lot of work and a new major version for example v3, because all of the breaking changes.
Hi, I'd like to discuss if it's possible to achieve an not invasive way of how the inline actions are attached to the content elements.
The problem
Currently the HTML of the content elements is gone be wrapped by several containers. This can break layouts in many ways.
A (possible) solution
</body>
[id^="c"]
, which match for example<div id="c123">
The good
The bad
Since I'm currently not heavily into the code of Frontend Editing, I'm not sure, if it's even possible to change it this way. So before I would try it myself, I'd like to hear your opinion to this topic.
The text was updated successfully, but these errors were encountered: