Skip to content
Snippets Groups Projects
Commit 69a05a11 authored by Devin Carlson's avatar Devin Carlson
Browse files

Issue #3440592: Accommodate changes to the Editor module

parent 23c91d53
No related branches found
No related tags found
No related merge requests found
Showing
with 136 additions and 543 deletions
......@@ -36,3 +36,17 @@ INSTALLATION
By default, Editor CKEditor Widgets does not include any widgets. Widgets must
be downloaded from their respective vendors.
AVAILABLE WIDGETS
-----------------
Leaflet - Embed mobile-friendly interactive maps from the open-source JavaScript library.
https://ckeditor.com/cke4/addon/leaflet
Placeholder - Create and edit placeholders (non-editable text fragments).
https://ckeditor.com/cke4/addon/placeholder
Abbreviation - Lets users insert abbreviations.
https://github.com/ckeditor/ckeditor4-docs-samples - Use 'abbr' folder located at 'tutorial-abbr-acf/abbr'
Timestamp - Inserts current date and time.
https://github.com/ckeditor/ckeditor4-docs-samples - Use 'timestamp' folder located at 'tutorial-timestamp/timestamp'
......@@ -10,69 +10,66 @@
*/
function editor_ckeditor_widgets_editor_ckeditor_plugins() {
$plugins = array();
$path = drupal_get_path('module', 'editor_ckeditor_widgets');
$plugins['foundationAccordion'] = array(
'path' => drupal_get_path('module', 'editor_ckeditor_widgets') . '/js/plugins/foundation/foundationAccordion',
'file' => 'plugin.js',
'css' => array(drupal_get_path('module', 'editor_ckeditor_widgets') . '/js/plugins/foundation/foundationAccordion/css/style.css'),
'buttons' => array(
'foundationAccordion' => array(
'label' => t('Accordion'),
'required_html' => array(array(
'tags' => array('ul'),
'attributes' => array('class' => array('accordion')),
)),
'image' => drupal_get_path('module', 'editor_ckeditor_widgets') . '/js/plugins/foundation/foundationAccordion/icons/foundationAccordion.png',
),
),
);
if (($library = libraries_detect('ckeditor-leaflet')) && !empty($library['installed'])) {
if (($library = libraries_detect('leaflet')) && !empty($library['installed'])) {
$plugins['leaflet'] = array(
'path' => $library['library path'],
'file' => 'plugin.js',
'label' => t('Leaflet'),
'file' => $path . '/plugins/editor_ckeditor_widgets.leaflet.inc',
'plugin' => $library['library path'] . '/plugin.js',
'buttons' => array(
'leaflet' => array(
'label' => t('Leaflet'),
'required_html' => array(array(
'required_html' => array(
array(
'tags' => array('div'),
'attributes' => array('class' => array('leaflet_div')),
)),
'attributes' => array('id', 'data-lat', 'data-lon', 'data-width', 'data-height', 'data-zoom', 'data-popup-text', 'data-tile', 'data-minimap', 'data-alignment', 'data-responsive'),
'classes' => array('leaflet_div', 'align-left', 'align-right', 'align-center', 'responsive-map'),
),
array(
'tags' => array('iframe'),
'attributes' => array('id', 'height', 'width', 'data-lat', 'data-lon', 'data-width', 'data-height', 'data-zoom', 'data-popup-text', 'data-tile', 'data-minimap', 'data-alignment', 'data-responsive', 'src', 'data-cke-saved-src'),
'classes' => array('leaflet_iframe', 'responsive-map-iframe'),
),
),
'image' => $library['library path'] . '/icons/leaflet.png',
),
),
'supports_configuration' => TRUE,
'config callback' => 'editor_ckeditor_widgets_leaflet_config',
'settings form' => 'editor_ckeditor_widgets_leaflet_settings_form',
);
}
if (($library = libraries_detect('placeholder')) && !empty($library['installed'])) {
$plugins['placeholder'] = array(
'path' => $library['library path'],
'file' => 'plugin.js',
if (($library = libraries_detect('abbr')) && !empty($library['installed'])) {
$plugins['abbr'] = array(
'label' => t('Abbreviation'),
'plugin' => $library['library path'] . '/plugin.js',
'buttons' => array(
'CreatePlaceholder' => array(
'label' => t('Placeholder'),
'Abbr' => array(
'label' => t('Abbreviation'),
'required_html' => array(array(
'tags' => array('span'),
'attributes' => array('class' => array('cke_placeholder')),
'tags' => array('abbr'),
'attributes' => array('title', 'id'),
)),
'image' => $library['library path'] . '/icons/placeholder.png',
'image' => $library['library path'] . '/icons/abbr.png',
),
),
);
}
if (($library = libraries_detect('abbr')) && !empty($library['installed'])) {
$plugins['abbr'] = array(
'path' => $library['library path'],
'file' => 'plugin.js',
if (($library = libraries_detect('placeholder')) && !empty($library['installed'])) {
$plugins['placeholder'] = array(
'label' => t('Placeholder'),
'plugin' => $library['library path'] . '/plugin.js',
'buttons' => array(
'Abbr' => array(
'label' => t('Abbreviation'),
'CreatePlaceholder' => array(
'label' => t('Placeholder'),
'required_html' => array(array(
'tags' => array('abbr'),
'attributes' => array('title', 'id'),
'tags' => array('span'),
'classes' => array('cke_placeholder'),
)),
'image' => $library['library path'] . '/icons/abbr.png',
'image' => $library['library path'] . '/icons/placeholder.png',
),
),
);
......@@ -80,8 +77,8 @@ function editor_ckeditor_widgets_editor_ckeditor_plugins() {
if (($library = libraries_detect('timestamp')) && !empty($library['installed'])) {
$plugins['timestamp'] = array(
'path' => $library['library path'],
'file' => 'plugin.js',
'label' => t('Timestamp'),
'plugin' => $library['library path'] . '/plugin.js',
'buttons' => array(
'Timestamp' => array(
'label' => t('Timestamp'),
......
......@@ -26,14 +26,15 @@ function editor_ckeditor_widgets_help($path, $arg) {
* Implements hook_libraries_info().
*/
function editor_ckeditor_widgets_libraries_info() {
$libraries['ckeditor-leaflet'] = array(
'name' => 'CKEditor Leaflet',
$libraries['leaflet'] = array(
'name' => 'Leaflet',
'vendor url' => 'http://leafletjs.com',
'download url' => 'http://ckeditor.com/addon/leaflet',
'version arguments' => array(
'file' => 'CHANGELOG.md',
// ####Version 1.7 Released (August 13, 2016)
// ####Version 1.3.1 Released (December 27, 2014)
'pattern' => '/####Version (\d+\.\d+\.\d+)/',
'pattern' => '/####Version ([\d\.]+)/',
'lines' => 4,
),
'files' => array(
......@@ -81,3 +82,58 @@ function editor_ckeditor_widgets_libraries_info() {
return $libraries;
}
/**
* Implements hook_library().
*/
function editor_ckeditor_widgets_library() {
if (($library = libraries_detect('leaflet')) && !empty($library['installed'])) {
$libraries['editor_ckeditor_widgets.leaflet'] = array(
'title' => 'Leaflet',
'version' => $library['version'],
'css' => array(
$library['library path'] . '/css/contents.css' => array(),
),
);
}
return $libraries;
}
/**
* Implements hook_field_attach_view_alter().
*/
function editor_ckeditor_widgets_field_attach_view_alter(&$output, $context) {
// Attach syntax highlighting when viewing a textarea.
// Look for known field types as the #base_type is not available.
if (($library = libraries_detect('leaflet')) && !empty($library['installed'])) {
foreach (element_children($output) as $field_name) {
$element = &$output[$field_name];
if (in_array($element['#field_type'], array('text', 'text_long', 'text_with_summary'), TRUE)) {
foreach ($element['#items'] as $delta => $item) {
if (!empty($item['format'])) {
$format = filter_format_load($item['format']);
$editor = editor_load($format->editor);
// Skip this item if an editor is not enabled.
if (!$editor) {
continue;
}
editor_format_ensure_additional_properties($format);
// Retrieve the enabled button.
$buttons = editor_ckeditor_get_enabled_buttons($format);
// Attach the leaflet library if leaflet is enabled for this text
// format.
if (in_array('leaflet', $buttons)) {
$element['#attached']['library'][] = array('editor_ckeditor_widgets', 'editor_ckeditor_widgets.leaflet');
}
}
}
}
}
}
}
(function ($, Drupal) {
'use strict';
/**
* Provides the summary for the "lite" plugin settings vertical tab.
*/
Drupal.behaviors.ckeditorLITESettingsSummary = {
attach: function attach() {
$('#edit-editor-settings-plugins-lite').drupalSetSummary(function (context) {
var root = 'input[name="editor[settings][plugins][lite]';
var $is_tracking = $(root + '[is_tracking]"]');
if (!$is_tracking.is(':checked')) {
return Drupal.t('Change tracking starts disabled');
}
else {
return Drupal.t('Change tracking starts enabled');
}
});
}
};
})(jQuery, Drupal);
<textarea id="ckContent"></textarea>
<input type="button" value="Save Changes" id="saveChanges" onClick="save()" />
<input type="button" value="Cancel" id="cancel" onClick="window.close()" />
<script type="text/javascript" src="http://localhost/ckeditor/ckeditor/ckeditor.js"></script>
<script type="text/javascript">
// configure your editor here and pass it to "editor" variable
var editor = CKEDITOR.replace('ckContent', {height:'75%'});
// do not alter codes below
var param = Array();
param = queryString();
document.getElementById('ckContent').innerHTML = window.opener.CKEDITOR.dialog.getCurrent()._.element.$.getElementsByClassName(param['edit'])[param['content']].value;
function save(){
window.opener.CKEDITOR.dialog.getCurrent()._.element.$.getElementsByClassName(param['edit'])[param['content']].value = editor.getData();
window.close();
};
function queryString(){
var qs = (location.search).replace('?', '').split('&');
var par = Array();
for(var i in qs){
var tmp = qs[i].split('=');
par[tmp[0]] = tmp[1];
}
return par;
};
</script>
<style type="text/css">
body {text-align:right;}
input {outline:none; padding:6px 9px; margin:2px; cursor:pointer; font-family:Arial, Helvetica, sans-serif; -webkit-border-radius:3px; border-radius:3px; -webkit-box-shadow:inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 1px 1px rgba(0, 0, 0, 0.15); box-shadow:inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 1px 1px rgba(0, 0, 0, 0.15); background-color:#e0e0e0; color:#666; text-shadow:none; border:1px solid #ababab;}
#saveChanges {background-color:#63a730; color:#fff; border:1px solid #62a62f; background-image:-webkit-linear-gradient(#7ebe4c,#63a730); background-image:linear-gradient(#7ebe4c,#63a730);}
#cancel {background-image:-webkit-linear-gradient(#e8e5e5,#e0e0e0); background-image:linear-gradient(#e8e5e5,#e0e0e0);}
input:active {-webkit-box-shadow:inset 0 0 6px rgba(0, 0, 0, 0.2); box-shadow:inset 0 0 6px rgba(0, 0, 0, 0.2)}
</style>
\ No newline at end of file
/**
* @file
* Styles for administering foundation accordions.
*/
#foundationAccordion {}
#foundationAccordion_Container {height:350px; overflow:auto; margin-bottom:1em;}
#foundationAccordion table {width:100%; border-collapse:collapse;}
#foundationAccordion th, #foundationAccordion td {padding:.5em;}
#foundationAccordion th {font-weight:bold;}
#foundationAccordion td {vertical-align:top;}
#foundationAccordion input[type=text], #foundationAccordion textarea {padding:.3em; border:1px solid #ddd; -webkit-border-radius:3px; border-radius:3px; -webkit-box-shadow:inset 0 2px 2px rgba(0,0,0,0.075); box-shadow:inset 0 2px 2px rgba(0,0,0,0.075); background:rgba(0, 0, 0, .01); line-height:inherit; height:inherit;}
#foundationAccordion input[type=text] {width:150px;}
#foundationAccordion textarea {resize:none; width:295px; height:100px; white-space:pre-wrap;}
#foundationAccordion .foundationAccordion_remove, #foundationAccordion .foundationAccordion_addNew, #foundationAccordion .foundationAccordion_up, #foundationAccordion .foundationAccordion_down {font-weight:bold; -webkit-border-radius:3px; border-radius:3px;}
#foundationAccordion .foundationAccordion_remove {background:#A94442; padding:.3em .5em; color:#fff;}
#foundationAccordion .foundationAccordion_remove:hover {text-decoration:none;}
#foundationAccordion .foundationAccordion_addNew, #foundationAccordion .foundationAccordion_up, #foundationAccordion .foundationAccordion_down {float:right; padding:.5em; background:#f3f3f3; border:1px solid #ddd;}
#foundationAccordion .foundationAccordion_addNew:hover {text-decoration:underline;}
#foundationAccordion .foundationAccordion_up, #foundationAccordion .foundationAccordion_down {float:none; padding:.13em .4em;}
/**
* @file
* Drupal Foundation Accordion plugin dialogs.
*
* @ignore
*/
(function ($, Drupal, CKEDITOR) {
var foundationAccordion_popup = 'toolbar=no,status=no,resizable=yes,dependent=yes,width=' + (screen.width * 0.7) + ',height=' + (screen.height * 0.7) + ',left=' + ((screen.width - (screen.width * 0.7)) / 2) + ',top=' + ((screen.height - (screen.height * 0.7)) / 2);
var foundationAccordion_wrapper = foundationAccordion_deleteMessage = foundationAccordion_minimum = foundationAccordion_managePopupTitle = foundationAccordion_managePopupContent = '';
function foundationAccordion_template() {
return '<tr><td><input type="button" class="foundationAccordion_up" value="&and;" onclick="foundationAccordion_up(this)" /><input type="button" class="foundationAccordion_down" value="&or;" onclick="foundationAccordion_down(this)" /></td><td><input type="text" class="foundationAccordion_title" /></td><td><textarea class="foundationAccordion_content"' + (foundationAccordion_managePopupContent ? ' onclick="window.open(\'' + CKEDITOR.plugins.getPath('foundationAccordion') + 'ckeditor.html?edit=foundationAccordion_content&content=\'+foundationAccordion_index(this.parentNode.parentNode), \'Foundation Accordion\', \'' + foundationAccordion_popup + '\')"' : '') + '></textarea></td> <td><input type="button" class="foundationAccordion_remove" value="x" onclick="foundationAccordion_remove(this)" /></td> </tr> <tr> <td> <input type="button" class="foundationAccordion_up" value="&and;" onclick="foundationAccordion_up(this)" /> <input type="button" class="foundationAccordion_down" value="&or;" onclick="foundationAccordion_down(this)" /> </td> <td><input type="text" class="foundationAccordion_title" /></td> <td><textarea class="foundationAccordion_content"' + (foundationAccordion_managePopupContent ? ' onclick="window.open(\'' + CKEDITOR.plugins.getPath('foundationAccordion') + 'ckeditor.html?edit=foundationAccordion_content&content=\'+foundationAccordion_index(this.parentNode.parentNode), \'Foundation Accordion\', \'' + foundationAccordion_popup + '\')"' : '') + '></textarea></td> <td><input type="button" class="foundationAccordion_remove" value="x" onclick="foundationAccordion_remove(this)" /></td> </tr> <tr> <td> <input type="button" class="foundationAccordion_up" value="&and;" onclick="foundationAccordion_up(this)" /> <input type="button" class="foundationAccordion_down" value="&or;" onclick="foundationAccordion_down(this)" /> </td> <td><input type="text" class="foundationAccordion_title" /></td> <td><textarea class="foundationAccordion_content"' + (foundationAccordion_managePopupContent ? ' onclick="window.open(\'' + CKEDITOR.plugins.getPath('foundationAccordion') + 'ckeditor.html?edit=foundationAccordion_content&content=\'+foundationAccordion_index(this.parentNode.parentNode), \'Foundation Accordion\', \'' + foundationAccordion_popup + '\')"' : '') + '></textarea></td> <td><input type="button" class="foundationAccordion_remove" value="x" onclick="foundationAccordion_remove(this)" /></td> </tr> '
}
function foundationAccordion_up(foundationAccordion_element) {
var foundationAccordion_elementIndex = foundationAccordion_index(foundationAccordion_element.parentNode.parentNode);
if (foundationAccordion_elementIndex > 0) {
var foundationAccordion_titleSwap1 = foundationAccordion_wrapper.getElementsByTagName('tbody')[0].getElementsByTagName('tr')[foundationAccordion_elementIndex].children[1].firstChild.value;
var foundationAccordion_titleSwap2 = foundationAccordion_wrapper.getElementsByTagName('tbody')[0].getElementsByTagName('tr')[parseInt(foundationAccordion_elementIndex) - 1].children[1].firstChild.value;
foundationAccordion_wrapper.getElementsByTagName('tbody')[0].getElementsByTagName('tr')[parseInt(foundationAccordion_elementIndex) - 1].children[1].firstChild.value = foundationAccordion_titleSwap1;
foundationAccordion_wrapper.getElementsByTagName('tbody')[0].getElementsByTagName('tr')[foundationAccordion_elementIndex].children[1].firstChild.value = foundationAccordion_titleSwap2;
var foundationAccordion_contentSwap1 = foundationAccordion_wrapper.getElementsByTagName('tbody')[0].getElementsByTagName('tr')[foundationAccordion_elementIndex].children[2].firstChild.value;
var foundationAccordion_contentSwap2 = foundationAccordion_wrapper.getElementsByTagName('tbody')[0].getElementsByTagName('tr')[parseInt(foundationAccordion_elementIndex) - 1].children[2].firstChild.value;
foundationAccordion_wrapper.getElementsByTagName('tbody')[0].getElementsByTagName('tr')[parseInt(foundationAccordion_elementIndex) - 1].children[2].firstChild.value = foundationAccordion_contentSwap1;
foundationAccordion_wrapper.getElementsByTagName('tbody')[0].getElementsByTagName('tr')[foundationAccordion_elementIndex].children[2].firstChild.value = foundationAccordion_contentSwap2
}
return false;
}
function foundationAccordion_down(foundationAccordion_element) {
var foundationAccordion_elementIndex = foundationAccordion_index(foundationAccordion_element.parentNode.parentNode);
if (foundationAccordion_elementIndex < foundationAccordion_wrapper.getElementsByClassName('foundationAccordion_title').length - 1) {
var foundationAccordion_titleSwap1 = foundationAccordion_wrapper.getElementsByTagName('tbody')[0].getElementsByTagName('tr')[foundationAccordion_elementIndex].children[1].firstChild.value;
var foundationAccordion_titleSwap2 = foundationAccordion_wrapper.getElementsByTagName('tbody')[0].getElementsByTagName('tr')[parseInt(foundationAccordion_elementIndex) + 1].children[1].firstChild.value;
foundationAccordion_wrapper.getElementsByTagName('tbody')[0].getElementsByTagName('tr')[parseInt(foundationAccordion_elementIndex) + 1].children[1].firstChild.value = foundationAccordion_titleSwap1;
foundationAccordion_wrapper.getElementsByTagName('tbody')[0].getElementsByTagName('tr')[foundationAccordion_elementIndex].children[1].firstChild.value = foundationAccordion_titleSwap2;
var foundationAccordion_contentSwap1 = foundationAccordion_wrapper.getElementsByTagName('tbody')[0].getElementsByTagName('tr')[foundationAccordion_elementIndex].children[2].firstChild.value;
var foundationAccordion_contentSwap2 = foundationAccordion_wrapper.getElementsByTagName('tbody')[0].getElementsByTagName('tr')[parseInt(foundationAccordion_elementIndex) + 1].children[2].firstChild.value;
foundationAccordion_wrapper.getElementsByTagName('tbody')[0].getElementsByTagName('tr')[parseInt(foundationAccordion_elementIndex) + 1].children[2].firstChild.value = foundationAccordion_contentSwap1;
foundationAccordion_wrapper.getElementsByTagName('tbody')[0].getElementsByTagName('tr')[foundationAccordion_elementIndex].children[2].firstChild.value = foundationAccordion_contentSwap2
}
return false;
}
function foundationAccordion_addNewItem() {
var foundationAccordion_newItem = document.createElement('tr');
foundationAccordion_newItem.innerHTML = '<td><input type="button" class="foundationAccordion_up" value="&and;" onclick="foundationAccordion_up(this)" /><input type="button" class="foundationAccordion_down" value="&or;" onclick="foundationAccordion_down(this)" /></td><td><input type="text" class="foundationAccordion_title" /></td><td><textarea class="foundationAccordion_content"' + (foundationAccordion_managePopupContent ? ' onclick="window.open(\'' + CKEDITOR.plugins.getPath('foundationAccordion') + 'ckeditor.html?edit=foundationAccordion_content&content=\'+foundationAccordion_index(this.parentNode.parentNode), \'Foundation Accordion\', \'' + foundationAccordion_popup + '\')"' : '') + '></textarea></td><td><input type="button" class="foundationAccordion_remove" value="x" onclick="foundationAccordion_remove(this)" /></td>';
foundationAccordion_wrapper.getElementsByTagName('tbody')[0].appendChild(foundationAccordion_newItem);
return false;
}
function foundationAccordion_remove(foundationAccordion_element) {
if (foundationAccordion_wrapper.getElementsByClassName('foundationAccordion_title').length > 1) {
if (confirm(foundationAccordion_deleteMessage)) {
foundationAccordion_element.parentNode.parentNode.parentNode.removeChild(foundationAccordion_element.parentNode.parentNode)
}
}
else {
alert(foundationAccordion_minimum)
}
return false;
}
function foundationAccordion_in_array(foundationAccordion_needle, foundationAccordion_haystack) {
for (var i in foundationAccordion_haystack) {
if (foundationAccordion_haystack[i] == foundationAccordion_needle) return true
}
return false;
}
function foundationAccordion_index(node) {
var children = node.parentNode.childNodes;
var num = 0;
for (var i = 0; i < children.length; i++) {
if (children[i] == node) return num;
if (children[i].nodeType == 1) num++
}
return -1
}
CKEDITOR.dialog.add('foundationAccordionDialog', function(editor) {
return {
title: editor.lang.foundationAccordion.plugin,
minWidth: 600,
minHeight: 400,
resizable: false,
contents: [{
id: 'FoundationAccordionTab',
label: 'FoundationAccordionTab',
elements: [{
type: 'html',
html: '<div id="foundationAccordion"><div id="foundationAccordion_Container"><table><thead><tr><th></th><th>' + editor.lang.foundationAccordion.title + '</th><th>' + editor.lang.foundationAccordion.content + ' (' + editor.lang.foundationAccordion.htmlIsAllowed + ')</th><th></th></tr></thead><tbody></tbody></table></div><input type="button" value="+ ' + editor.lang.foundationAccordion.addNewItem + '" class="foundationAccordion_addNew" onclick="foundationAccordion_addNewItem()" /></div>',
commit: function(widget) {
var foundationAccordion_total = 0;
var foundationAccordion_items = foundationAccordion_wrapper.getElementsByClassName('foundationAccordion_title');
var foundationAccordion_contents = foundationAccordion_wrapper.getElementsByClassName('foundationAccordion_content');
for (var foundationAccordion_i = 0; foundationAccordion_i <= foundationAccordion_items.length; foundationAccordion_i++) {
if (foundationAccordion_items[foundationAccordion_i]) {
if (foundationAccordion_i == 0) {
widget.setData('foundationAccordion_contentClass' + foundationAccordion_i, 'content active')
}
else {
widget.setData('foundationAccordion_contentClass' + foundationAccordion_i, 'content')
}
widget.setData('foundationAccordion_item' + foundationAccordion_i, foundationAccordion_items[foundationAccordion_i].value);
widget.setData('foundationAccordion_content' + foundationAccordion_i, foundationAccordion_contents[foundationAccordion_i].value)
}
else {
widget.setData('foundationAccordion_item' + foundationAccordion_i, '');
widget.setData('foundationAccordion_content' + foundationAccordion_i, '')
}
}
widget.setData('foundationAccordion_total', foundationAccordion_items.length)
},
setup: function(widget) {
var selection = editor.getSelection();
element = selection.getStartElement();
var foundationAccordion_classes = element.$.children[0].className.split(' ');
var foundationAccordion_item = '';
if ((element.$.children[0].tagName).toLowerCase() == 'ul' && foundationAccordion_in_array('accordion', foundationAccordion_classes)) {
for (var foundationAccordion_i = 0; foundationAccordion_i <= element.$.children[0].children.length; foundationAccordion_i++) {
eval("foundationAccordion_title = widget.data.foundationAccordion_item" + foundationAccordion_i);
foundationAccordion_title = foundationAccordion_title != undefined ? foundationAccordion_title : '';
eval("foundationAccordion_content = widget.data.foundationAccordion_content" + foundationAccordion_i);
foundationAccordion_content = foundationAccordion_content != undefined ? foundationAccordion_content : '';
if (foundationAccordion_title) {
foundationAccordion_item += '<tr><td><input type="button" class="foundationAccordion_up" value="&and;" onclick="foundationAccordion_up(this)" /><input type="button" class="foundationAccordion_down" value="&or;" onclick="foundationAccordion_down(this)" /></td><td><input type="text" class="foundationAccordion_title" value="' + foundationAccordion_title + '" /></td><td><textarea class="foundationAccordion_content"' + (foundationAccordion_managePopupContent ? ' onclick="window.open(\'' + CKEDITOR.plugins.getPath('foundationAccordion') + 'ckeditor.html?edit=foundationAccordion_content&content=\'+foundationAccordion_index(this.parentNode.parentNode), \'Foundation Accordion\', \'' + foundationAccordion_popup + '\')"' : '') + '>' + foundationAccordion_content + '</textarea></td><td><input type="button" class="foundationAccordion_remove" value="x" onclick="foundationAccordion_remove(this)" /></td></tr>'
}
}
foundationAccordion_wrapper.getElementsByTagName('tbody')[0].innerHTML = foundationAccordion_item
}
else {
foundationAccordion_wrapper.getElementsByTagName('tbody')[0].innerHTML = foundationAccordion_template()
}
}
}]
}],
onLoad: function() {
for (var foundationAccordion_a = 0; foundationAccordion_a < CKEDITOR.dialog.getCurrent()._.element.$.getElementsByTagName('div').length; foundationAccordion_a++) {
if (CKEDITOR.dialog.getCurrent()._.element.$.getElementsByTagName('div')[foundationAccordion_a].id == 'foundationAccordion_Container') {
foundationAccordion_wrapper = CKEDITOR.dialog.getCurrent()._.element.$.getElementsByTagName('div')[foundationAccordion_a]
}
}
foundationAccordion_managePopupTitle = editor.config.foundationAccordion_managePopupTitle;
foundationAccordion_managePopupContent = editor.config.foundationAccordion_managePopupContent;
foundationAccordion_deleteMessage = editor.lang.foundationAccordion.delete;
foundationAccordion_minimum = editor.lang.foundationAccordion.minimum
}
}
});
})(jQuery, Drupal, CKEDITOR);
js/plugins/foundation/foundationAccordion/icons/foundationAccordion.png

450 B

CKEDITOR.plugins.setLang('foundationAccordion', 'af', {//afrikaan
plugin : 'Foundation Dion',
title : 'Titel',
content : 'Inhoud',
htmlIsAllowed : 'HTML Word Toegelaat',
addNewItem : 'Voeg Nuwe Item',
minimum : 'Plugin moet ten minste 1 item bevat',
link : 'Link',
style : 'Style',
type : 'Tipe',
size : 'Grootte',
blockLevel : 'Blok Vlak',
active : 'Aktiewe',
enabled : 'In Staat Gestel Om',
text : 'Teks',
preview : 'Voorskou',
optional : 'Opsionele',
badge : 'Badge',
caption : 'Onderskrif',
image : 'Image',
delete : 'Is jy seker jy wil hierdie item uitvee?'
});
\ No newline at end of file
CKEDITOR.plugins.setLang('foundationAccordion', 'ar', { //arabic
plugin : 'مؤسسة الأكورديون',
title : 'لقب',
content : 'مضمون',
htmlIsAllowed : 'يسمح HTML',
addNewItem : 'إضافة عنصر جديد',
minimum : 'يجب أن يحتوي على البرنامج المساعد على الأقل 1 البند',
link : 'صلة',
style : 'أسلوب',
type : 'نوع',
size : 'حجم',
blockLevel : 'كتلة المستوى',
active : 'نشط',
enabled : 'تمكين',
text : 'نص',
preview : 'معاينة',
optional : 'اختياري',
badge : 'شارة',
caption : 'شرح',
image : 'صورة',
delete : 'هل أنت متأكد أنك تريد حذف هذا البند؟'
});
\ No newline at end of file
CKEDITOR.plugins.setLang('foundationAccordion', 'bg', {//bulgarian
plugin : 'Фондация акордеон',
title : 'заглавие',
content : 'съдържание',
htmlIsAllowed : 'HTML е позволено',
addNewItem : 'Нова позиция',
minimum : 'Plugin трябва да съдържа най-малко 1 брой',
link : 'връзка',
style : 'стил',
type : 'тип',
size : 'размер',
blockLevel : 'Block Level',
active : 'активен',
enabled : 'Enabled',
text : 'текст',
preview : 'предварителен преглед',
optional : 'по избор',
badge : 'значка',
caption : 'Надпис',
image : 'изображение',
delete : 'Сигурни ли сте, че искате да изтриете този елемент?'
});
\ No newline at end of file
CKEDITOR.plugins.setLang('foundationAccordion', 'bn', {//bengali
plugin : 'ফাউন্ডেশন অ্যাকর্ডিয়ন',
title : 'খেতাব',
content : 'বিষয়বস্তু',
htmlIsAllowed : 'এইচটিএমএল অনুমতি দেওয়া হয়',
addNewItem : 'নতুন আইটেম যোগ করুন',
minimum : 'প্লাগইন অন্তত 1 আইটেম ধারণ করতে হবে',
link : 'লিংক',
style : 'শৈলী',
type : 'আদর্শ',
size : 'আয়তন',
blockLevel : 'ব্লক শ্রেনী',
active : 'সক্রিয়',
enabled : 'সক্রিয়',
text : 'পাঠ',
preview : 'সম্পূর্ণ বিবরণের পূর্বরূপ দেখুন',
optional : 'ঐচ্ছিক',
badge : 'ব্যাজ',
caption : 'ক্যাপশন',
image : 'ভাবমূর্তি',
delete : 'আপনি এই আইটেমটি মুছে ফেলতে চান আপনি কি নিশ্চিত?'
});
\ No newline at end of file
CKEDITOR.plugins.setLang('foundationAccordion', 'bs', {//bosnian
plugin : 'Fondacija Harmonika',
title : 'Naslov',
content : 'Sadržaj',
htmlIsAllowed : 'HTML je dozvoljeno',
addNewItem : 'Dodaj Novi Item',
minimum : 'Plugin mora sadržavati najmanje 1 stavka',
link : 'Link',
style : 'Stil',
type : 'Tip',
size : 'Veličina',
blockLevel : 'Blok Level',
active : 'Aktivan',
enabled : 'Omogućeno',
text : 'Tekst',
preview : 'Preview',
optional : 'Neobavezan',
badge : 'Značka',
caption : 'Naslov',
image : 'Slika',
delete : 'Jeste li sigurni da želite obrisati ovu stavku?'
});
\ No newline at end of file
CKEDITOR.plugins.setLang('foundationAccordion', 'ca', {//catalan
plugin : 'Fundació Acordió',
title : 'Títol',
content : 'Contingut',
htmlIsAllowed : 'HTML és Permès',
addNewItem : 'Afegir Nou Element',
minimum : 'Plugin ha de contenir almenys 1 membre',
link : 'Enllaç',
style : 'Estil',
type : 'Tipus',
size : 'Mida',
blockLevel : 'Nivell De Bloc',
active : 'Actiu',
enabled : 'Activat',
text : 'Text',
preview : 'Preestrena',
optional : 'Opcional',
badge : 'Divisa',
caption : 'Subtítol',
image : 'Imatge',
delete : 'Segur que vols esborrar aquest article?'
});
\ No newline at end of file
CKEDITOR.plugins.setLang('foundationAccordion', 'cs', {//czech
plugin : 'Nadace Accordion',
title : 'název',
content : 'obsah',
htmlIsAllowed : 'HTML Je Povoleno',
addNewItem : 'Přidat Novou Položku',
minimum : 'Plugin musí obsahovat alespoň 1 položka',
link : 'Odkaz',
style : 'Styl',
type : 'Typ',
size : 'Velikost',
blockLevel : 'Block Level',
active : 'Aktivní',
enabled : 'Povoleno',
text : 'Text',
preview : 'Preview',
optional : 'Volitelný',
badge : 'Odznak',
caption : 'Titulek',
image : 'Obraz',
delete : 'Jste si jisti, že chcete tuto položku smazat?'
});
\ No newline at end of file
CKEDITOR.plugins.setLang('foundationAccordion', 'cy', {//welsh
plugin : 'Acordion Sylfaen',
title : 'Teitl',
content : 'cynnwys',
htmlIsAllowed : 'HTML Yn Cael Ei Allowed',
addNewItem : 'Ychwanegu Eitem Newydd',
minimum : 'Rhaid ategyn gynnwys o leiaf 1 eitem',
link : 'Cyswllt',
style : 'Arddull',
type : 'Math',
size : 'Maint',
blockLevel : 'Bloc Lefel',
active : 'Active',
enabled : 'Galluogwyd',
text : 'Testun',
preview : 'Rhagolwg',
optional : 'Dewisol',
badge : 'Bathodyn',
caption : 'Geiriad',
image : 'Delwedd',
delete : 'Ydych chi\'n siŵr eich bod am ddileu\'r eitem hon?'
});
\ No newline at end of file
CKEDITOR.plugins.setLang('foundationAccordion', 'da', {//danish
plugin : 'Foundation Harmonika',
title : 'Titel',
content : 'Indhold',
htmlIsAllowed : 'HTML er tilladt',
addNewItem : 'Tilføj nyt element',
minimum : 'Plugin skal indeholde mindst 1 emne',
link : 'Link',
style : 'Stil',
type : 'Type',
size : 'Størrelse',
blockLevel : 'Block Level',
active : 'Aktiv',
enabled : 'Aktiveret',
text : 'Tekst',
preview : 'Eksempel',
optional : 'Valgfri',
badge : 'Badge',
caption : 'Caption',
image : 'Billede',
delete : 'Er du sikker på du vil slette denne genstand?'
});
\ No newline at end of file
CKEDITOR.plugins.setLang('foundationAccordion', 'de', {//german
plugin : 'Stiftung Akkordeon',
title : 'Titel',
content : 'Inhalt',
htmlIsAllowed : 'HTML ist erlaubt',
addNewItem : 'Neues Element hinzufügen',
minimum : 'Plugin muss mindestens 1 Artikel enthalten',
link : 'Link',
style : 'Stil',
type : 'Art',
size : 'Größe',
blockLevel : 'Block Level',
active : 'Aktiv',
enabled : 'Aktiviert',
text : 'Text',
preview : 'Vorschau',
optional : 'Fakultativ',
badge : 'Abzeichen',
caption : 'Bildunterschrift',
image : 'Bild',
delete : 'Sind Sie sicher, Sie wollen diesen Inhalt löschen?'
});
\ No newline at end of file
CKEDITOR.plugins.setLang('bootstrapCarousel', 'el', {//greek
plugin : 'MJ ακορντεόν',
title : 'Τίτλος',
content : 'Περιεχόμενο',
htmlIsAllowed : 'Επιτρέπεται HTML κώδικας',
addNewItem : 'Προσθήκη νέου στοιχείου',
minimum : 'Το Plugin πρέπει να περιέχει τουλάχιστον 1 στοιχείο',
link : 'Σύνδεσμος',
style : 'Στυλ',
type : 'Τύπος',
size : 'Μέγεθος',
blockLevel : 'Block Επίπεδο',
active : 'Ενεργό',
enabled : 'Ενεργοποιήθηκε',
text : 'Κείμενο',
preview : 'Προεπισκόπηση',
optional : 'Προαιρετικό',
badge : 'Σήμα',
caption : 'Λεζάντα',
image : 'Εικόνα',
delete : 'Είστε σίγουροι ότι θέλετε να διαγράψετε αυτό το στοιχείο;'
});
\ No newline at end of file
CKEDITOR.plugins.setLang('foundationAccordion', 'en-au', {
plugin : 'Foundation Accordion',
title : 'Title',
content : 'Content',
htmlIsAllowed : 'HTML is Allowed',
addNewItem : 'Add New Item',
minimum : 'Plugin must contain at least 1 item',
link : 'Link',
style : 'Style',
type : 'Type',
size : 'Size',
blockLevel : 'Block Level',
active : 'Active',
enabled : 'Enabled',
text : 'Text',
preview : 'Preview',
optional : 'Optional',
badge : 'Badge',
caption : 'Caption',
image : 'Image',
delete : 'Are you sure you want to delete this item?'
});
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment