[FEATURE] Inserting/extracting html into a popup version of ngx-editor
See original GitHub issueHi,
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:
- Created 3 years ago
- Comments:6 (3 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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.
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.