前端资源本地存储

This commit is contained in:
范露尧
2023-06-30 11:36:38 +08:00
parent 0032956dbe
commit 7fa72212d4
721 changed files with 22760 additions and 0 deletions

View File

@@ -0,0 +1,65 @@
/**
* @license Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or http://ckeditor.com/license
*/
//2017-3-21 记录 从word中粘贴的插件是要收费的 但是需求也不能满足 不能自动上传
//http://www.pluginsforckeditor.com/Image-Plugins/65/Demo-ImagesFromWord/es/n65.aspx
CKEDITOR.editorConfig = function (config) {
// Define changes to default configuration here. For example:
// config.language = 'fr';
// config.uiColor = '#AADC6E';
config.language = 'zh-cn';
config.uiColor = '#9AB8F3';
config.skin = 'office2013';
// config.extraPlugins = 'imageuploader,image';
config.extraPlugins = 'imagepaste,image,autoformat,exportword';//,ImportWord,imageuploader
// config.extraPlugins = 'uploadimage';
// config.extraPlugins = 'clipboard';
// config.extraPlugins = 'imagepaste';
// config.extraPlugins = 'pastefromword';
// config.filebrowserBrowseUrl = '/browser/browse.php';
//config.filebrowserUploadUrl = '/gb/webadmin/b_ckeditor/ashx/CKUploadPic.ashx';
config.toolbar = [
{ name: 'document', items: ['Source', '-', 'Undo', 'Redo', '-', 'Preview', 'Print', '-'] },
{ name: 'clipboard', items: ['Cut', 'Copy', 'Paste', 'PasteText', 'PasteFromWord', 'RemoveFormat', 'autoformat'] },
{ name: 'editing', items: ['Find', 'Replace', '-', 'Styles', 'Format'] },
'/',
{ name: 'basicstyles', items: ['Bold', 'Italic', 'Underline', 'Strike'] },
{ name: 'paragraph', items: ['JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyBlock'] },
{ name: 'links', items: ['Link', 'Unlink'] },
//{ name: 'insert', items: ['Image', 'Flash', 'flvPlayer', 'VideoPlayer', 'Table'] },
{name: 'insert', items: ['Image', 'Flash', 'Table'] },
{ name: 'tools', items: ['Maximize', 'ShowBlocks', 'ImportWord','exportword'] }
];
config.toolbarCanCollapse = true;
//config.image_previewText = '';
config.enterMode = CKEDITOR.ENTER_BR;
config.shiftEnterMode = CKEDITOR.ENTER_P;
config.format_p = { element: 'p', attributes: { style: 'text-indent: 2em;'} };
// config.pasteFromWordIgnoreFontFace = false; //默认为忽略格式
// config.pasteFromWordRemoveFontStyles = false;
// config.pasteFromWordRemoveStyles = false;
// config.forcePasteAsPlainText = false;
};
//config.toolbar = [
// { name: 'document', items: ['Source', '-', 'Save', 'NewPage', 'Preview', 'Print', '-', 'Templates'] },
// { name: 'clipboard', items: ['Cut', 'Copy', 'Paste', 'PasteText', 'PasteFromWord', '-', 'Undo', 'Redo'] },
// { name: 'editing', items: ['Find', 'Replace', '-', 'SelectAll', '-', 'Scayt'] },
// { name: 'forms', items: ['Form', 'Checkbox', 'Radio', 'TextField', 'Textarea', 'Select', 'Button', 'ImageButton', 'HiddenField'] },
// '/',
// { name: 'basicstyles', items: ['Bold', 'Italic', 'Underline', 'Strike', 'Subscript', 'Superscript', '-', 'RemoveFormat'] },
// { name: 'paragraph', items: ['NumberedList', 'BulletedList', '-', 'Outdent', 'Indent', '-', 'Blockquote', 'CreateDiv', '-', 'JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyBlock', '-', 'BidiLtr', 'BidiRtl', 'Language'] },
// { name: 'links', items: ['Link', 'Unlink', 'Anchor'] },
// { name: 'insert', items: ['Image', 'Flash', 'Table', 'HorizontalRule', 'Smiley', 'SpecialChar', 'PageBreak', 'Iframe'] },
// '/',
// { name: 'styles', items: ['Styles', 'Format', 'Font', 'FontSize'] },
// { name: 'colors', items: ['TextColor', 'BGColor'] },
// { name: 'tools', items: ['Maximize', 'ShowBlocks'] },
// { name: 'about', items: ['About'] }
// ];

