
Quote from smartmedia on January 7, 2023, 10:15 amHi..
I use NeoEdit in my platfrom so the user writes a small text in WYSIWYG. After that there is the need to create a document, so i use NeoWord, there i have problem with the produced html.
Is possible to convert the html text produced by the plugin to text and via versa ?
Or there is any other method to convert it ?
Thanks
Hi..
I use NeoEdit in my platfrom so the user writes a small text in WYSIWYG. After that there is the need to create a document, so i use NeoWord, there i have problem with the produced html.
Is possible to convert the html text produced by the plugin to text and via versa ?
Or there is any other method to convert it ?
Thanks

Quote from luishp on January 7, 2023, 12:07 pmIs possible to convert the html text produced by the plugin to text and via versa?
@smartmedia you can get the text by using neoEditGetText command and the formated HTML by using neoEditGetHtml, but it's not possible to convert the plain text to html as it doesn't have all the formating tags anymore.
Another option to convert HTML to text is using a hidden Container and SetObjectHTML and GetObjectText commands.Regards.
Is possible to convert the html text produced by the plugin to text and via versa?
@smartmedia you can get the text by using neoEditGetText command and the formated HTML by using neoEditGetHtml, but it's not possible to convert the plain text to html as it doesn't have all the formating tags anymore.
Another option to convert HTML to text is using a hidden Container and SetObjectHTML and GetObjectText commands.
Regards.

Quote from smartmedia on January 7, 2023, 12:51 pmHi..
@luishp
My concern for the time been is to convert html to text and yesterday i tried the hidden container and didnt work, today i tried again and it worked.
fog mind i guess. thanks for your time.
Hi..
My concern for the time been is to convert html to text and yesterday i tried the hidden container and didnt work, today i tried again and it worked.
fog mind i guess. thanks for your time.

Quote from smartmedia on January 7, 2023, 2:05 pm@luishp
Cheking the result i have issue. GetObjectText seems to remove all the spaces and the returns from text. So what u have in not much of plain text, is more all words connected into one piece.
So i don't thing that will be a solution for me.
I am thinking if there is a way to present html directly to Word. Any ideas on that ?
Cheking the result i have issue. GetObjectText seems to remove all the spaces and the returns from text. So what u have in not much of plain text, is more all words connected into one piece.
So i don't thing that will be a solution for me.
I am thinking if there is a way to present html directly to Word. Any ideas on that ?
Quote from Gaev on January 7, 2023, 8:02 pm@smartmedia
Cheking the result i have issue. GetObjectText seems to remove all the spaces and the returns from text.
I tried a sample like this ...
The quick brown fox
jumped over the lazy dogs
... there is no blank line in my neoEdit Container ... after invoking neoEditGetText, I viewed the resulting variable content using jsAlert ... which was ...
The quick brown fox
jumped over the lazy dogsPerhaps, neoEditGetText will provide the (simple) text you need.
Cheking the result i have issue. GetObjectText seems to remove all the spaces and the returns from text.
I tried a sample like this ...
The quick brown fox
jumped over the lazy dogs
... there is no blank line in my neoEdit Container ... after invoking neoEditGetText, I viewed the resulting variable content using jsAlert ... which was ...
The quick brown fox
jumped over the lazy dogs
Perhaps, neoEditGetText will provide the (simple) text you need.

Quote from smartmedia on January 7, 2023, 10:31 pm@gaev
The concept was to give the user the ability to enter a rich text, be able to see it and finally be able to print it in a Word document. All this is fail cause NeoEdit and GetObject (HTML-Text) and NeoWord can't work natively together. If you cannot convert a produced HTML to a TEXT is not possible to have the result.
Headline and paragraphy objects are not showing the text formated and as entered in a textarea.
Finally i removed NeoEdit and i use textarea entry and SetObjectText to present the data into a container and the produced Word document.
Check the demo app.
The concept was to give the user the ability to enter a rich text, be able to see it and finally be able to print it in a Word document. All this is fail cause NeoEdit and GetObject (HTML-Text) and NeoWord can't work natively together. If you cannot convert a produced HTML to a TEXT is not possible to have the result.
Headline and paragraphy objects are not showing the text formated and as entered in a textarea.
Finally i removed NeoEdit and i use textarea entry and SetObjectText to present the data into a container and the produced Word document.
Check the demo app.
Uploaded files:
Quote from luishp on January 8, 2023, 12:18 pm@smartmedia I have edited your sample app so you can convert it in real time using ng-bind-html.
Now try writing HTML code into the text area.
Regards.
@smartmedia I have edited your sample app so you can convert it in real time using ng-bind-html.
Now try writing HTML code into the text area.
Regards.

Quote from smartmedia on January 8, 2023, 8:11 pmHi @luishp
Since there is not a way the Word document to present translated html code, there is no reason for the time been to allow my users to write rich text.
I wanted to ask what those functions do (custom-atrib, ng-blind-html, ng-if, ng-repeat) and now you give me the chance. There is any documentation, theory and examples on how u use them and what do ?
I didn't saw in help any reference.
Again thanks both for your time and always your kind behavior.
Hi @luishp
Since there is not a way the Word document to present translated html code, there is no reason for the time been to allow my users to write rich text.
I wanted to ask what those functions do (custom-atrib, ng-blind-html, ng-if, ng-repeat) and now you give me the chance. There is any documentation, theory and examples on how u use them and what do ?
I didn't saw in help any reference.
Again thanks both for your time and always your kind behavior.

Quote from luishp on January 9, 2023, 12:08 pm@smartmedia please check these links:
https://visualneo.com/forum/topic/angular-directives-ng-repeat
https://visualneo.com/forum/topic/angular-directives-ng-bind-html
https://visualneo.com/forum/topic/angular-directives-ng-if
https://visualneo.com/forum/topic/call-subroutines-directly-from-ng-if-and-ng-bind-htmlI will try to include all this information within the documentation.
Regards.
@smartmedia please check these links:
https://visualneo.com/forum/topic/angular-directives-ng-repeat
https://visualneo.com/forum/topic/angular-directives-ng-bind-html
https://visualneo.com/forum/topic/angular-directives-ng-if
https://visualneo.com/forum/topic/call-subroutines-directly-from-ng-if-and-ng-bind-html
I will try to include all this information within the documentation.
Regards.

Quote from smartmedia on January 9, 2023, 2:15 pmThanks @luishp
i will check them out..
Thanks @luishp
i will check them out..