Comments (6)
if this answers your question, feel free to close the issue.
from ngx-quill.
But in the example it is working fine:
https://killercodemonkey.github.io/ngx-quill-example/
search for "Format - HTML"
so the editor returns correct data.
If the data is changed in your save process/db insert/update i can nothing do for you.
check if you have something that escapes html in your code.
And keep in mind quill only accepts allowed formats attributes and tags.
i do not even know how you mixed up p and div-tags.
In general it seems you try to display non quill html in a quill editor.
If i try to rebuild your example with my demo repo i get something like that:
<p><img src="https://angular.io/assets/images/logos/angular/angular.svg"></p><p>Hello World</p>
from ngx-quill.
thanks for the explanation appreciate it
from ngx-quill.
But in the example it is working fine: https://killercodemonkey.github.io/ngx-quill-example/
search for "Format - HTML"
so the editor returns correct data. If the data is changed in your save process/db insert/update i can nothing do for you.
check if you have something that escapes html in your code. And keep in mind quill only accepts allowed formats attributes and tags.
i do not even know how you mixed up p and div-tags. In general it seems you try to display non quill html in a quill editor.
If i try to rebuild your example with my demo repo i get something like that:
<p><img src="https://angular.io/assets/images/logos/angular/angular.svg"></p><p>Hello World</p>
@KillerCodeMonkey Apologies for commenting this on a closed issue, but this technically matches the title. Please feel free to remove the comment if it's irrelevant.
I'm trying the ngx-quill example given in the https://killercodemonkey.github.io/ngx-quill-example/ and it seems like the latest versions of ngx-quill ( > v25.0.0 ) removes the line break tag <br>
inside the <p>
tag when the user enters a new line?
On ngx-quill v25.0.0 and quill 2.0.0-rc.0, if I enter a new line I get the HTML as:
<p><br></p>
I tried this on ngx-quill v25.0.0 and the latest quill version (2.0.0-rc.5), and it's still the same. This is how it has worked on older versions of ngx-quill as well. And the characters like single quotations and double quotations are given as they are.
' "
However, on ngx-quill v25.1.3 (also checked on v25.2.0) and on the ngx-quill-example, the HTML is given as
</p><p>
. Without the line break tag.
And the characters like single quotations and double quotations are given like this:
<p>' '</p>
Is this some configuration issue on my end? As I've written above, I tried with the quill 2.0.0-rc.0 and quill 2.0.0-rc.5, but only updating ngx-quill seem to trigger it.
from ngx-quill.
i guess it is because of this: #1813
the only way to retrieve the correct html from quill editor is using "getSemanticHTML" instead of just grabbing the innerhtml
from ngx-quill.
i guess it is because of this: #1813
the only way to retrieve the correct html from quill editor is using "getSemanticHTML" instead of just grabbing the innerhtml
Got it. Thank you very much for the reply!
from ngx-quill.
Related Issues (20)
- Html export : Unordered lists are saved as Ordered lists HOT 3
- Chrome browser deprecation warning HOT 2
- Keyboard module, bindings , HOT 3
- Reactive Forms for Angular 12 HOT 1
- Randomly creates ghost lines when using IME input. HOT 16
- How to Remove Formatting Automatically When Copying Text? HOT 1
- Formats not working in mat-quill implementation HOT 3
- zone.js:178 Uncaught TypeError: this.quillEditor.getSemanticHTML is not a function HOT 2
- Quill v1/Angular 18+ support? HOT 1
- Styling width by percentage is not working HOT 2
- this.quillEditor.getSemanticHTML is not a function Angular 17 HOT 1
- HOT 2
- suppressGlobalRegisterWarning not working HOT 8
- modules is not working in quill-editor HOT 4
- some props are not existing HOT 2
- Browser compatibility warnings HOT 5
- Playwright's .fill() doesn't work in Firefox HOT 2
- Upgrading from 23.0.3 to 25.3.2 HOT 2
- Adding "id" attribute to lists HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ngx-quill.