Skip to content

Commit

Permalink
docs: add wiki link
Browse files Browse the repository at this point in the history
  • Loading branch information
sibiraj-s committed Oct 3, 2017
1 parent b2ddf54 commit da7d0c7
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 17 deletions.
2 changes: 1 addition & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<!doctype html><html lang="en"><head><meta charset="utf-8"><title>NgxEditor</title><base href="ngx-editor"><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="icon" type="image/x-icon" href="favicon.ico"><link href="styles.f6a07fb204943f53af55.bundle.css" rel="stylesheet"/></head><body><app-root></app-root><script async defer="defer" src="https://buttons.github.io/buttons.js"></script><script type="text/javascript" src="inline.bb74abda4bb5e241dfea.bundle.js"></script><script type="text/javascript" src="polyfills.8eba0ab53b5457105d75.bundle.js"></script><script type="text/javascript" src="vendor.0aaa6fe23ea3764cdb3e.bundle.js"></script><script type="text/javascript" src="main.8cb86c4fbf8e5523fd7d.bundle.js"></script></body></html>
<!doctype html><html lang="en"><head><meta charset="utf-8"><title>NgxEditor</title><base href="ngx-editor"><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="icon" type="image/x-icon" href="favicon.ico"><link href="styles.f6a07fb204943f53af55.bundle.css" rel="stylesheet"/></head><body><app-root></app-root><script async defer="defer" src="https://buttons.github.io/buttons.js"></script><script type="text/javascript" src="inline.6c0759721ec60f001dae.bundle.js"></script><script type="text/javascript" src="polyfills.8eba0ab53b5457105d75.bundle.js"></script><script type="text/javascript" src="vendor.0aaa6fe23ea3764cdb3e.bundle.js"></script><script type="text/javascript" src="main.da145bc5715ac7d23378.bundle.js"></script></body></html>
1 change: 1 addition & 0 deletions docs/inline.6c0759721ec60f001dae.bundle.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion docs/inline.bb74abda4bb5e241dfea.bundle.js

This file was deleted.

1 change: 0 additions & 1 deletion docs/main.8cb86c4fbf8e5523fd7d.bundle.js

This file was deleted.

1 change: 1 addition & 0 deletions docs/main.da145bc5715ac7d23378.bundle.js

Large diffs are not rendered by default.

10 changes: 7 additions & 3 deletions src/app/app.component.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<div class="container">
<div class="logo">
<div class="logo block">
<img src="assets/icons/ngx-editor.svg" alt="ngx-Editor">
<h6>WYSIWYG Editor for Angular Applications.</h6>
<p>({{latestRelease['name']}})</p>
Expand All @@ -10,14 +10,18 @@ <h6>WYSIWYG Editor for Angular Applications.</h6>
<a class="github-button" href="https://github.com/Sibiraj-S/ngx-editor/archive/master.zip" aria-label="Download Sibiraj-S/ngx-editor on GitHub">Download</a>
</div>

<div class="editor">
<div class="editor block">
<app-ngx-editor [config]="editorConfig" [placeholder]="'Enter text here...'" [spellcheck]="true" [(html)]="htmlContent"></app-ngx-editor>
</div>

<div *ngIf="htmlContent">
<div *ngIf="htmlContent" class="htmlblock block">
<h6>HTML Output</h6>
<div class="html">
{{htmlContent}}
</div>
</div>
<div class="information block">
<h6>Documentation</h6>
<p>Check <a href="https://github.com/Sibiraj-S/ngx-editor/wiki/ngxEditor">wiki</a> for more information</p>
</div>
</div>
23 changes: 12 additions & 11 deletions src/app/app.component.scss
Original file line number Diff line number Diff line change
@@ -1,22 +1,23 @@
.container {
padding-top: 1rem;
.block {
margin-bottom: 1rem;
}
.logo {
text-align: center;
margin-bottom: 1rem;
img {
margin-bottom: 0.3rem;
}
}
.editor {
margin-bottom: 1rem;
}
.html {
border: 1px solid #ddd;
border-radius: 4px;
padding: 0.5rem;
background-color: #f1f1f1;
max-height: 10rem;
overflow: auto;
.htmlblock {
.html {
border: 1px solid #ddd;
border-radius: 4px;
padding: 0.5rem;
background-color: #f1f1f1;
max-height: 10rem;
overflow: auto;
}
}
}

Expand Down

0 comments on commit da7d0c7

Please sign in to comment.