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
Welcome to the nuBuilder Forums!
Register and log in to access exclusive forums and content available only to registered users.
Register and log in to access exclusive forums and content available only to registered users.
Ace editor on tablet
Ace editor on tablet
You do not have the required permissions to view the files attached to this post.
Re: Ace editor on tablet
Timo,
nuBuilder development has not been created to be used on an iPad.
Steven
nuBuilder development has not been created to be used on an iPad.
Steven
Re: Ace editor on tablet
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.
-
- Posts: 785
- Joined: Sun Oct 14, 2018 11:25 am
Re: Ace editor on tablet
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.
Add under Setup -> Header:
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.
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');
});
}
}
You do not have the required permissions to view the files attached to this post.