[Gameplay] Guides zu den Abenteurertagebüchern | Black Desert NA/EU (2024)

  • Zur Hauptseite
  • Forum
  • Deutsch
  • Gameplay

'; editor.focus(); editor.selection.collapse(true); editor.execCommand('mceInsertContent', false, html); api.close(); } }); } }); return { getMetadata: function () { return { name: 'youtube', url: 'www.pearlabyss.com' } } }; }); } function customUploadPlugin(attachFilePath, limitSize) { tinymce.PluginManager.add('customupload', function (editor) { editor.ui.registry.addButton('customupload', { icon: 'image', onAction: function () { var $fileInput = $(''); $('body').append($fileInput); $fileInput.trigger('click'); $fileInput.on('change', function () { _abyss.loading(true); if (limitSize <= this.files[0].size) { alert(_fileLimitErrorMessage); _abyss.loading(false); return; } var fileList = $(this).prop('files') || []; var fileCount = 0; for (var fileIndex = 0; fileIndex < fileList.length; fileIndex++) { var fileData = new FormData(); fileData.append('upload', fileList[fileIndex]); $.ajax({ async: false, type: 'POST', url: '/FileUpload/index?subpath=' + attachFilePath + '&responseType=json', contentType: false, processData: false, data: fileData, success: function (data) { fileCount++; if (data._resultCode == 0) { tinymce.execCommand('mceInsertContent', false, '[Gameplay] Guides zu den Abenteurertagebüchern | Black Desert NA/EU (1)') } else { alert(!!data._resultMessage ? data._resultMessage : _fileErroMessage); } if (fileList.length === fileCount) { _abyss.loading(false); } }, error: function (err) { _abyss.loading(false); console.error(err); } }); } tinymce.execCommand('mceInsertNewLine'); }); }, }); return { getMetadata: function () { return { name: 'customupload', url: 'www.pearlabyss.com' } } }; }); } function dataURLtoFile(dataURL, filename, mimeType) { return ( fetch(dataURL).then(function (res) { return res.arrayBuffer(); }) .then(function (buf) { return new File([buf], filename, {type: mimeType});}) ); } function initCkeditor(id, attachFilePath) { if ($('#' + id).length <= 0) { return; }; var uploadLimitSizeValue = _fileLimitSize; $('div#' + id).remove(); youtubePlugin(); customUploadPlugin(attachFilePath, uploadLimitSizeValue); tinymce.init({ selector: '#' + id, mobile: { theme: 'mobile', plugins: 'image table link media youtube paste', toolbar: 'undo redo | formatselect | bold italic strikethrough forecolor backcolor fontsizeselect | alignleft aligncenter alignright alignjustify | link image youtube table', default_target_link: '_blank', media_dimensions: false, media_poster: false, relative_urls: false, remove_script_host: false, fontsize_formats: _font_format, images_upload_handler: function (blobInfo, success, failure) { _abyss.loading(true); if (uploadLimitSizeValue <= blobInfo.blob().size) { alert(_fileLimitErrorMessage); var $img = tinymce.dom.DomQuery(tinymce.activeEditor.getBody())[0].querySelector("img[src='" + blobInfo.blobUri() + "']"); $img && $img.remove(); _abyss.loading(false); return; } var xhr, formData; xhr = new XMLHttpRequest(); xhr.withCredentials = false; xhr.open('POST', '/FileUpload/index?subpath=' + attachFilePath + '&responseType=json'); xhr.onload = function () { var json; if (xhr.status != 200) { failure('HTTP Error: ' + xhr.status); _abyss.loading(false); return; } json = JSON.parse(xhr.responseText); if (!json || typeof json._value != 'string') { failure('Invalid JSON: ' + xhr.responseText); _abyss.loading(false); return; } success(json._value); setTimeout(function () { _abyss.loading(false); }, 1000 * 1); }; xhr.onerror = function (e) { _abyss.loading(false); } formData = new FormData(); formData.append('upload', blobInfo.blob(), blobInfo.filename()); xhr.send(formData); tinymce.execCommand('mceInsertNewLine'); }, file_picker_callback: function (callback, value, meta) { var fileInput = $(''); $('body').append(fileInput); fileInput.trigger('click'); fileInput.on('change', function (e) { var formData = new FormData(); formData.append('upload', $(this).prop('files')[0]); if (uploadLimitSizeValue > 0 && formData.get('upload').size/1024/1024 >= uploadLimitSizeValue) { alert(_fileLimitErrorMessage); return; } $.ajax({ type: 'POST', url: '/FileUpload/index?subpath=' + attachFilePath + '&responseType=json', contentType: false, processData: false, data: formData }) .done(function (data) { if (data._resultCode == 0) { callback(data._value); } else { alert(!!data._resultMessage ? data._resultMessage : _fileErroMessage); } }) }); }, setup: function (editor) { editor.on('paste', function (e) { e.preventDefault(); var content = ((e.originalEvent || e).clipboardData || window.clipboardData).getData('text/html') .replace(/font-(family|size):.*?;/g, '') .replace(/

