一些(高级?)角度令我的头部受伤。 目标是扩展一个所见即所得的HTML编辑器,允许用户在任意HTML内容中插入特定的角度指令。我选择了medium-editor及其angular-medium-editor包装(但如果有更好的解决方案,我不会坚持这一点)。 This Plunk显示编辑指令如何实例化并活化(使用editable属性)。工具栏被自定义为包含一个按钮,该按钮可在所选文本周围添加自定义指
这是我的配置 new MediumEditor(".editor", {
buttons: ['italic', 'bold', 'underline', 'anchor', 'unorderedlist', 'quote'],
paste: {
// This example includes the default options for paste, if n
如何防止通过中级编辑器编辑子元素,而父元素是可编辑的。 例子: <div class="editable">
This text should be editable<span class="no-editable"> This text should not be editable.</span>
</div>
<script>
var editor = new MediumE