%PDF- %GIF98; %PNG;
Server : ApacheSystem : Linux sh00666.bluehost.com 5.14.0-687.26.1.el9_8.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Jul 14 16:32:02 EDT 2026 x86_64 User : ndkhermy ( 1200) PHP Version : 8.5.12 Disable Function : NONE Directory : /home1/ndkhermy/public_html/website_6031bb72/admin/ckeditor/plugins/tangy-gps/ |
Upload File : |
CKEDITOR.plugins.add( 'tangy-gps', {
requires: 'widget',
icons: 'tangy-gps',
init: function( editor ) {
CKEDITOR.dialog.add( 'tangy-gps', this.path + 'dialogs/tangy-gps.js' );
editor.widgets.add( 'tangy-gps', {
allowedContent:
'div(!tangy-gps,align-left,align-right,align-center){width};' +
'div(!tangy-gps-content); h2(!tangy-gps-title); tangy-section();',
requiredContent: 'div(tangy-gps)',
template:
'<tangy-gps></tangy-gps>',
button: 'Create a tangy-gps',
dialog: 'tangy-gps',
upcast: function( element ) {
return element.name == 'tangy-gps' ;
},
init: function() {
this.setData('name', this.element.$.name)
if (this.element.$.required) {
this.setData('required', 'required')
} else {
this.setData('required', 'not-required')
}
},
data: function() {
this.element.$.setAttribute('name', this.data.name)
if (this.data.required === 'required') {
this.element.$.setAttribute('required', true)
} else {
this.element.$.removeAttribute('required')
}
}
} );
}
} );