It is currently 6 June 2025, 18:20 Advanced search

Campo HTML

Domande e risposte su come utilizzare Instant Developer Foundation al meglio

Campo HTML

Postby f.iadipaolo » 12 May 2025, 12:35

Ho impostato un text come campo HMTL, ma ho difficoltà nella gestione del componente.
Nello specifico, vorrei
1. disattivare il comando di schermo intero, ma nella setToolbarCommandEnabled non è presente,
2. inserire una stringa nell'editor, che dovrebbe potersi fare con commandInsertHTML, che però non produce nessun risultato.
f.iadipaolo
 
Posts: 239
Joined: 4 July 2016, 11:38

Re: Campo HTML

Postby f.iadipaolo » 14 May 2025, 13:27

Nessuno ha già combattuto con l'editor HTML?
f.iadipaolo
 
Posts: 239
Joined: 4 July 2016, 11:38

Re: Campo HTML

Postby d.pierangeli » 16 May 2025, 8:09

Di che contesto stai parlando?

Ci sono 3 editor HTML:
- RD3 CKEdkitor
- RD3 IDEditor
- Fluid TrumboWysyig

Ognuno dei tre si configura in modo diverso e supporta cose diverse.
Ad esempio la setToolbarCommandEnabled è supportata solo da IDEditor, come anche la commandInsertHTML.
User avatar
d.pierangeli
Pro Gamma
Pro Gamma
 
Posts: 8128
Joined: 30 September 2010, 15:35

Re: Campo HTML

Postby Tony » 16 May 2025, 14:15

Approfitto anche qui per chiedere se IDEditor è stato aggiornato (e migliorato) per Vela/Fluid
Tony
 
Posts: 494
Joined: 13 November 2013, 11:37
Location: Messina

Re: Campo HTML

Postby d.pierangeli » 19 May 2025, 7:15

No, IDEditor non è stato portato in Fluid.

Fluid usa un nuovo editor, TrumboWyg, ma il suo scopo è solo permettere all'utente di editare del testo HTML. Non ha nessuna delle funzioni più "evolute" di IDEditor.

Se si vuole qualcosa di più personalizzabile è sufficiente creare un componente javascript che faccia da wrapper per un editor html (tinyMCE, Trumbo, CKEditor...) e mappare le funzioni che servono.
User avatar
d.pierangeli
Pro Gamma
Pro Gamma
 
Posts: 8128
Joined: 30 September 2010, 15:35

Re: Campo HTML

Postby Tony » 19 May 2025, 12:31

Grazie, nel mio caso sarebbe sufficiente poter contare sulla formattazione (grassetto, corsivo, dimensione font)
Tony
 
Posts: 494
Joined: 13 November 2013, 11:37
Location: Messina

Re: Campo HTML

Postby d.pierangeli » 20 May 2025, 12:37

In questo caso il campo HTML standard è sufficiente.
User avatar
d.pierangeli
Pro Gamma
Pro Gamma
 
Posts: 8128
Joined: 30 September 2010, 15:35


Return to Tips & Tricks - Foundation

Who is online

Users browsing this forum: No registered users and 61 guests