mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +08:00
修改插件语言包,同步 ckeditor
This commit is contained in:
parent
5530384e49
commit
6e73105af4
@ -1,22 +0,0 @@
|
|||||||
The MIT License (MIT)
|
|
||||||
|
|
||||||
Copyright (c) 2015 Kamlesh Kushwaha
|
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
||||||
of this software and associated documentation files (the "Software"), to deal
|
|
||||||
in the Software without restriction, including without limitation the rights
|
|
||||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
||||||
copies of the Software, and to permit persons to whom the Software is
|
|
||||||
furnished to do so, subject to the following conditions:
|
|
||||||
|
|
||||||
The above copyright notice and this permission notice shall be included in all
|
|
||||||
copies or substantial portions of the Software.
|
|
||||||
|
|
||||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
||||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
||||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
||||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
||||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
||||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
||||||
SOFTWARE.
|
|
||||||
|
|
@ -1,2 +0,0 @@
|
|||||||
# lineheight
|
|
||||||
Ckeditor lineheight plugin repository
|
|
@ -1,3 +0,0 @@
|
|||||||
CKEDITOR.plugins.setLang('lineheight','{LANGUAGE_CODE}', {
|
|
||||||
title: '{LINE-HEIGHT}'
|
|
||||||
} );
|
|
@ -1,3 +0,0 @@
|
|||||||
CKEDITOR.plugins.setLang('lineheight','ar', {
|
|
||||||
title: 'خط الطول'
|
|
||||||
} );
|
|
@ -1,3 +0,0 @@
|
|||||||
CKEDITOR.plugins.setLang('lineheight','de', {
|
|
||||||
title: 'Zeilenhöhe'
|
|
||||||
} );
|
|
@ -1,3 +1,3 @@
|
|||||||
CKEDITOR.plugins.setLang('lineheight', 'en', {
|
CKEDITOR.plugins.setLang('lineheight', 'en', {
|
||||||
title: '行间距'
|
title: 'Line Height'
|
||||||
});
|
});
|
||||||
|
@ -1,3 +0,0 @@
|
|||||||
CKEDITOR.plugins.setLang('lineheight','es', {
|
|
||||||
title: 'Altura de Línea'
|
|
||||||
} );
|
|
@ -1,3 +0,0 @@
|
|||||||
CKEDITOR.plugins.setLang('lineheight','fr', {
|
|
||||||
title: 'Hauteur de Ligne'
|
|
||||||
} );
|
|
@ -1,3 +0,0 @@
|
|||||||
CKEDITOR.plugins.setLang('lineheight','ko', {
|
|
||||||
title: '줄 높이'
|
|
||||||
} );
|
|
@ -1,3 +0,0 @@
|
|||||||
CKEDITOR.plugins.setLang('lineheight','af', {
|
|
||||||
title: 'linha Altura'
|
|
||||||
} );
|
|
@ -0,0 +1,3 @@
|
|||||||
|
CKEDITOR.plugins.setLang('lineheight', 'zh-cn', {
|
||||||
|
title: '行间距'
|
||||||
|
});
|
@ -0,0 +1,3 @@
|
|||||||
|
CKEDITOR.plugins.setLang('lineheight', 'zh-cn', {
|
||||||
|
title: '行间距'
|
||||||
|
});
|
@ -62,9 +62,10 @@
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
CKEDITOR.plugins.add('lineheight', {
|
CKEDITOR.plugins.add('lineheight', {
|
||||||
|
lang: 'en,zh,zh-cn',
|
||||||
requires: 'richcombo',
|
requires: 'richcombo',
|
||||||
lang: 'ar,de,en,es,fr,ko,pt',
|
|
||||||
init: function (editor) {
|
init: function (editor) {
|
||||||
var config = editor.config;
|
var config = editor.config;
|
||||||
addCombo(editor, 'lineheight', 'size', editor.lang.lineheight.title, config.line_height, editor.lang.lineheight.title, config.lineHeight_style, 40);
|
addCombo(editor, 'lineheight', 'size', editor.lang.lineheight.title, config.line_height, editor.lang.lineheight.title, config.lineHeight_style, 40);
|
||||||
|
@ -1,30 +0,0 @@
|
|||||||
lineheight
|
|
||||||
==========
|
|
||||||
|
|
||||||
CKEDITOR Line-height plugin documentation
|
|
||||||
----------------------------------------------
|
|
||||||
|
|
||||||
Installation Notes:
|
|
||||||
|
|
||||||
Adding plugin into the toolbar:
|
|
||||||
Using CKBuilder is a recommended solution, however, if you have plugins developed by yourself or by third parties, you can add plugins to your local installation manually by following the steps described below:
|
|
||||||
Extract the plugin .zip archive.
|
|
||||||
Copy the plugin files to the plugins folder of your CKEditor installation. Each plugin must be placed in a sub-folder that matches its "technical" name.
|
|
||||||
|
|
||||||
For example, the lineheight plugin would be installed into this folder: <CKEditor folder>/plugins/lineheight.
|
|
||||||
Check and resolve plugin dependencies. If a plugin needs others to work, you will need to add these manually as well.
|
|
||||||
Enable the plugin. Use the extraPlugins setting to add the plugin to your confiuration:
|
|
||||||
|
|
||||||
config.extraPlugins = 'lineheight';
|
|
||||||
|
|
||||||
Refer this link for configuring the toolbar: http://docs.ckeditor.com/#!/guide/dev_toolbar
|
|
||||||
|
|
||||||
|
|
||||||
Customizing the lineheight values in the dropdown
|
|
||||||
-------------------------------------------------------
|
|
||||||
In order to have custom values of line-height instead of the default, you can add following line in the config.js file:
|
|
||||||
|
|
||||||
config.line_height="1em;1.1em;1.2em;1.3em;1.4em;1.5em";
|
|
||||||
|
|
||||||
Here, "em" is the unit of line-height which you can change to "px","%" or any other allowed unit for line-height.
|
|
||||||
You can also change the numbers based on your requirements. You can have more range or low range , it all depends on your requirements.
|
|
Loading…
x
Reference in New Issue
Block a user