All url edited using tinymce are now absolutes

This commit is contained in:
echarp 2020-02-25 22:08:47 +01:00
parent 38d2ff2e79
commit 9b30db2795
6 changed files with 53844 additions and 1 deletions

View File

@ -8,7 +8,9 @@ $(document).on 'turbolinks:load', ->
language: 'fr_FR'
selector: 'input.description'
content_css: '<%= asset_path 'application.css' %>'
relative_urls: false
entity_encoding: 'raw'
document_base_url: '/'
add_unload_trigger: true
browser_spellcheck: true
style_formats_autohide: true

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,26 @@
(function() {
$(document).on('turbolinks:load', function() {
return tinyMCE.init({
width: '100%',
height: '40em',
menubar: false,
branding: false,
language: 'fr_FR',
selector: 'input.description',
content_css: '/assets/application-7676810a8b1f72354c8821c38a3c8729f54bb8ed5ae767e94159b98f4ab74837.css',
relative_urls: false,
entity_encoding: 'raw',
document_base_url: '/',
add_unload_trigger: true,
browser_spellcheck: true,
style_formats_autohide: true,
toolbar: [' cut copy paste | undo redo | link image media charmap table | code visualblocks searchreplace', ' removeformat bold italic strikethrough superscript subscript | bullist numlist outdent indent | alignleft aligncenter alignright alignjustify alignnone'],
plugins: 'lists advlist autolink link image charmap paste print preview table fullscreen searchreplace media insertdatetime visualblocks wordcount code'
});
});
$(document).on('turbolinks:before-cache', function() {
return tinymce.remove();
});
}).call(this);