Comments (3)
Hey @schetle , currently we don't rely on the textarea that's used to init froala. It's expected to use the ng-model passed in from your controller, which should always be update to date with the content of the editable element.
Could you provide more info on your setup that you needed to manually call sync?
from angular-froala.
Sure, here's a snippet. Without a call to sync in $render, the ugly placeholder text just sits on top of everything.
<textarea froala ng-model="editorData" class="form-control" id="data"></textarea>
module.value('froalaConfig', {
minHeight: 220,
inlineMode: false,
buttons: [
'bold',
'italic',
'underline',
'sep',
"align",
"insertOrderedList",
"insertUnorderedList",
"outdent",
"indent",
'sep',
'removeFormat',
"html"
]
});
// ...
$scope.editorData = $window.currentData;
from angular-froala.
@schetle Ahh, I see your point. This fix has been pushed 7a7e977
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.