Comments (7)
@JoelParke You can pass a image handler when you initialize your data, for example
<editor [init]="getInitData()"></editor>
..and then in your .ts:
private getInitData() { return { image_upload_handler: <the function> } }
from tinymce-angular.
You should be able to set it in the [init]
settings object, just like you'd do with the vanilla TinyMCE.
from tinymce-angular.
You can't quite do that, if you want to place the called function in the component. I ended up simply modifying the code and adding:
@Input() images_upload_handler: any;
@Input() file_picker_callback: any;
within the EditorComponent and then had those inputs used in the initialize() function:
images_upload_handler: this.images_upload_handler,
file_picker_callback: this.file_picker_callback,
from tinymce-angular.
I'm not sure I understand what you mean with "You can't quite do that, if you want to place the called function in the component", can you show an example?
from tinymce-angular.
Closing this as I don't think this a bug.
from tinymce-angular.
I see this was just closed, but does anyone have a full code example of this working? I need to be able to handle uploads very specifically and I've yet to get a single example working in Angular 6.
from tinymce-angular.
I see this was just closed, but does anyone have a full code example of this working? I need to be able to handle uploads very specifically and I've yet to get a single example working in Angular 6.
It works :) Just a small correction in getInitData() method, it should return images_upload_handler
So the result is somthing like this:
getInitData() {
return {
images_upload_handler: function (blobInfo, success, failure) {
// Your implementation
}
}
An example of image upload handler implementation is here.
from tinymce-angular.
Related Issues (20)
- Inline TinyMCE toolbar is 1 pixel too small in width, forcing itself to create another toolbar row for no reason HOT 2
- Angular 15, Ionic 6, capacitor 4 iOS app, TinyMCE editor referrer header missing issue for review
- Angular 15, Ionic 6, capacitor 4 iOS app, TinyMCE editor referrer header missing issue for review
- Angular 15, Ionic 6, capacitor 4 iOS app, TinyMCE editor referrer header missing issue for review
- Angular 15, Ionic 6, capacitor 4 iOS app, TinyMCE editor referrer header missing issue for review HOT 1
- Getting ESMA Script issue in angular HOT 2
- Update TinyMce HOT 2
- How do I add a custom button to the toolbar? HOT 2
- NS_ERROR_UNEXPECTED on Firefox browser after saving the editor content. HOT 1
- OnChange and onFocusOut event HOT 1
- @tinymce/tinymce-angular V7.0.0 has abnormal behavior with external scrollbar when pressing Enter. HOT 2
- Angular does not detect changes with events from the `<editor>` component HOT 5
- Set max character limit without including internal format HOT 2
- βFormatβ menu not working in Safari HOT 5
- Angular - declare tinymce init error HOT 2
- UI issue when insert new link HOT 2
- Need Support for Angular v15 / v16 / v17 HOT 4
- 'Editors with duplicate Id will not be able to mount' warning given when setting id on editor component HOT 1
- Cross-Site Scripting in tinymce 7 fix HOT 3
- TinyMCE inside an Angular reactive form retrieves every embedded remote image on every keypress HOT 3
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 tinymce-angular.