-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
60 lines (51 loc) · 885 Bytes
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
/**
*
* Package: editablebrowser
* Author: Ganesh B
* Description:
* Install: npm i editablebrowser --save
* Github: https://github.com/ganeshkbhat/inbrowseredit
* npmjs Link: https://www.npmjs.com/package/editablebrowser
* File: index.js
* File Description:
*
*
*/
/* eslint no-console: 0 */
'use strict';
function BE() {
/**
*
*
*/
function makeBodyEditable() {
document.body.contentEditable = true;
}
/**
*
*
*/
function makeEditable() {
document.designMode = 'on';
}
/**
*
*
*/
function disableBodyEditing() {
document.body.contentEditable = true;
}
/**
*
*
*/
function disableEditing() {
document.designMode = 'off';
}
return {
makeBodyEditable,
makeEditable,
disableBodyEditing,
disableEditing
}
}