I have made Edit available only to a certain role on my site (unavailable in particular to the "anonymous" user). IMHO this ought to mean that the extra classes and div's which Edit adds to the markup do not appear (since they serve no purpose). But they do.

Comments

wim leers’s picture

Component: Code » Documentation
Assigned: Unassigned » wim leers

1) Edit only adds data- attributes to "proper" fields. It only adds more things when it could not work otherwise.
2) This is by design, to not break the render cache.

Ill add this to the FAQ in the README.

wim leers’s picture

Title: Edit classes added to mark-up even when Edit unavailable » Document why Edit classes are added to HTML even when Edit is unavailable for the current user
Category: bug » task
Status: Active » Fixed
Issue tags: +Spark

Automatically closed -- issue fixed for 2 weeks with no activity.