• R/O
  • HTTP
  • SSH
  • HTTPS

magic3: Commit

Cloud computing platform


Commit MetaInfo

Révision43d22dbcd62bf5398ea91056e31995485052f182 (tree)
l'heure2014-08-27 23:49:43
Auteurnaoki hirata <naoki@magi...>
Commiternaoki hirata

Message de Log

CKEditorの「Googleマップ」プラグイン更新。

Change Summary

Modification

--- a/scripts/ckeditor4.4.2/plugins/googlemaps/dialogs/main.js
+++ b/scripts/ckeditor4.4.2/plugins/googlemaps/dialogs/main.js
@@ -359,6 +359,7 @@
359359 mapInfo.height = data.info['txtHeight'];
360360 mapInfo.widthType = data.info['cmbWidthType'];
361361 mapInfo.heightType = data.info['cmbHeightType'];
362+ mapInfo.alignCenter = data.info['chkAlignCenter'];
362363 mapInfo.zoom = data.info['cmbZoom'];
363364 mapInfo.centerLat = data.info['txtCenterLat'];
364365 mapInfo.centerLon = data.info['txtCenterLon'];
@@ -378,6 +379,8 @@
378379 // newMapElement.append(scriptElement);
379380 var newMapElement = CKEDITOR.dom.element.createFromHtml('<div>' + script + '</div>', editor.document); // IE8 not work.
380381 var style = 'width:' + mapInfo.width + mapInfo.widthType + ';height:' + mapInfo.height + mapInfo.heightType + ';display:none;';
382+ if (mapInfo.alignCenter) style += 'margin:0 auto;';
383+
381384 newMapElement.setAttributes({
382385 'id': 'gmap' + mapInfo.number,
383386 'style': style,
@@ -412,7 +415,7 @@
412415 {
413416 // 項目を横に配置
414417 type: 'hbox',
415- widths: [ '10%', '10%', '10%' ], // 項目間幅を調整
418+ widths: [ '10%', '10%', '10%', '20%' ], // 項目間幅を調整
416419 /* padding: '5px',*/
417420 children: [
418421 {
@@ -477,6 +480,13 @@
477480 [ '%', '%' ]
478481 ],
479482 commit: commitValue
483+ }, {
484+ type: 'checkbox',
485+ id: 'chkAlignCenter',
486+ label: editor.lang.googlemaps.alignCenter,
487+ style: 'margin-top:20px;',
488+ 'default': false,
489+ commit: commitValue
480490 } ]
481491 }, {
482492 type: 'hbox',
--- a/scripts/ckeditor4.4.2/plugins/googlemaps/lang/en.js
+++ b/scripts/ckeditor4.4.2/plugins/googlemaps/lang/en.js
@@ -9,7 +9,7 @@
99 * @author 平田直毅(Naoki Hirata) <naoki@aplo.co.jp>
1010 * @copyright Copyright 2006-2014 Magic3 Project.
1111 * @license http://www.gnu.org/copyleft/gpl.html GPL License
12- * @version SVN: $Id: en.js 5979 2013-05-10 09:20:24Z fishbone $
12+ * @version 1.0
1313 * @link http://www.magic3.org
1414 */
1515 CKEDITOR.plugins.setLang( 'googlemaps', 'en', {
@@ -23,6 +23,7 @@ CKEDITOR.plugins.setLang( 'googlemaps', 'en', {
2323 height: 'Height',
2424 widthType: '&nbsp;',
2525 heightType: '&nbsp;',
26+ alignCenter: 'align at center',
2627 zoomLevel: 'Zoom Level',
2728 msgDefaultMarkerText: 'Input text.'
2829 });
--- a/scripts/ckeditor4.4.2/plugins/googlemaps/lang/ja.js
+++ b/scripts/ckeditor4.4.2/plugins/googlemaps/lang/ja.js
@@ -9,7 +9,7 @@
99 * @author 平田直毅(Naoki Hirata) <naoki@aplo.co.jp>
1010 * @copyright Copyright 2006-2014 Magic3 Project.
1111 * @license http://www.gnu.org/copyleft/gpl.html GPL License
12- * @version SVN: $Id: ja.js 6030 2013-05-22 00:48:33Z fishbone $
12+ * @version 1.0
1313 * @link http://www.magic3.org
1414 */
1515 CKEDITOR.plugins.setLang( 'googlemaps', 'ja', {
@@ -23,6 +23,7 @@ CKEDITOR.plugins.setLang( 'googlemaps', 'ja', {
2323 height: '高さ',
2424 widthType: '&nbsp;',
2525 heightType: '&nbsp;',
26+ alignCenter: '中央に配置',
2627 zoomLevel: 'ズームレベル',
2728 latitude: '緯度',
2829 longitude: '経度',
Afficher sur ancien navigateur de dépôt.