This class can be extended to provide for example inline dialogs. I want to implement the upload of images to firebase and then show them in tinyemce. This class handles the creation of native windows and dialogs. getWindows () Returns the currently opened window objects. Here are some basics commands to add new Angular setup and other libraries: ng new angulartinymc. // Opens a new dialog with the file.htm file and the size 320x240 // It also adds a custom parameter this can be retrieved by using tinyMCEPopup. php artisan make:controller FileController. Route::post ('/file-upload', 'FileControllerupload')->middleware ('auth') Next we need to create our FileController that will handle the file upload. I assume you are creating the modal as per the documentation link you provide, if so, then the buttons parameter let you specify the buttons to add to the modal and the actions of said buttons, like this: . This can be used in iframe based dialog to get params passed from the tinymce plugin. You will most likely want to only allow this functionality to authenticated users to keep things secure, so I have added the auth middleware to the route.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |