HTML and the text


(haytham) #1

Hi there
Is there a way to get the text that I added in hype in my HTML so I can edit it without using the hype source again, the problem is that i have to edit it from the denerated java file not in the HTML
regards


(Hans-Gerd Claßen) #2

no, not really …


(haytham) #3

I am sorry, Not really for the first part or for second part :slight_smile:


#4

You can assign an ID or class and the use document.querySelector to get and set the text. I am on the road so I can’t make you an example right now.


#5

Also if you don’t want to do on the fly editing you can create unique placeholder strings and string replace them with PHP, Server side JS, python or any other language of your choosing that can perform string replacement on the exported Hype-JS file. You can even just use a local text editor with search/replace or write a small batch/Apple/VB script.