NeoEdit convert html to text - Forum

Forum Navigation
You need to log in to create posts and topics.

NeoEdit convert html to text

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

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.

smartmedia has reacted to this post.
smartmedia

Hi..

@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.

@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 ?

@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 dogs

Perhaps, neoEditGetText will provide the (simple) text you need.

smartmedia has reacted to this post.
smartmedia

@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.

Uploaded files:
  • You need to login to have access to uploads.

@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.

Uploaded files:
  • You need to login to have access to uploads.
smartmedia has reacted to this post.
smartmedia

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.

 

 

@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.

smartmedia has reacted to this post.
smartmedia

Thanks @luishp

i will check them out..