我已经在Business Catalyst中启用了ICE可编辑功能,并编辑了一个包含可编辑区域的页面,如下所示:
<p ice:editable="multiline">Some text</p>在编辑视图中,p标记不包含ice:editable="multiline",并且它是不可编辑的。更改已经在pages视图中发布,所以我不知道为什么它没有出现。我试着直接在'inspect element‘中编辑html,但也没有用。
为什么这个p是不可编辑的?
发布于 2014-06-09 08:50:28
您的代码示例很好。
我试过直接在'inspect element‘中编辑html,但也没有用。
当您从那里修改DOM时,ICE解析器已经处理了页面,因此更改将不会被识别。
为什么这个p是不可编辑的?
ICE解析器目前非常挑剔,像嵌套ICE区域这样简单的事情会阻止它们出现在ICE编辑器中。例如,这是有效的:
<div>
<p ice:editable="multiline">
The link <a href="#here2">here</a> is locked.
This whole paragraph is <strong>editable</strong> (as "multiline" on the p tag).
</p>
</div>但这不是:
<div>
<p ice:editable="multiline">
The link <a href="#here2">here</a> is locked, but <a href="#this2" ice:editable="link">this</a> link is mutable.
This whole paragraph <strong>should</strong> be editable (as "multiline" on the p tag), but the editable <code>
<a></code> interferes with it.
</p>
</div>请注意,ice:属性将从除ICE Editor之外的所有视图中的呈现HTML中删除,一旦您使用适当的权限登录到后端,即可访问该编辑器。管理页面的顶部应该有一个编辑按钮,如下所示:

悬停时,可编辑标签应如下所示:

https://stackoverflow.com/questions/24026607
复制相似问题