Skip to content

Commit

Permalink
fix: initialization undefind in editor
Browse files Browse the repository at this point in the history
  • Loading branch information
sibiraj-s committed Oct 3, 2017
1 parent d99dff2 commit d17c1dd
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
Install via Package managers such as [npm][npm] or [yarn][yarn]

```bash
npm install [email protected].2 --save
npm install [email protected].3 --save
# or
yarn add [email protected].2
yarn add [email protected].3
```

### Usage
Expand Down
6 changes: 3 additions & 3 deletions docs/3rdpartylicenses.txt
Original file line number Diff line number Diff line change
Expand Up @@ -67,14 +67,14 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.

@angular/[email protected].3
@angular/[email protected].4
MIT
MIT

@angular/[email protected].3
@angular/[email protected].4
MIT
MIT

@angular/[email protected].3
@angular/[email protected].4
MIT
MIT
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.2bd7af2c0829ae7c2b5b.bundle.js"></script><script type="text/javascript" src="polyfills.8eba0ab53b5457105d75.bundle.js"></script><script type="text/javascript" src="vendor.1888c7c68d355a7353fd.bundle.js"></script><script type="text/javascript" src="main.227a3d94b682be61390e.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.7eef625e0f903a1a7c53.bundle.js"></script><script type="text/javascript" src="polyfills.8eba0ab53b5457105d75.bundle.js"></script><script type="text/javascript" src="vendor.dd8fdb61ced359145657.bundle.js"></script><script type="text/javascript" src="main.8baad82eb9253e961f35.bundle.js"></script></body></html>

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

Large diffs are not rendered by default.

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ngx-editor",
"version": "1.0.0-beta.2",
"version": "1.0.0-beta.3",
"description": "WYSIWYG Editor for Angular Applications",
"license": "MIT",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/app/app.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<div class="logo">
<img src="assets/icons/ngx-editor.svg" alt="ngx-Editor">
<h6>WYSIWYG Editor for Angular Applications.</h6>
<p>(v1.0.0-beta.2)</p>
<p>(v1.0.0-beta.3)</p>
<a class="github-button" href="https://github.com/Sibiraj-S" aria-label="Follow @Sibiraj-S on GitHub">Follow @Sibiraj-S</a>
<a class="github-button" href="https://github.com/Sibiraj-S/ngx-editor/fork" aria-label="Fork Sibiraj-S/ngx-editor on GitHub">Fork</a>
<a class="github-button" href="https://github.com/Sibiraj-S/ngx-editor" aria-label="Star Sibiraj-S/ngx-editor on GitHub">Star</a>
Expand Down
2 changes: 1 addition & 1 deletion src/app/ngx-editor/ngx-editor.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ export class NgxEditorComponent implements OnInit {
this.config['editable'] = false;
}

this.element.nativeElement.getElementsByClassName('textarea')[0].innerHTML = this.html;
this.element.nativeElement.getElementsByClassName('textarea')[0].innerHTML = this.html || '';
}

}

0 comments on commit d17c1dd

Please sign in to comment.