Adding HTML editor

If you're a new user of AppGini, feel free to ask general usage questions, or look for answers here.
Post Reply
User avatar
Boat Girl
Posts: 3
Joined: 2017-02-02 20:18
Location: Alabama, USA

Adding HTML editor

Post by Boat Girl » 2017-02-02 20:36

New to this so please bear with me while I learn.

Using version 5.60
Following information from the Support FAQ page shown below. In my case on the contacts_templateDV.html.
I downloaded the nicEditor zip file, unzipped and copied the 2 files ( a .js and .gif ) to the folder where the created app is stored locally replaced the old with these 2 new files.

The line
and find this line:

Code: Select all

new nicEditor().panelInstance('fieldname');
is not displayed anywhere within the contacts_templateDV.html? Is this still valid on 5.6?
I want to have a rich (HTML) area field, but I want to be able to edit its HTML source code as well. Is this possible?

A. The rich editor component that comes with AppGini doesn't support code editing ... So, you should use this NicEditor version instead (unzip and copy the 2 files to the folder where you generated your application, replacing the existing ones).

The next step is to open the generated "templates/tablename_templateDV.html" file in a text editor (where tablename is the name of the concerned table) and find this line:
new nicEditor().panelInstance('fieldname');
(where fieldname is the name of the concerned field) ... Change that to:
new nicEditor({ fullPanel : true }).panelInstance('fieldname');

User avatar
a.gneady
Site Admin
Posts: 1281
Joined: 2012-09-27 14:46
Contact:

Re: Adding HTML editor

Post by a.gneady » 2017-02-12 15:22

Sorry for the long delay. This code should still work fine with AppGini 5.60 .. Just make sure the concerned field is configured as a "Rich (HTML) area" in AppGini. The code in the template file would contain your actual field name rather than "fieldname" mentioned in the code.
:idea: AppGini plugins to add more power to your apps:
  • DataTalk is an innovative AppGini plugin based on ChatGPT that allows you to interact with your AppGini database using natural language questions, without writing any SQL. Check the demo video
  • Mass Update plugin: Update multiple records at once and improve your workflow efficiency.
  • Check our other plugins and get a generous discount of up to 30% when buying 2 or more plugins.

Post Reply