question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[FEATURE] Inserting/extracting html into a popup version of ngx-editor

See original GitHub issue

Hi,

This is a feature request.

We really love this editor. We’ve been using an earlier version as a popup editor to handle lengthy descriptions. We save editor changes only displaying the first n characters as inner html.

It seems that the latest version of the editor does not store the model innerHTML as html. It would be great if there were an easy way to convert between html (which we use for our readonly display) and the json doc format that is use in ngx-editor.

**EXAMPLE

Inner Html:**

<p><strong>BOLD</strong></p><p><em>Italic</em></p> JSON format:

{type: "doc", content: Array(2)}
content: Array(2)
0:
content: Array(1)
0: {type: "text", marks: Array(1), text: "BOLD"}
length: 1
__proto__: Array(0)
type: "paragraph"
__proto__: Object
1:
content: Array(1)
0: {type: "text", marks: Array(1), text: "Itali"}
length: 1
__proto__: Array(0)
type: "paragraph"
__proto__: Object
length: 2
__proto__: Array(0)
type: "doc"
__proto__:

Any help appreciated

Version Information

ngx-editor: ^5.0.0-alpha.4
angular: ^9.1.5

Browser

  • [ X] Chrome - x.x.x
  • Mozilla Firefox - x.x.x
  • Opera - x.x.x
  • Microsoft Edge - x.x.x

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
goldel777commented, May 29, 2020

Thank You!

Sent from Yahoo Mail for iPhone

On Friday, May 29, 2020, 2:26 PM, Sibiraj notifications@github.com wrote:

@goldel777 check the comment #221 (comment). I updated it now.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.

0reactions
github-actions[bot]commented, May 22, 2022

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs and link to relevant comments in the thread.

Read more comments on GitHub >

github_iconTop Results From Across the Web

ngx-editor - npm
Rich Text Editor for angular using ProseMirror. Latest version: 15.1.0, last published: 12 days ago. Start using ngx-editor in your project ...
Read more >
adding fill in the blank option in Angular ngx-editor
I made an external input and button to copy. Input gets the text and copy button means that if copying is enabled, on...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found