Ouxsoft/LivingMarkup

Exist in editable range

Closed this issue · 1 comments

There should be a component setting to state whether or not a component can exist in an editable region.

For example, you don't want a web editor adding a <block name="MainMenu"/> to a <div> that is editable.

Not sure where this setting should reside. Probably within the Component itself. Perhaps ACL concerning the Component would suffice.

$component->allow_in_editable_region = false;

This would check if any parents featured an attribute that indicated whether or not it was editable. Perhaps <div editable="true"> or <div region="wysiwyg">, etc.

Outside scope of LHTML processing