[HTML 5] contenteditable

The contenteditable global attribute is an enumerated attribute indicating if the element should be editable by the user. If so, the browser modifies its widget to allow editing.

<blockquote contenteditable="true">
    <p>Edit this content to add your own quote</p>
</blockquote>

<cite contenteditable="true">-- Write your own name here</cite>

 

<pre class="source" contenteditable>export class Pizza extends Food {
  constructor (private name: string) {}
}</pre>

 

posted @ 2022-09-11 22:16  Zhentiw  阅读(12)  评论(0编辑  收藏  举报