remove old version
This commit is contained in:
parent
9b329c6c92
commit
673fa12d4a
@ -1,106 +0,0 @@
|
||||
/**
|
||||
* This is the configuration of ckeditor provided by the s9y-team. Make your
|
||||
* custom changes in htmlarea/ckeditor/userconf.js so they won't get overwritten
|
||||
*/
|
||||
CKEDITOR.editorConfig = function( config ) {
|
||||
|
||||
// Advanced Content Filter ACF works in two modes:
|
||||
// automatic the filter is configured by editor features (like plugins, buttons, and commands) that are enabled with configuration options
|
||||
// such as CKEDITOR.config.plugins, CKEDITOR.config.extraPlugins, and CKEDITOR.config.toolbar,
|
||||
// custom the filter is configured by the CKEDITOR.config.allowedContent option and only features that match this setting are activated.
|
||||
// In both modes it is possible to extend the filter configuration by using the CKEDITOR.config.extraAllowedContent setting.
|
||||
// If you want to disable Advanced Content Filter, set CKEDITOR.config.allowedContent to true. All available editor features will be activated and input data will not be filtered.
|
||||
// Allowed content rules. This setting is used when instantiating CKEDITOR.editor.filter.
|
||||
// The following values are accepted:
|
||||
// CKEDITOR.filter.allowedContentRules defined rules will be added to the CKEDITOR.editor.filter.
|
||||
// true will disable the filter (data will not be filtered, all features will be activated).
|
||||
// default the filter will be configured by loaded features (toolbar items, commands, etc.).
|
||||
// In all cases filter configuration may be extended by extraAllowedContent. This option may be especially useful when you want to use the default allowedContent value along with some additional rules.
|
||||
//
|
||||
// config.allowedContent = CONFIG_ACF_OFF;
|
||||
|
||||
// List of regular expressions to be executed on ***input HTML***, indicating HTML source code that, when matched, must not be available in the WYSIWYG mode for editing.
|
||||
|
||||
// allow <script> tags
|
||||
config.protectedSource.push( /<(script)[^>]*>.*<\/script>/ig ); // set default in ckeditor.js [/<script[\s\S]*?<\/script>/gi,/<noscript[\s\S]*?<\/noscript>/gi]
|
||||
// allow imageselectorplus mediainsert tag code
|
||||
config.protectedSource.push( /<(mediainsert)[^>]*>[\s\S]*?<\/mediainsert>/img );
|
||||
// allow a Smarty like {} tag syntax without starting whitespace, which would be some other code part.
|
||||
config.protectedSource.push( /\{[a-zA-Z\$].*?\}/gi );
|
||||
|
||||
// Set placeholder tag cases - elements [attributes]{styles}(classes)
|
||||
// Allowed mediainsert, gallery, media tags (imageselectorplus galleries) - which tells ACF to not touch the code!
|
||||
// Allowed div is a need for Media Library inserts - which tells ACF to not touch the code!
|
||||
// img[height] is even needed to avoid ACF OFF removement of height attributes
|
||||
config.extraAllowedContent = 'mediainsert[*]{*}(*);gallery[*]{*}(*);media[*]{*}(*);script[*]{*}(*);audio[*]{*}(*);div[*]{*}(*);img[height,width];';
|
||||
|
||||
// CKEDITOR.protectedSource patterns used regex Escape sequences
|
||||
// \s any whitespace character;
|
||||
// \S any character that is not a whitespace character
|
||||
// \t tab (hex 09);
|
||||
// \r carriage return (hex 0D);
|
||||
// \n newline (hex 0A);
|
||||
// Pattern Modifiers
|
||||
// /i caseless, match both upper and lower case letters
|
||||
// /m treat as multiline
|
||||
// /g be greedy
|
||||
|
||||
// Prevent filler nodes in all empty blocks. - case switching source and wysiwyg mode multiple times
|
||||
//config.fillEmptyBlocks = false; // default (true) - switches <p> </p> to <p></p>
|
||||
//config.ignoreEmptyParagraph = false; // default(true) - Whether the editor must output an empty value ('') if it's contents is made by an empty paragraph only. (extends to config.fillEmptyBlocks)
|
||||
// It will still generate an empty <p></p> though.
|
||||
config.autoParagraph = false; // but this one definitely prevents adding multiple empty paragraphs when switching source mode!!!
|
||||
|
||||
// add custom Serendipity styles to ckeditor wysiwyg-mode, to repect css image floats
|
||||
config.contentsCss = 'htmlarea/ckeditor/wysiwyg-style.css';
|
||||
|
||||
// The configuration setting that controls the ENTER mode is "config.enterMode" and it offers three options:
|
||||
// (1) The default creates a paragraph element each time the "enter" key is pressed:
|
||||
//config.enterMode = CKEDITOR.ENTER_P; // inserts <p></p>
|
||||
// (2) You can choose to create a "div" element instead of a paragraph:
|
||||
//config.enterMode = CKEDITOR.ENTER_DIV; // inserts <div></div>
|
||||
// (3) If you prefer to not wrap the text in anything, you can choose to insert a line break tag:
|
||||
//config.enterMode = CKEDITOR.ENTER_BR; // inserts <br />
|
||||
// You can always use SHIFT+ENTER to set a br in the P-mode default option or change the SHIFT-mode to something else
|
||||
//config.shiftEnterMode = CKEDITOR.ENTER_BR;
|
||||
|
||||
//config.entities = false;
|
||||
//config.htmlEncodeOutput = false;
|
||||
|
||||
// ui configurations - just some examples
|
||||
//config.uiColor = 'transparent'; // standard, but better disable config.uiColor all
|
||||
//config.uiColor = '#CFD1CF'; // standard grey
|
||||
//config.uiColor = '#f5f5f5'; // standard light grey
|
||||
//config.uiColor = '#E6EDF3'; // extreme light blue
|
||||
//config.uiColor = '#DFE8F6'; // very light blue
|
||||
//config.uiColor = '#9AB8F3'; // light blue/violet
|
||||
//config.uiColor = '#AADC6E'; // light green
|
||||
//config.uiColor = '#FFDC6E'; // light gold
|
||||
//config.uiColor = '#FF8040'; // mango
|
||||
//config.uiColor = '#FF2400'; // scarlet red
|
||||
//config.uiColor = '#14B8C4'; // light turquoise
|
||||
config.skin = 'moono';
|
||||
config.height = 400;
|
||||
|
||||
config.removePlugins = 'showblocks, font, div, liststyle, flash, iframe, pagebreak, smiley, specialchar, horizontalrule, indentblock, justify, pastefromword, save, newpage, preview, print, stylescombo';
|
||||
|
||||
config.removeButtons = 'Underline,Subscript,Superscript';
|
||||
|
||||
config.toolbarGroups = [
|
||||
{ name: 'tools' },
|
||||
{ name: 'styles' },
|
||||
{ name: 'basicstyles', groups: [ 'basicstyles', 'cleanup' ] },
|
||||
{ name: 'paragraph', groups: [ 'list', 'indent', 'blocks', 'align' ] },
|
||||
{ name: 'links' },
|
||||
{ name: 'insert' },
|
||||
{ name: 'clipboard', groups: [ 'clipboard', 'undo' ] },
|
||||
{ name: 'editing', groups: [ 'spellchecker' ]},
|
||||
{ name: 'others' },
|
||||
{ name: 'document', groups: [ 'mode' ] },
|
||||
{ name: 'about' }
|
||||
];
|
||||
|
||||
|
||||
|
||||
config['customConfig'] = '../userconf.js';
|
||||
};
|
@ -1,90 +0,0 @@
|
||||
/**
|
||||
* Adds custom Serendipity image float styles to CKEDITOR wysiwyg-mode
|
||||
*/
|
||||
|
||||
.serendipity_image_left,
|
||||
.serendipity_image_right,
|
||||
.serendipity_image_center,
|
||||
.serendipity_imageComment_center,
|
||||
.serendipity_imageComment_left,
|
||||
.serendipity_imageComment_right {
|
||||
background: transparent;
|
||||
border: 0 none;
|
||||
padding: 0!important;
|
||||
}
|
||||
|
||||
.serendipity_image_left,
|
||||
.serendipity_image_right,
|
||||
.serendipity_imageComment_left,
|
||||
.serendipity_imageComment_right {
|
||||
display: block;
|
||||
float: none;
|
||||
margin: 0 0 1em;
|
||||
}
|
||||
|
||||
.serendipity_image_center {
|
||||
display: block;
|
||||
margin: 0 auto 1em auto;
|
||||
}
|
||||
|
||||
.plain-images .serendipity_image_left,
|
||||
.plain-images .serendipity_image_right,
|
||||
.plain-images .serendipity_image_center,
|
||||
.plain-images .serendipity_imageComment_center,
|
||||
.plain-images .serendipity_imageComment_left,
|
||||
.plain-images .serendipity_imageComment_right {
|
||||
border: 1px solid #aaa;
|
||||
}
|
||||
|
||||
.plain-images .serendipity_imageComment_txt {
|
||||
background: #ddd;
|
||||
}
|
||||
|
||||
.fancy-images .serendipity_image_left,
|
||||
.fancy-images .serendipity_image_right,
|
||||
.fancy-images .serendipity_image_center,
|
||||
.fancy-images .serendipity_imageComment_img {
|
||||
-webkit-box-shadow: 0 0 2px 1px rgba(0,0,0,.5);
|
||||
-moz-box-shadow: 0 0 2px 1px rgba(0,0,0,.5);
|
||||
box-shadow: 0 0 2px 1px rgba(0,0,0,.5);
|
||||
}
|
||||
|
||||
.no-boxshadow .fancy-images .serendipity_image_left,
|
||||
.no-boxshadow .fancy-images .serendipity_image_right,
|
||||
.no-boxshadow .fancy-images .serendipity_image_center,
|
||||
.no-boxshadow .fancy-images .serendipity_imageComment_img {
|
||||
border: 1px solid #aaa;
|
||||
}
|
||||
|
||||
.serendipity_imageComment_center,
|
||||
.serendipity_imageComment_left,
|
||||
.serendipity_imageComment_right {
|
||||
height: auto;
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
.serendipity_imageComment_center {
|
||||
margin: auto !important;
|
||||
}
|
||||
|
||||
.serendipity_image_left {
|
||||
float: left;
|
||||
margin: 0 2em 1em 0;
|
||||
}
|
||||
|
||||
.serendipity_image_right {
|
||||
float: right;
|
||||
margin: 0 0 1em 2em;
|
||||
}
|
||||
|
||||
.serendipity_imageComment_left {
|
||||
display: inline;
|
||||
float: left;
|
||||
margin: 0 2em 1em 0;
|
||||
}
|
||||
|
||||
.serendipity_imageComment_right {
|
||||
display: inline;
|
||||
float: right;
|
||||
margin: 0 0 1em 2em;
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user