<commit_before>---
layout: post
title:  "网页进入编辑模式"
subtitle:   "HTML元素属性contentEditable 使用说明"
author:     "LiTao"
date:   2017-09-12 11:21:33 +0800
categories: contentEditable
catalog:    true
tags:
    - html
---


## contentEditable 可编辑div

```
<div contentEditable="true">
```<commit_msg>边看边写记得牢<commit_after>---
layout: post
title:  "网页进入编辑模式"
subtitle:   "HTML元素属性contentEditable 使用说明"
author:     "LiTao"
date:   2017-09-12 11:21:33 +0800
categories: contentEditable
catalog:    true
tags:
    - html
---


## contentEditable 可编辑div

```
<div contentEditable="true">
```
```
javascript:document.body.contentEditable=true;
```
{'fraction_non_alphanumeric': 0.15055467511885895, 'fraction_numerical': 0.05705229793977813, 'mean_word_length': 4.3559322033898304, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2358808', 'n_tokens_mistral': 292, 'n_tokens_neox': 276, 'n_words': 49}