<template>
<el-button @click.stop="pushTag()">插入的内容</el-button>
<div
:key="index"
ref="PreviewContent"
contenteditable="plaintext-only"
@click="changeIndex(index)"
class="content"
:class="activeIndex == index? 'active':''"
></div>
</template>
<script>
export default {
data(){
},
methods:{
pushTag(type,nodeid){
}{
div plaintext-only属性,点击按钮,插入不可编辑标签
最新推荐文章于 2024-04-22 10:39:07 发布
本文介绍如何在HTML内容中利用Vue.js实现点击按钮动态插入一个带有plaintext-only属性的不可编辑div元素,使得用户只能查看而不能修改其内容。
摘要由CSDN通过智能技术生成