Page 1 of 1
Ace editor on tablet
Posted: Fri May 25, 2018 10:05 am
by Timo
Two questions:
1. How to launch the Ace code editor on a tablet? There is no double-click event.
2. It's almost impossible to view and edit scripts because of the small size. I 'd like the <textarea> element automatically expand vertically as text is entered.
https://stephanwagner.me/auto-resizing-textarea
ipad.png
Re: Ace editor on tablet
Posted: Fri May 25, 2018 10:19 am
by admin
Timo,
nuBuilder development has not been created to be used on an iPad.
Steven
Re: Ace editor on tablet
Posted: Wed Jul 04, 2018 8:21 am
by Timo
All in all, it works well. All in all, it works well. All it takes is an additional button to open the editor without double-clicking.
Re: Ace editor on tablet
Posted: Thu Aug 09, 2018 5:42 am
by toms
Hi,
This will allow you to open the ACE editor for
some (most frequently used) JavaScript and php editors.
Usage: Clicking the "JS", "PHP" etc. icons will open up the ACE editor.
ace.gif
Add under Setup -> Header:
Code: Select all
function nuOnLoad() {
var f = nuCurrentProperties();
if (nuFormType() == 'edit' && f.form_id == 'nuform') {
$("#icon.nuHtml").click(function() {
nuOpenAce('Javascript', 'sfo_javascript');
});
}
if (f.form_id == 'nuphp') {
$("#icon.nuHtml").click(function() {
nuOpenAce('PHP', 'sph_php');
});
}
if (f.form_id == 'nusetup') {
$("#label_set_header").click(function() {
nuOpenAce('HTML', 'set_header');
});
}
}
Re: Ace editor on tablet
Posted: Wed Aug 15, 2018 5:07 am
by admin
.