/g, '') .replace(/id=\"([^"]*)\"|id=\'([^"]*)\'|class=\"([^"]*)\"|class=\'([^"]*)\'/g, '') .replace(//g, ''); editor.execCommand('mceInsertContent', false, content); }); }, invalid_elements: _getBlacklistElem(), valid_styles: { '*': _getWhitelistStyle() }, extended_valid_elements: _getWhitelistElem(), block_formats: _block_size }, height: 400, plugins: 'powerpaste image table link customupload media youtube paste', menubar: '', toolbar: 'undo redo | formatselect | bold italic strikethrough forecolor backcolor fontsizeselect | alignleft aligncenter alignright alignjustify | link customupload youtube table', default_target_link: '_blank', language: 'en', media_dimensions: false, media_poster: false, relative_urls: false, remove_script_host: false, object_resizing: ":not(table):not(iframe)", fontsize_formats: _font_format, image_title: true, maximumImageFileSize: _fileLimitSize, file_picker_callback: function (callback, value, meta) { var fileInput = $(''); $('body').append(fileInput); fileInput.trigger('click'); fileInput.on('change', function () { _abyss.loading(true); if (uploadLimitSizeValue <= this.files[0].size) { alert(_fileLimitErrorMessage); _abyss.loading(false); return; } var formData = new FormData(); var fileName = this.files[0].name; formData.append('upload', $(this).prop('files')[0]); $.ajax({ type: 'POST', url: '/FileUpload/index?subpath=' + attachFilePath + '&responseType=json', contentType: false, processData: false, data: formData }) .done(function (data) { if (data._resultCode == 0) { callback(data._value, {title: fileName}); } else { alert(!!data._resultMessage ? data._resultMessage : _fileErroMessage); } }) }); }, images_upload_handler: function (blobInfo, success, failure) { _abyss.loading(true); if (uploadLimitSizeValue <= blobInfo.blob().size) { alert(_fileLimitErrorMessage); var $img = tinymce.dom.DomQuery(tinymce.activeEditor.getBody())[0].querySelector("img[src='" + blobInfo.blobUri() + "']"); $img && $img.remove(); _abyss.loading(false); return; } var xhr, formData; xhr = new XMLHttpRequest(); xhr.withCredentials = false; xhr.open('POST', '/FileUpload/index?subpath=' + attachFilePath + '&responseType=json', false); xhr.onload = function () { var json; if (xhr.status != 200) { failure('HTTP Error: ' + xhr.status); _abyss.loading(false); return; } json = JSON.parse(xhr.responseText); if (!json || typeof json._value != 'string') { failure('Invalid JSON: ' + xhr.responseText); alert(!!json._resultMessage ? json._resultMessage : _fileErroMessage); _abyss.loading(false); return; } success(json._value); setTimeout(function () { _abyss.loading(false); }, 1000 * 1); }; xhr.onerror = function (e) { _abyss.loading(false); } formData = new FormData(); formData.append('upload', blobInfo.blob(), blobInfo.filename()); xhr.send(formData); tinymce.execCommand('mceInsertNewLine'); }, paste_preprocess: function (plugin, args) { args.content = args.content .replace(/font-(family|size):.*?;/g, '') .replace(//g, '') .replace(/id=\"([^"]*)\"|id=\'([^"]*)\'|class=\"([^"]*)\"|class=\'([^"]*)\'/g, '') .replace(//g, ''); }, powerpaste_word_import: "propmt", powerpaste_html_import: "propmt", powerpaste_allow_local_images: false, //powerpaste_block_drop: true, paste_data_images: true, invalid_elements: _getBlacklistElem(), valid_styles: { '*': _getWhitelistStyle() }, extended_valid_elements: _getWhitelistElem(), block_formats: _block_size }); }

#Abenteuer_Tagebuch

Guides zu den Abenteurertagebüchern

03. Feb 2021, 01:42 (UTC)

3443 2 9 0

Zeitpunkt der letzten Änderungen : 21. Apr 2021, 16:06 (UTC)

# 2

Perfekte Arbeit :D

Liebe Grüße von FIVE

Die erste dt. Aus- und Weiterbildungsgilde!'

www.5ive.home.blog

mZi

1 6

Lv 61

Tameyyy

Antworten

Eintragen

Gameplay

Teilt Eure Tipps und Know-Hows über Gameplay.

Ein neues Thema eröffnen

[Gameplay] Guides zu den Abenteurertagebüchern | Black Desert NA/EU (2024)
Top Articles
Latest Posts
Article information

Author: Dr. Pierre Goyette

Last Updated:

Views: 5800

Rating: 5 / 5 (70 voted)

Reviews: 85% of readers found this page helpful

Author information

Name: Dr. Pierre Goyette

Birthday: 1998-01-29

Address: Apt. 611 3357 Yong Plain, West Audra, IL 70053

Phone: +5819954278378

Job: Construction Director

Hobby: Embroidery, Creative writing, Shopping, Driving, Stand-up comedy, Coffee roasting, Scrapbooking

Introduction: My name is Dr. Pierre Goyette, I am a enchanting, powerful, jolly, rich, graceful, colorful, zany person who loves writing and wants to share my knowledge and understanding with you.