<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
    <channel>
        <title>Vue on Zhou&#39;s blog</title>
        <link>https://blog.zhoujump.com/en/tags/vue/</link>
        <description>Recent content in Vue on Zhou&#39;s blog</description>
        <generator>Hugo -- gohugo.io</generator>
        <language>en</language>
        <lastBuildDate>Tue, 26 Aug 2025 00:00:00 +0000</lastBuildDate><atom:link href="https://blog.zhoujump.com/en/tags/vue/index.xml" rel="self" type="application/rss+xml" /><item>
        <title>Two-way data binding of contenteditable elements in Vue</title>
        <link>https://blog.zhoujump.com/en/p/contenteditable-vue/</link>
        <pubDate>Tue, 26 Aug 2025 00:00:00 +0000</pubDate>
        
        <guid>https://blog.zhoujump.com/en/p/contenteditable-vue/</guid>
        <description>&lt;img src="https://blog.zhoujump.com/en/p/contenteditable-vue/cover.en.webp" alt="Featured image of post Two-way data binding of contenteditable elements in Vue" /&gt;&lt;blockquote&gt;
&lt;p&gt;This article is published on my personal website, original link: &lt;a class=&#34;link&#34; href=&#34;https://blog.zhoujump.com/en/p/contenteditable-vue/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;
    &gt;Two-way data binding of contenteditable elements in Vue&lt;/a&gt;&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;A record of what to pay attention to when using the contenteditable attribute in Vue.&lt;/p&gt;
&lt;h2 id=&#34;contenteditable&#34;&gt;contenteditable
&lt;/h2&gt;&lt;h3 id=&#34;usage&#34;&gt;Usage
&lt;/h3&gt;&lt;p&gt;Adding contenteditable=&amp;ldquo;true&amp;rdquo; attribute to any element can make the element editable. It can achieve richer editing control layout than ordinary input and textarea. For example, an editor that can embed tags like this:
&lt;img src=&#34;https://blog.zhoujump.com/p/contenteditable-vue/1-1.webp&#34;
	width=&#34;1111&#34;
	height=&#34;552&#34;
	
	loading=&#34;lazy&#34;
	
		alt=&#34;A text editor that can embed tags&#34;
	
	
		class=&#34;gallery-image&#34; 
		data-flex-grow=&#34;201&#34;
		data-flex-basis=&#34;483px&#34;
	
&gt;&lt;/p&gt;</description>
        </item>
        
    </channel>
</rss>
