Comments (6)
@eddcvjm Are you including angular-sanitize? angular-sanitize will remove the inline style tags and needs to be replaced by froala-sanitize which should maintain the styles.
from angular-froala.
Hi,
I have the following code in my index.html and app.js
As you can see I have the code in my index.html
So, I'm assuming that I'm using the froala-sanitize.
But as you can see in my app.js, if I set $scope.myHtml without
$sce.trustAsHtml, the rendering looses all formatting.
If I set $scope.myHtml with $sce.trustAsHtml, the javascript is fired.
Am I missing something? Could you provide some help on this issue?
Thanks
2015-09-03 18:16 GMT+01:00 Cameron Gallarno [email protected]:
@eddcvjm https://github.com/eddcvjm Are you including angular-sanitize?
angular-sanitize will remove the inline style tags and needs to be replaced
by froala-sanitize which should maintain the styles.—
Reply to this email directly or view it on GitHub
#40 (comment)
.
from angular-froala.
I am seeing the same issue, any progress?
I added the following to froala-sanitize starting at line 486 :
function validStyles(styleAttr){
....
key === 'float' && (
value === 'left'
|| value === 'right'
|| value === 'none'
)
added
||
key === 'font-family'
||
key === 'font-size'
seemed to resolve the issue.
from angular-froala.
@j-hogue can you submit a pull request?
from angular-froala.
hi, was this issue solved?
i'm experiencing the same thing.
from angular-froala.
I have added support for these attributes to froala-sanitize in this commit 1f8dfc1, we're working on a 'catch-all' solution to support all style attributes.
from angular-froala.
Related Issues (20)
- ngModel is not set to fr-view when initOnClick: true
- Initialized event loses context HOT 1
- Uncaught Error: [$injector:modulerr] http://errors.angularjs.org/1.7.9/$injector/modulerr HOT 1
- Module froala is not available HOT 1
- Cannot get source of removed image
- Invalid Bower dependecnies
- IE11 - Dropdowns don't open
- Outdated Readme
- Froala model / reactive forms value does not get updated when navigating with router.navigate
- Converting circular structure to JSON when using the same $scope.options in multiple editors HOT 3
- After upgrading to the latest version, copy and paste the image into the rich text and it will prompt ‘Uncaught ReferenceError: replace is not defined’
- Open in new tab not working
- Getting Constructor is not Compatible with Angular Dependency Injection (Ivy), for FroalaEditorDirective HOT 1
- Minimum character count validation
- Perpetual license for version 3.0. The editor does not work. get the message "Copy license expired of Froala Editor"
- Buttons missing after Angular 12 update
- How to Get Edited HTML in Angular 13
- Put text via script in Froala Editor
- The image center alignment label is 'None'.
- The tooltip in the drag-and-drop area for uploading an image is not properly translated
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 angular-froala.