????JFIF??x?x????'
Server IP : 79.136.114.73 / Your IP : 3.141.35.52 Web Server : Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.29 OpenSSL/1.0.1f System : Linux b8009 3.13.0-170-generic #220-Ubuntu SMP Thu May 9 12:40:49 UTC 2019 x86_64 User : www-data ( 33) PHP Version : 5.5.9-1ubuntu4.29 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /var/www/www.biminfo.se/vatternkajak.se/ckeditor/_source/plugins/link/dialogs/ |
Upload File : |
/* Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.dialog.add( 'anchor', function( editor ) { // Function called in onShow to load selected element. var loadElements = function( editor, selection, element ) { this.editMode = true; this.editObj = element; var attributeValue = this.editObj.getAttribute( 'name' ); if ( attributeValue ) this.setValueOf( 'info','txtName', attributeValue ); else this.setValueOf( 'info','txtName', "" ); }; return { title : editor.lang.anchor.title, minWidth : 300, minHeight : 60, onOk : function() { // Always create a new anchor, because of IE BUG. var name = this.getValueOf( 'info', 'txtName' ), element = CKEDITOR.env.ie ? editor.document.createElement( '<a name="' + CKEDITOR.tools.htmlEncode( name ) + '">' ) : editor.document.createElement( 'a' ); // Move contents and attributes of old anchor to new anchor. if ( this.editMode ) { this.editObj.copyAttributes( element, { name : 1 } ); this.editObj.moveChildren( element ); } // Set name. element.data( 'cke-saved-name', false ); element.setAttribute( 'name', name ); // Insert a new anchor. var fakeElement = editor.createFakeElement( element, 'cke_anchor', 'anchor' ); if ( !this.editMode ) editor.insertElement( fakeElement ); else { fakeElement.replace( this.fakeObj ); editor.getSelection().selectElement( fakeElement ); } return true; }, onShow : function() { this.editObj = false; this.fakeObj = false; this.editMode = false; var selection = editor.getSelection(); var element = selection.getSelectedElement(); if ( element && element.data( 'cke-real-element-type' ) && element.data( 'cke-real-element-type' ) == 'anchor' ) { this.fakeObj = element; element = editor.restoreRealElement( this.fakeObj ); loadElements.apply( this, [ editor, selection, element ] ); selection.selectElement( this.fakeObj ); } this.getContentElement( 'info', 'txtName' ).focus(); }, contents : [ { id : 'info', label : editor.lang.anchor.title, accessKey : 'I', elements : [ { type : 'text', id : 'txtName', label : editor.lang.anchor.name, required: true, validate : function() { if ( !this.getValue() ) { alert( editor.lang.anchor.errorName ); return false; } return true; } } ] } ] }; } );