blog-easy-client
Advanced tools
Comparing version 1.0.0 to 1.0.1
22
index.js
@@ -1602,2 +1602,6 @@ // Main OBJECT | ||
} | ||
if(e.data === null && Selected.tagName === 'H1'){ | ||
Input.value= Input.value.substring(0,Input.value.length-1); | ||
return; | ||
} | ||
@@ -1643,3 +1647,3 @@ e.data === " " ? InpSpace=true : InpSpace=false | ||
// var node=Array.prototype.indexOf.call(Nodes, Selected); | ||
// if(node !== -1) models[i].keys.splice(node,1); | ||
// if(node !== -1) models[i].keys.splice(node,1); | ||
@@ -1673,2 +1677,3 @@ var node=getNode(); | ||
arr += str[i][j]; | ||
space = false; | ||
} | ||
@@ -1682,2 +1687,7 @@ str[i][j] === " " ? space=true : space=false | ||
} | ||
if(Selected.tagName === 'PRE'){ | ||
arr = arr.replace(/</g,'<') | ||
.replace(/>/g,'>') | ||
.replace(/\n/g,'\\n'); | ||
} | ||
Input.value = arr; | ||
@@ -1716,3 +1726,6 @@ | ||
if(val[i] === '\n'){ | ||
if(Selected.tagName !== 'PRE') | ||
str += '<br>'; | ||
else | ||
str += val[i]; | ||
}else{ | ||
@@ -1723,2 +1736,3 @@ if(space && val[i] === " " && Selected.tagName !== 'PRE'){ | ||
str += val[i]; | ||
space = false; | ||
} | ||
@@ -1729,6 +1743,10 @@ val[i] === " " ? space=true : space=false | ||
} | ||
if(Selected.tagName === 'PRE'){ | ||
str = str.replace(/</g,'<') | ||
.replace(/>/g,'>') | ||
.replace(/\\n/g,'\n'); | ||
} | ||
Selected.tagName === 'LI' ? | ||
Nodes[node.i].list[node.j].value = str : | ||
Nodes[node.i].html = str; | ||
@@ -1735,0 +1753,0 @@ } |
{ | ||
"name": "blog-easy-client", | ||
"version": "1.0.0", | ||
"description": "", | ||
"version": "1.0.1", | ||
"description": "A javascript client library for blog-easy which integrates a fully automated blog CMS (content management system) which makes it easy to create and publish blog post", | ||
"main": "index.js", | ||
@@ -6,0 +6,0 @@ "scripts": { |
# blog-easy-client | ||
blog-easy-client is a javascript client library for [bog-easy](https://github.com/allkods/blog-easy) which enables us to integrates a full automated blog system to a website without having to write any code. | ||
blog-easy-client is a javascript client library for [blog-easy](https://github.com/allkods/blog-easy) which enables us to integrates a full automated blog system to a website without having to write any code. | ||
It consists of : | ||
@@ -97,2 +97,3 @@ | ||
``` | ||
> For styling all the text of code, Select all the child element with a `*`, Example : `your_class *{}` | ||
@@ -177,2 +178,3 @@ | ||
- Automatic compression of images | ||
- Converting the cover image into 2 qualities ( preview and original, to decrease the load time of view while viewing multiple post at a time ) | ||
- Converting the cover image into 2 qualities ( preview and original, to decrease the load time of view while viewing multiple post at a time ) | ||
- Tag adding feature |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
60278
1621
178