View File

@@ -0,0 +1,63 @@
/**
* @license Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or http://ckeditor.com/license
*/
//2017-3-21 记录 从word中粘贴的插件是要收费的 但是需求也不能满足 不能自动上传
//http://www.pluginsforckeditor.com/Image-Plugins/65/Demo-ImagesFromWord/es/n65.aspx
CKEDITOR.editorConfig = function (config) {
// Define changes to default configuration here. For example:
// config.language = 'fr';
// config.uiColor = '#AADC6E';
config.language = 'zh-cn';
config.uiColor = '#9AB8F3';
config.skin = 'office2013';
// config.extraPlugins = 'imageuploader,image';
//config.extraPlugins = 'imagepaste,imageuploader,image,autoformat,ImportWord';
config.extraPlugins = 'autoformat';
// config.extraPlugins = 'uploadimage';
// config.extraPlugins = 'clipboard';
// config.extraPlugins = 'imagepaste';
// config.extraPlugins = 'pastefromword';
// config.filebrowserBrowseUrl = '/browser/browse.php';
//config.filebrowserUploadUrl = '/gb/webadmin/b_ckeditor/ashx/CKUploadPic.ashx';
config.toolbar = [
{ name: 'document', items: ['Source', '-', 'Undo', 'Redo', '-', 'Preview', 'Print', '-'] },
{ name: 'clipboard', items: ['Cut', 'Copy', 'Paste', 'PasteText', 'PasteFromWord', 'RemoveFormat', 'autoformat'] },
{ name: 'editing', items: ['Find', 'Replace', '-', 'Styles', 'Format'] },
{ name: 'basicstyles', items: ['Bold', 'Italic', 'Underline', 'Strike'] },
{ name: 'paragraph', items: ['JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyBlock'] },
{ name: 'links', items: ['Link', 'Unlink'] },
{ name: 'tools', items: ['Maximize', 'ShowBlocks', 'ImportWord'] }
];
config.toolbarCanCollapse = true;
//config.image_previewText = '';
config.enterMode = CKEDITOR.ENTER_BR;
config.shiftEnterMode = CKEDITOR.ENTER_P;
config.format_p = { element: 'p', attributes: { style: 'text-indent: 2em;'} };
// config.pasteFromWordIgnoreFontFace = false; //默认为忽略格式
// config.pasteFromWordRemoveFontStyles = false;
// config.pasteFromWordRemoveStyles = false;
// config.forcePasteAsPlainText = false;
};
//config.toolbar = [
// { name: 'document', items: ['Source', '-', 'Save', 'NewPage', 'Preview', 'Print', '-', 'Templates'] },
// { name: 'clipboard', items: ['Cut', 'Copy', 'Paste', 'PasteText', 'PasteFromWord', '-', 'Undo', 'Redo'] },
// { name: 'editing', items: ['Find', 'Replace', '-', 'SelectAll', '-', 'Scayt'] },
// { name: 'forms', items: ['Form', 'Checkbox', 'Radio', 'TextField', 'Textarea', 'Select', 'Button', 'ImageButton', 'HiddenField'] },
// '/',
// { name: 'basicstyles', items: ['Bold', 'Italic', 'Underline', 'Strike', 'Subscript', 'Superscript', '-', 'RemoveFormat'] },
// { name: 'paragraph', items: ['NumberedList', 'BulletedList', '-', 'Outdent', 'Indent', '-', 'Blockquote', 'CreateDiv', '-', 'JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyBlock', '-', 'BidiLtr', 'BidiRtl', 'Language'] },
// { name: 'links', items: ['Link', 'Unlink', 'Anchor'] },
// { name: 'insert', items: ['Image', 'Flash', 'Table', 'HorizontalRule', 'Smiley', 'SpecialChar', 'PageBreak', 'Iframe'] },
// '/',
// { name: 'styles', items: ['Styles', 'Format', 'Font', 'FontSize'] },
// { name: 'colors', items: ['TextColor', 'BGColor'] },
// { name: 'tools', items: ['Maximize', 'ShowBlocks'] },
// { name: 'about', items: ['About'] }
// ];