From 01324ad0221fce2124cd975c8d1325c8c4687593 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eudes=20In=C3=A1cio?= Date: Mon, 3 Jul 2023 12:04:52 +0100 Subject: [PATCH] tinymce added and working --- config.xml | 2 ++ src/app/app.module.ts | 2 +- src/app/tiny-mce/tiny-mce.page.html | 26 ++++++++++++------- src/app/tiny-mce/tiny-mce.page.ts | 3 +++ src/assets/tinyMCE/editor.html | 6 ++--- .../tinyMCE/src/assets/tinyMCE/tinymce.min.js | 4 --- src/environments/environment.ts | 2 +- src/environments/suport/oapr.ts | 4 +-- version/git-version.ts | 12 ++++----- 9 files changed, 34 insertions(+), 27 deletions(-) delete mode 100644 src/assets/tinyMCE/src/assets/tinyMCE/tinymce.min.js diff --git a/config.xml b/config.xml index d592cd3bc..641257f0f 100644 --- a/config.xml +++ b/config.xml @@ -46,6 +46,8 @@ + + diff --git a/src/app/app.module.ts b/src/app/app.module.ts index 3e264cf1e..41e994d7e 100644 --- a/src/app/app.module.ts +++ b/src/app/app.module.ts @@ -157,6 +157,7 @@ import { FirebaseX } from '@ionic-native/firebase-x/ngx'; */ NgxMatMomentModule, MatSelectModule, MatButtonModule, + EditorModule ], providers: [ @@ -193,7 +194,6 @@ import { FirebaseX } from '@ionic-native/firebase-x/ngx'; */ NgxExtendedPdfViewerModule, FileOpener, DocumentViewer, - EditorModule ], bootstrap: [AppComponent], diff --git a/src/app/tiny-mce/tiny-mce.page.html b/src/app/tiny-mce/tiny-mce.page.html index 345c8aa97..2fb09ea71 100644 --- a/src/app/tiny-mce/tiny-mce.page.html +++ b/src/app/tiny-mce/tiny-mce.page.html @@ -1,10 +1,16 @@ - - - tinyMCE - - - - - - - + \ No newline at end of file diff --git a/src/app/tiny-mce/tiny-mce.page.ts b/src/app/tiny-mce/tiny-mce.page.ts index 177cf1ae0..913b6749b 100644 --- a/src/app/tiny-mce/tiny-mce.page.ts +++ b/src/app/tiny-mce/tiny-mce.page.ts @@ -7,6 +7,9 @@ import { Component, OnInit } from '@angular/core'; }) export class TinyMCEPage implements OnInit { + initialContent = '

Hello, World!

This is my HTML document.

'; + + constructor() { } ngOnInit() { diff --git a/src/assets/tinyMCE/editor.html b/src/assets/tinyMCE/editor.html index 17bf152c1..8c7252e99 100644 --- a/src/assets/tinyMCE/editor.html +++ b/src/assets/tinyMCE/editor.html @@ -1,12 +1,12 @@ - - + + - +