Page 1 of 1

HTML code in text boxes

Posted: Wed Dec 16, 2020 11:18 am
by BTO
Hello!
I have a question regarding the use of HTML code and its formatting in text boxes.
When using a longer code sequence from a code editor, for example this excerpt from jQuery UI:

Code: Select all

<div id="accordion">
  <h3>Section 1</h3>
  <div>
    <p>
    Mauris mauris ante, blandit et, ultrices a, suscipit eget, quam. Integer
    ut neque. Vivamus nisi metus, molestie vel, gravida in, condimentum sit
    amet, nunc. Nam a nibh. Donec suscipit eros. Nam mi. Proin viverra leo ut
    odio. Curabitur malesuada. Vestibulum a velit eu ante scelerisque vulputate.
    </p>
  </div>
...
Then the default formatting of the textbox is a problem, because the line breaks are used (regardless of whether the checkmark is set for "line break", this only distinguishes the white-space value normal/nowrap).

The only solution I could find so far is to paste the code in one line, which of course is totally cluttered and uncomfortable to edit afterwards:

Code: Select all

<div id="accordion"><h3>Section 1</h3><div><p>Mauris mauris ante, blandit et, ultrices a, suscipit eget, quam. Integer ut neque. Vivamus nisi metus, molestie vel, gravida in, condimentum sit amet, nunc. Nam a nibh. Donec suscipit eros. Nam mi. Proin viverra leo ut odio. Curabitur malesuada. Vestibulum a velit eu ante scelerisque vulputate.</p></div>...
My question therefore: is there - similar to the javascript:"";-solution for Javascript code - a solution for HTML code? Or are there other workarounds?

Thanks for your help!

Re: HTML code in text boxes

Posted: Mon Jan 25, 2021 8:19 am
by BTO
The question is still relevant - does no one have an idea or a tip?

Re: HTML code in text boxes

Posted: Wed Feb 03, 2021 1:47 pm
by k.ary.n
Hi! Unfortunately, this is an issue and we are currently working on a solution for it.

Re: HTML code in text boxes

Posted: Thu Apr 28, 2022 12:36 pm
by thomas
This is now solved with Pano2VR v7

Re: HTML code in text boxes

Posted: Sat May 21, 2022 4:10 pm
by HSharma​
Can we use pano2vr placeholders or pano2vr variables in the html code inside a text box?

Re: HTML code in text boxes

Posted: Sun May 22, 2022 10:25 am
by Hopki
Yes, as an example $(ut) would display the user data title in a text box.
See: https://ggnome.com/doc/pano2vr/reference/placeholders/
Note, use the insert place holder button as found in the text box properties to quickly find the placeholder you need.
Regards,
Hopki

Re: HTML code in text boxes

Posted: Tue Mar 14, 2023 10:09 am
by HSharma​
Hopki,
My question was using the placeholder inside a HTML code placed inside a textbox, not just the placeholder


thanks
Harsh

Re: HTML code in text boxes

Posted: Tue Mar 14, 2023 12:07 pm
by Hopki
Hi Harsh,
This should work, have you tried it?
Regards,