Warren Buckley
df6da16161
Merge branch 'v8/dev' into v8/feature/2438AB-RTE-Image-Config-MediaFolder
...
# Conflicts:
# src/Umbraco.Web/PropertyEditors/GridPropertyEditor.cs
# src/Umbraco.Web/PropertyEditors/RichTextPropertyEditor.cs
# src/Umbraco.Web/Templates/TemplateUtilities.cs
2019-09-13 09:51:53 +01:00
Shannon Deminick
3be464726b
Merge pull request #6332 from umbraco/v8/feature/2349AB-RTE-Image-Upload
...
AB 2439 - Create API controller for uploading images for RTE (Final Fixes)
2019-09-12 23:55:59 +10:00
Warren Buckley
c4026fb92f
Inject all the things - aka make sure Shan doesn't poke with a sharp pointy stick for using Current
2019-09-12 14:54:21 +01:00
Warren Buckley
0d0abca255
Move the general cleanup of the App_Data/TEMP/FileUploads folder for one day+ old files
2019-09-12 14:35:45 +01:00
Warren Buckley
f6e9fb2845
Adds same code loop as FileUploadCleanupFilterAttribute to delete files
2019-09-12 14:27:22 +01:00
Warren Buckley
056e057cbb
Merge pull request #6327 from umbraco/v8/feature/6326-RTE-Image-size-as-attribute
...
store img size as html attributes
2019-09-12 12:51:05 +01:00
Warren Buckley
a5c5a12a00
Remove dupe Authz attribute
2019-09-12 12:07:57 +01:00
Warren Buckley
ba319609f2
Fix up tests - thanks again VS for not notifying me that the Build fails when I build the entire SLN
2019-09-12 09:40:21 +01:00
Warren Buckley
ec0c79a38c
Merge branch 'v8/dev' into v8/feature/2438AB-RTE-Image-Config-MediaFolder
2019-09-12 09:18:55 +01:00
Warren Buckley
632808acdb
* Inbject UmbracoContextAccessor & null check it for the user id
...
* Remove unused & sort usings
2019-09-12 09:04:23 +01:00
Warren Buckley
4ccebbc209
Reopen branch/PR for fixes
...
* Reorder usings
* Add an error response & log the reason if we can't move a file about
* Add UmbracoApplicationAuthorize attribute for security so not any user can upload images
2019-09-12 08:49:40 +01:00
Bjarke Berg
5b791a1787
Merge pull request #6246 from umbraco/v8/feature/2349AB-RTE-Image-Upload
...
AB 2439 - Create API controller for uploading images for RTE
2019-09-12 08:23:39 +02:00
Warren Buckley
698dcc0fef
Merge branch 'v8/feature/2349AB-RTE-Image-Upload' into v8/feature/2438AB-RTE-Image-Config-MediaFolder
2019-09-11 14:25:46 +01:00
Warren Buckley
54a3bd07d7
Logic to use -1 Media root folder if no media folder is picked on the configuration of the RTE or the Grid
2019-09-11 14:24:52 +01:00
Bjarke Berg
401e362298
Remove the image from tinyMce cache, otherwise we can't handle if we upload the exactly same image twice
2019-09-11 15:20:19 +02:00
Niels Lyngsø
1c651b4e59
store img size as html attributes
2019-09-11 14:31:03 +02:00
Warren Buckley
a6f68ceaa7
Merge branch 'v8/feature/2438AB-RTE-Image-Config-MediaFolder' of https://github.com/umbraco/Umbraco-CMS into v8/feature/2438AB-RTE-Image-Config-MediaFolder
2019-09-11 12:21:46 +01:00
Warren Buckley
496ae724b4
Merge branch 'v8/feature/2349AB-RTE-Image-Upload' into v8/feature/2438AB-RTE-Image-Config-MediaFolder
...
# Conflicts:
# src/Umbraco.Web/PropertyEditors/GridPropertyEditor.cs
# src/Umbraco.Web/PropertyEditors/RichTextPropertyEditor.cs
2019-09-11 12:20:27 +01:00
Niels Lyngsø
247a40d46b
Merge branch 'v8/feature/2438AB-RTE-Image-Config-MediaFolder' of https://github.com/umbraco/Umbraco-CMS into v8/feature/2438AB-RTE-Image-Config-MediaFolder
2019-09-11 13:18:44 +02:00
Niels Lyngsø
3c137668e0
created prevalueeditor mediafolderpicker
2019-09-11 13:18:40 +02:00
Niels Lyngsø
9b4ccc78d4
corrected misspelling
2019-09-11 13:18:14 +02:00
Niels Lyngsø
bb6c4ace90
ensure that we handle string values
2019-09-11 13:18:04 +02:00
Niels Lyngsø
fd3fb4c937
grey out not selectable media items in media grid.
2019-09-11 13:17:40 +02:00
Niels Lyngsø
0b55468e5c
make sure to check string boolean, since it arrives as string because of AngularJS
2019-09-11 13:17:26 +02:00
Warren Buckley
39050d06f9
Use a guid instead of user id & unix time offset for unique folder path
2019-09-11 11:16:47 +01:00
Warren Buckley
f07be7df1c
Usa a CONST for the data attribute
2019-09-11 11:13:46 +01:00
Warren Buckley
9bbc66d10d
Some rename of variables for readability
2019-09-11 11:06:38 +01:00
Warren Buckley
104d414887
Fix some trailing typo stuff
2019-09-11 11:00:23 +01:00
Warren Buckley
a47811f210
Update src/Umbraco.Web/PropertyEditors/GridPropertyEditor.cs
...
Co-Authored-By: Bjarke Berg <mail@bergmania.dk >
2019-09-11 10:55:12 +01:00
Warren Buckley
9f4697c5b3
Update src/Umbraco.Web/PropertyEditors/RichTextPropertyEditor.cs
...
Co-Authored-By: Bjarke Berg <mail@bergmania.dk >
2019-09-11 10:54:47 +01:00
Warren Buckley
9167cad9fc
Update copy
2019-09-11 10:36:30 +01:00
Niels Lyngsø
734794019d
Merge branch 'v8/feature/2438AB-RTE-Image-Config-MediaFolder' of https://github.com/umbraco/Umbraco-CMS into v8/feature/2438AB-RTE-Image-Config-MediaFolder
2019-09-11 11:07:35 +02:00
Niels Lyngsø
313260a6ca
remove double end tag
2019-09-11 11:07:15 +02:00
Warren Buckley
f735c3eae3
Updates view for Config to new PreValue editor that Niels L is working on
2019-09-11 10:05:20 +01:00
Warren Buckley
39fd953ca8
Merge branch 'v8/feature/2438AB-RTE-Image-Config-MediaFolder' of https://github.com/umbraco/Umbraco-CMS into v8/feature/2438AB-RTE-Image-Config-MediaFolder
2019-09-11 10:03:19 +01:00
Warren Buckley
28a0e0aa6f
Pass through a GUID that a media picker / new folder picker will use
2019-09-11 10:02:59 +01:00
Niels Lyngsø
fdeaaad738
allow mediapicker to only pick folders
2019-09-11 10:12:01 +02:00
Warren Buckley
6de4bbbae6
Adds new config option to RTE & Grid Property Editors - for now uses MediaPicker until we have a FolderPicker Angular PreValue view/editor
2019-09-11 09:03:10 +01:00
Warren Buckley
cfe196a45d
Fix up C# unit tests - VS19 failed to tell me about these failing to build :S
2019-09-10 11:47:52 +01:00
Warren Buckley
83d568dd5a
Fix up unit test
2019-09-10 11:32:02 +01:00
Warren Buckley
e8ccfd52af
Merge remote-tracking branch 'origin/v8/dev' into v8/feature/2349AB-RTE-Image-Upload
...
# Conflicts:
# src/Umbraco.Web.UI.Client/src/common/services/tinymce.service.js
2019-09-10 10:58:24 +01:00
Warren Buckley
6669b54a70
Move the logic for finding temp images for persisting into a shared class so Grid & RTE can both use it
2019-09-10 10:50:36 +01:00
Warren Buckley
d5331d85af
Removing the localStorage key cleanup - seems to be a timing issue if you drag the image into a middle of a word
2019-09-10 10:48:28 +01:00
Warren Buckley
9d8e4fd66f
Fixes the issue with the image being stored as a base64 inline image, which can be HUGE & make POST request slow to save the content node
2019-09-09 18:50:49 +01:00
Warren Buckley
5e394cb62b
Refactor we do not instantly persist the uploaded file to a media item in Umbraco - what if the user undo's or removes it from content we will bloat the media section
...
* Adds a data-tmpimg attribute to the <img> in the markup, which we scan for when persisting to the DB in the RTE PropertyValueEditor to then perist media items
* TODO: Find a way to get TinyMCE to NOT send a base64 down the wire as the saved content/HTML
2019-09-09 16:04:52 +01:00
Warren Buckley
7d2c92b651
A new temp location for RTE uploads
2019-09-09 15:54:03 +01:00
Shannon
e593857b61
Merge branch 'v8/dev' of https://github.com/umbraco/Umbraco-CMS into v8/dev
2019-09-09 23:31:22 +10:00
Shannon
4869298b03
Merge branch 'v8/8.1' into v8/dev
...
# Conflicts:
# src/Umbraco.Web.UI.Client/src/views/common/infiniteeditors/embed/embed.html
2019-09-09 23:31:07 +10:00
Niels Lyngsø
02534c4ac5
Merge pull request #5706 from kjac/v8-feature-copy-property
...
V8: Copy on property level
2019-09-09 15:13:10 +02:00
Bjarke Berg
c121fa323d
Merge pull request #6131 from umbraco/v8/bugfix/5925-nucache-startup
...
Adds POC for fast building of in-memory nucache from persisted files
2019-09-09 15:02:49 +02:00