From d351e45604f192df6ef710d476a8e529fefa73bf Mon Sep 17 00:00:00 2001
From: chai
- This sample shows how to create and destroy CKEditor instances on the fly. After the removal of CKEditor the content created inside the editing
- area will be displayed in a
- For details of how to create this setup check the source code of this sample page
- for JavaScript code responsible for the creation and destruction of a CKEditor instance.
- Click the buttons to create and remove a CKEditor instance.
-
-
-
- This sample shows how to use the
- CKEditor JavaScript API
- to interact with the editor at runtime.
-
- For details on how to create this setup check the source code of this sample page.
-
- The
- This sample page demonstrates the idea of Advanced Content Filter
- (ACF), a sophisticated
- tool that takes control over what kind of data is accepted by the editor and what
- kind of output is produced.
-
- ACF controls
- every single source of data that comes to the editor.
- It process both HTML that is inserted manually (i.e. pasted by the user)
- and programmatically like:
-
- ACF discards invalid,
- useless HTML tags and attributes so the editor remains "clean" during
- runtime. ACF behaviour
- can be configured and adjusted for a particular case to prevent the
- output HTML (i.e. in CMS systems) from being polluted.
-
- This kind of filtering is a first, client-side line of defense
- against "tag soups",
- the tool that precisely restricts which tags, attributes and styles
- are allowed (desired). When properly configured, ACF
- is an easy and fast way to produce a high-quality, intentionally filtered HTML.
-
- Advanced Content Filter is enabled by default, working in "automatic mode", yet
- it provides a set of easy rules that allow adjusting filtering rules
- and disabling the entire feature when necessary. The config property
- responsible for this feature is
- By "automatic mode" is meant that loaded plugins decide which kind
- of content is enabled and which is not. For example, if the link
- plugin is loaded it implies that
- Let's assume our intention is to restrict the editor to accept (produce) paragraphs
- only: no attributes, no styles, no other tags.
- With ACF
- this is very simple. Basically set
- Now try to play with allowed content:
-
- What happened? Since
- This is just a small sample of what ACF
- can do. To know more, please refer to the sample section below and
- the official Advanced Content Filter guide.
-
- You may, of course, want CKEditor to avoid filtering of any kind.
- To get rid of ACF,
- basically set
- ACF is far more than
- I/O control: the entire
- UI of the editor is adjusted to what
- filters restrict. For example: if
- CKEditor can be far more specific. If
- There are several editor instances below that present different
- ACF setups. All of them,
- except the inline instance, share the same HTML content to visualize
- how different filtering rules affect the same input data.
-
- This editor is using default configuration ("automatic mode"). It means that
-
- This editor is using a custom configuration for
- ACF:
-
- The following rules may require additional explanation:
-
- Please note that UI of the
- editor is different. It's a response to what happened to the filters.
- Since
- This editor is using a custom configuration for
- ACF.
- Note that filters can be configured as an object literal
- as an alternative to a string-based definition.
-
- This editor is using a custom set of plugins and buttons.
-
- As you can see, removing plugins and buttons implies filtering.
- Several tags are not allowed in the editor because there's no
- plugin/button that is responsible for creating and editing this
- kind of content (for example: the image is missing because
- of
- This editor is built on editable
- ACF makes sure that
- no disallowed tags will come to
- This editor is using a custom configuration for ACF.
- It's using the
- Disallowed Content property of the filter to eliminate all
- This editor is using a custom configuration for ACF.
- It's using the
- Disallowed Content property of the filter to eliminate all
- This sample shows how to use the
- CKEditor Dialog API
- to customize CKEditor dialog windows without changing the original editor code.
- The following customizations are being done in the example below:
-
- For details on how to create this setup check the source code of this sample page.
- A custom dialog is added to the editors using the The below editor modify the dialog definition of the above added dialog using the
- This sample shows how to automatically replace
- For details on how to create this setup check the source code of this sample page.
-
- Double-click any of the following
- Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Cras et ipsum quis mi
- semper accumsan. Integer pretium dui id massa. Suspendisse in nisl sit amet urna
- rutrum imperdiet. Nulla eu tellus. Donec ante nisi, ullamcorper quis, fringilla
- nec, sagittis eleifend, pede. Nulla commodo interdum massa. Donec id metus. Fusce
- eu ipsum. Suspendisse auctor. Phasellus fermentum porttitor risus.
-
- Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Cras et ipsum quis mi
- semper accumsan. Integer pretium dui id massa. Suspendisse in nisl sit amet urna
- rutrum imperdiet. Nulla eu tellus. Donec ante nisi, ullamcorper quis, fringilla
- nec, sagittis eleifend, pede. Nulla commodo interdum massa. Donec id metus. Fusce
- eu ipsum. Suspendisse auctor. Phasellus fermentum porttitor risus.
-
- Donec velit. Mauris massa. Vestibulum non nulla. Nam suscipit arcu nec elit. Phasellus
- sollicitudin iaculis ante. Ut non mauris et sapien tincidunt adipiscing. Vestibulum
- vitae leo. Suspendisse nec mi tristique nulla laoreet vulputate.
-
- Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Cras et ipsum quis mi
- semper accumsan. Integer pretium dui id massa. Suspendisse in nisl sit amet urna
- rutrum imperdiet. Nulla eu tellus. Donec ante nisi, ullamcorper quis, fringilla
- nec, sagittis eleifend, pede. Nulla commodo interdum massa. Donec id metus. Fusce
- eu ipsum. Suspendisse auctor. Phasellus fermentum porttitor risus.
-
- This sample shows how to configure the Enter and Shift+Enter keys
- to perform actions specified in the
-
- The sample code below shows how to configure CKEditor to create a
- Note that
- This sample shows how to configure CKEditor to output
- HTML code that can be used with
-
- Adobe Flash.
- The code will contain a subset of standard HTML elements like
- To add a CKEditor instance outputting Flash compliant HTML code, load the editor using a standard
- JavaScript call, and define CKEditor features to use HTML elements and attributes.
-
- For details on how to create this setup check the source code of this sample page.
-
- To see how it works, create some content in the editing area of CKEditor on the left
- and send it to the Flash object on the right side of the page by using the
- Send to Flash button.
-
-
-
- This sample shows how to configure CKEditor to output valid
- HTML 4.01 code.
- Traditional HTML elements like
- To add a CKEditor instance outputting legacy HTML 4.01 code, load the editor using a standard
- JavaScript call, and define CKEditor features to use the HTML compliant elements and attributes.
-
- A snippet of the configuration code can be seen below; check the source of this page for
- full definition:
- This sample page demonstrates the inline editing feature - CKEditor instances will be created automatically from page elements with contentEditable attribute set to value true: Click inside of any element below to start editing.
- Lorem ipsum dolor sit amet enim. Etiam ullamcorper. Suspendisse a pellentesque dui, non felis. Maecenas malesuada elit lectus felis, malesuada ultricies.
-
- Curabitur et ligula. Ut molestie a, ultricies porta urna. Vestibulum commodo volutpat a, convallis ac, laoreet enim. Phasellus fermentum in, dolor. Pellentesque facilisis. Nulla imperdiet sit amet magna. Vestibulum dapibus, mauris nec malesuada fames ac.
-
-
- Lorem ipsum dolor sit amet dolor. Duis blandit vestibulum faucibus a, tortor.
-
-
- Proin nunc justo felis mollis tincidunt, risus risus pede, posuere cubilia Curae, Nullam euismod, enim. Etiam nibh ultricies dolor ac dignissim erat volutpat. Vivamus fermentum nisl nulla sem in metus. Maecenas wisi. Donec nec erat volutpat.
-
- Fusce vitae porttitor a, euismod convallis nisl, blandit risus tortor, pretium.
- Vehicula vitae, imperdiet vel, ornare enim vel sodales rutrum
-
- Libero nunc, rhoncus ante ipsum non ipsum. Nunc eleifend pede turpis id sollicitudin fringilla. Phasellus ultrices, velit ac arcu.
- Pellentesque nunc. Donec suscipit erat. Pellentesque habitant morbi tristique ullamcorper.
- Aenean nonummy a, mattis varius. Cras aliquet.
- Praesent magna non mattis ac, rhoncus nunc, rhoncus eget, cursus pulvinar mollis. Proin id nibh. Sed eu libero posuere sed, lectus. Phasellus dui gravida gravida feugiat mattis ac, felis. Integer condimentum sit amet, tempor elit odio, a dolor non ante at sapien. Sed ac lectus. Nulla ligula quis eleifend mi, id leo velit pede cursus arcu id nulla ac lectus. Phasellus vestibulum. Nunc viverra enim quis diam. Donec ullamcorper, risus tortor, pretium porttitor. Morbi quam quis lectus non leo. Integer faucibus scelerisque. Proin faucibus at, aliquet vulputate, odio at eros. Fusce gravida, erat vitae augue. Fusce urna fringilla gravida. In hac habitasse platea dictumst. Praesent wisi accumsan sit amet nibh. Maecenas orci luctus a, lacinia quam sem, posuere commodo, odio condimentum tempor, pede semper risus. Suspendisse pede. In hac habitasse platea dictumst. Nam sed laoreet sit amet erat. Integer.
- Quisque justo neque, mattis sed, fermentum ultrices posuere cubilia Curae, Vestibulum elit metus, quis placerat ut, lectus. Ut sagittis, nunc libero, egestas consequat lobortis velit rutrum ut, faucibus turpis. Fusce porttitor, nulla quis turpis. Nullam laoreet vel, consectetuer tellus suscipit ultricies, hendrerit wisi. Donec odio nec velit ac nunc sit amet, accumsan cursus aliquet. Vestibulum ante sit amet sagittis mi. Quisque justo neque, mattis sed, fermentum ultrices posuere cubilia Curae, Vestibulum elit metus, quis placerat ut, lectus. Nullam laoreet vel, consectetuer tellus suscipit ultricies, hendrerit wisi. Ut sagittis, nunc libero, egestas consequat lobortis velit rutrum ut, faucibus turpis. Fusce porttitor, nulla quis turpis. Donec odio nec velit ac nunc sit amet, accumsan cursus aliquet. Vestibulum ante sit amet sagittis mi. Sed in nonummy faucibus turpis. Mauris eget tellus. Donec non felis. Nam eget dolor. Vestibulum enim. Donec.
- inline, editing, floating, CKEditor
-
- This sample shows how to create an inline editor instance of CKEditor. It is created
- with a JavaScript call using the following code:
-
- Note that Apollo 11 was the spaceflight that landed the first humans, Americans Neil Armstrong and Buzz Aldrin, on the Moon on July 20, 1969, at 20:18 UTC. Armstrong became the first to step onto the lunar surface 6 hours later on July 21 at 02:56 UTC. Armstrong spent about Broadcast on live TV to a world-wide audience, Armstrong stepped onto the lunar surface and described the event as: One small step for [a] man, one giant leap for mankind. Apollo 11 effectively ended the Space Race and fulfilled a national goal proposed in 1961 by the late U.S. President John F. Kennedy in a speech before the United States Congress: [...] before this decade is out, of landing a man on the Moon and returning him safely to the Earth. Launched by a Saturn V rocket from Kennedy Space Center in Merritt Island, Florida on July 16, Apollo 11 was the fifth manned mission of NASA's Apollo program. The Apollo spacecraft had three parts: After being sent to the Moon by the Saturn V's upper stage, the astronauts separated the spacecraft from it and travelled for three days until they entered into lunar orbit. Armstrong and Aldrin then moved into the Lunar Module and landed in the Sea of Tranquility. They stayed a total of about 21 and a half hours on the lunar surface. After lifting off in the upper part of the Lunar Module and rejoining Collins in the Command Module, they returned to Earth and landed in the Pacific Ocean on July 24. Source: Wikipedia.org
- You can also create an inline editor from a
- This sample shows the advantages of Magicline plugin
- which is to enhance the editing process. Thanks to this plugin,
- a number of difficult focus spaces which are inaccessible due to
- browser issues can now be focused.
-
- Magicline plugin shows a red line with a handler
- which, when clicked, inserts a paragraph and allows typing. To see this,
- focus an editor and move your mouse above the focus space you want
- to access. The plugin is enabled by default so no additional
- configuration is necessary.
-
- This editor uses a default Magicline setup.
-
- This editor is using a blue line.
-
- This sample shows how to use the
-
- For details on how to create this setup check the source code of this sample page.
-
- This sample shows how to automatically replace all
- To replace a
- Note that other
- CKEditor Samples » Create and Destroy Editor Instances for Ajax Applications
-
- <div> element.
-
- CKEditor Samples » Using CKEditor JavaScript API
-
-
- CKEditor Samples » Append To Page Element Using JavaScript Code
-
- CKEDITOR.appendTo() method serves to to place editors inside existing DOM elements. Unlike CKEDITOR.replace(),
- a target container to be replaced is no longer necessary. A new editor
- instance is inserted directly wherever it is desired.
- CKEDITOR.appendTo( 'container_id',
- { /* Configuration options to be used. */ }
- 'Editor content to be used.'
-);
-
-
-
-
diff --git a/cgi-bin/html/ckeditor/samples/old/assets/inlineall/logo.png b/cgi-bin/html/ckeditor/samples/old/assets/inlineall/logo.png
deleted file mode 100644
index b4d5979..0000000
Binary files a/cgi-bin/html/ckeditor/samples/old/assets/inlineall/logo.png and /dev/null differ
diff --git a/cgi-bin/html/ckeditor/samples/old/assets/outputxhtml/outputxhtml.css b/cgi-bin/html/ckeditor/samples/old/assets/outputxhtml/outputxhtml.css
deleted file mode 100644
index 726d95c..0000000
--- a/cgi-bin/html/ckeditor/samples/old/assets/outputxhtml/outputxhtml.css
+++ /dev/null
@@ -1,204 +0,0 @@
-/*
- * Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
- *
- * Styles used by the XHTML 1.1 sample page (xhtml.html).
- */
-
-/**
- * Basic definitions for the editing area.
- */
-body
-{
- font-family: Arial, Verdana, sans-serif;
- font-size: 80%;
- color: #000000;
- background-color: #ffffff;
- padding: 5px;
- margin: 0px;
-}
-
-/**
- * Core styles.
- */
-
-.Bold
-{
- font-weight: bold;
-}
-
-.Italic
-{
- font-style: italic;
-}
-
-.Underline
-{
- text-decoration: underline;
-}
-
-.StrikeThrough
-{
- text-decoration: line-through;
-}
-
-.Subscript
-{
- vertical-align: sub;
- font-size: smaller;
-}
-
-.Superscript
-{
- vertical-align: super;
- font-size: smaller;
-}
-
-/**
- * Font faces.
- */
-
-.FontComic
-{
- font-family: 'Comic Sans MS';
-}
-
-.FontCourier
-{
- font-family: 'Courier New';
-}
-
-.FontTimes
-{
- font-family: 'Times New Roman';
-}
-
-/**
- * Font sizes.
- */
-
-.FontSmaller
-{
- font-size: smaller;
-}
-
-.FontLarger
-{
- font-size: larger;
-}
-
-.FontSmall
-{
- font-size: 8pt;
-}
-
-.FontBig
-{
- font-size: 14pt;
-}
-
-.FontDouble
-{
- font-size: 200%;
-}
-
-/**
- * Font colors.
- */
-.FontColor1
-{
- color: #ff9900;
-}
-
-.FontColor2
-{
- color: #0066cc;
-}
-
-.FontColor3
-{
- color: #ff0000;
-}
-
-.FontColor1BG
-{
- background-color: #ff9900;
-}
-
-.FontColor2BG
-{
- background-color: #0066cc;
-}
-
-.FontColor3BG
-{
- background-color: #ff0000;
-}
-
-/**
- * Indentation.
- */
-
-.Indent1
-{
- margin-left: 40px;
-}
-
-.Indent2
-{
- margin-left: 80px;
-}
-
-.Indent3
-{
- margin-left: 120px;
-}
-
-/**
- * Alignment.
- */
-
-.JustifyLeft
-{
- text-align: left;
-}
-
-.JustifyRight
-{
- text-align: right;
-}
-
-.JustifyCenter
-{
- text-align: center;
-}
-
-.JustifyFull
-{
- text-align: justify;
-}
-
-/**
- * Other.
- */
-
-code
-{
- font-family: courier, monospace;
- background-color: #eeeeee;
- padding-left: 1px;
- padding-right: 1px;
- border: #c0c0c0 1px solid;
-}
-
-kbd
-{
- padding: 0px 1px 0px 1px;
- border-width: 1px 2px 2px 1px;
- border-style: solid;
-}
-
-blockquote
-{
- color: #808080;
-}
diff --git a/cgi-bin/html/ckeditor/samples/old/assets/posteddata.php b/cgi-bin/html/ckeditor/samples/old/assets/posteddata.php
deleted file mode 100644
index b1e4baf..0000000
--- a/cgi-bin/html/ckeditor/samples/old/assets/posteddata.php
+++ /dev/null
@@ -1,59 +0,0 @@
-
-
-
-
-
-
- CKEditor — Posted Data
-
-
-
-
-
-
diff --git a/cgi-bin/html/ckeditor/samples/old/assets/sample.jpg b/cgi-bin/html/ckeditor/samples/old/assets/sample.jpg
deleted file mode 100644
index 9498271..0000000
Binary files a/cgi-bin/html/ckeditor/samples/old/assets/sample.jpg and /dev/null differ
diff --git a/cgi-bin/html/ckeditor/samples/old/assets/uilanguages/languages.js b/cgi-bin/html/ckeditor/samples/old/assets/uilanguages/languages.js
deleted file mode 100644
index b182fe7..0000000
--- a/cgi-bin/html/ckeditor/samples/old/assets/uilanguages/languages.js
+++ /dev/null
@@ -1,7 +0,0 @@
-/*
- Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
- For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
-*/
-var CKEDITOR_LANGS=function(){var c={af:"Afrikaans",ar:"Arabic",az:"Azerbaijani",bg:"Bulgarian",bn:"Bengali/Bangla",bs:"Bosnian",ca:"Catalan",cs:"Czech",cy:"Welsh",da:"Danish",de:"German","de-ch":"German (Switzerland)",el:"Greek",en:"English","en-au":"English (Australia)","en-ca":"English (Canadian)","en-gb":"English (United Kingdom)",eo:"Esperanto",es:"Spanish","es-mx":"Spanish (Mexico)",et:"Estonian",eu:"Basque",fa:"Persian",fi:"Finnish",fo:"Faroese",fr:"French","fr-ca":"French (Canada)",gl:"Galician",
-gu:"Gujarati",he:"Hebrew",hi:"Hindi",hr:"Croatian",hu:"Hungarian",id:"Indonesian",is:"Icelandic",it:"Italian",ja:"Japanese",ka:"Georgian",km:"Khmer",ko:"Korean",ku:"Kurdish",lt:"Lithuanian",lv:"Latvian",mk:"Macedonian",mn:"Mongolian",ms:"Malay",nb:"Norwegian Bokmal",nl:"Dutch",no:"Norwegian",oc:"Occitan",pl:"Polish",pt:"Portuguese (Portugal)","pt-br":"Portuguese (Brazil)",ro:"Romanian",ru:"Russian",si:"Sinhala",sk:"Slovak",sq:"Albanian",sl:"Slovenian",sr:"Serbian (Cyrillic)","sr-latn":"Serbian (Latin)",
-sv:"Swedish",th:"Thai",tr:"Turkish",tt:"Tatar",ug:"Uighur",uk:"Ukrainian",vi:"Vietnamese",zh:"Chinese Traditional","zh-cn":"Chinese Simplified"},b=[],a;for(a in CKEDITOR.lang.languages)b.push({code:a,name:c[a]||a});b.sort(function(a,b){return a.name
-
-
- $value )
- {
- if ( ( !is_string($value) && !is_numeric($value) ) || !is_string($key) )
- continue;
-
- if ( get_magic_quotes_gpc() )
- $value = htmlspecialchars( stripslashes((string)$value) );
- else
- $value = htmlspecialchars( (string)$value );
-?>
- Field Name
- Value
-
-
-
-
-
-
- CKEditor Samples » Data Filtering and Features Activation
-
- When and what is being filtered?
-
-editor.setData( '<p>Hello world!</p>' );
-
- How to configure or disable ACF?
- config.allowedContent.
- <a> tag is
- automatically allowed. Each plugin is given a set
- of predefined ACF rules
- that control the editor until
- config.allowedContent
- is defined manually.
-
- config.allowedContent to 'p':
-
-var editor = CKEDITOR.replace( textarea_id, {
- allowedContent: 'p'
-} );
-
-
-// Trying to insert disallowed tag and attribute.
-editor.setData( '<p style="color: red">Hello <em>world</em>!</p>' );
-alert( editor.getData() );
-
-// Filtered data is returned.
-"<p>Hello world!</p>"
-
- config.allowedContent: 'p' is set the editor assumes
- that only plain <p> are accepted. Nothing more. This is why
- style attribute and <em> tag are gone. The same
- filtering would happen if we pasted disallowed HTML into this editor.
-
- config.allowedContent to true like this:
-
-CKEDITOR.replace( textarea_id, {
- allowedContent: true
-} );
-
-
- Beyond data flow: Features activation
- <a> tag is
- disallowed
- by ACF,
- then accordingly link command, toolbar button and link dialog
- are also disabled. Editor is smart: it knows which features must be
- removed from the interface to match filtering rules.
- <a> tag is
- allowed by filtering rules to be used but it is restricted
- to have only one attribute (href)
- config.allowedContent = 'a[!href]', then
- "Target" tab of the link dialog is automatically disabled as target
- attribute isn't included in ACF rules
- for <a>. This behaviour applies to dialog fields, context
- menus and toolbar buttons.
- Sample configurations
-
- config.allowedContent is defined by loaded plugins.
- Each plugin extends filtering rules to make it's own associated content
- available for the user.
-
-
-
-CKEDITOR.replace( 'editor2', {
- allowedContent:
- 'h1 h2 h3 p blockquote strong em;' +
- 'a[!href];' +
- 'img(left,right)[!src,alt,width,height];' +
- 'table tr th td caption;' +
- 'span{!font-family};' +'
- 'span{!color};' +
- 'span(!marker);' +
- 'del ins'
-} );
-
-
-
- h1 h2 h3 p blockquote strong em - These tags
- are accepted by the editor. Any tag attributes will be discarded.
- a[!href] - href attribute is obligatory
- for <a> tag. Tags without this attribute
- are disarded. No other attribute will be accepted.
- img(left,right)[!src,alt,width,height] - src
- attribute is obligatory for <img> tag.
- alt, width, height
- and class attributes are accepted but
- class must be either class="left"
- or class="right"
- table tr th td caption - These tags
- are accepted by the editor. Any tag attributes will be discarded.
- span{!font-family}, span{!color},
- span(!marker) - <span> tags
- will be accepted if either font-family or
- color style is set or class="marker"
- is present.
- del ins - These tags
- are accepted by the editor. Any tag attributes will be discarded.
- text-align isn't allowed, the align toolbar is gone.
- The same thing happened to subscript/superscript, strike, underline
- (<u>, <sub>, <sup>
- are disallowed by
- config.allowedContent) and many other buttons.
-
-
-
-CKEDITOR.replace( 'editor3', {
- allowedContent: {
- 'b i ul ol big small': true,
- 'h1 h2 h3 p blockquote li': {
- styles: 'text-align'
- },
- a: { attributes: '!href,target' },
- img: {
- attributes: '!src,alt',
- styles: 'width,height',
- classes: 'left,right'
- }
- }
-} );
-
-
-
-
-CKEDITOR.replace( 'editor4', {
- removePlugins: 'bidi,font,forms,flash,horizontalrule,iframe,justify,table,tabletools,smiley',
- removeButtons: 'Anchor,Underline,Strike,Subscript,Superscript,Image',
- format_tags: 'p;h1;h2;h3;pre;address'
-} );
-
- removeButtons: 'Image'). The conclusion is that
- ACF works "backwards"
- as well: modifying UI
- elements is changing allowed content rules.
-
-
- <h1> element.
- ACF takes care of
- what can be included in <h1>. Note that there
- are no block styles in Styles combo. Also why lists, indentation,
- blockquote, div, form and other buttons are missing.
- <h1> so the final
- markup is valid. If the user tried to paste some invalid HTML
- into this editor (let's say a list), it would be automatically
- converted into plain text.
-
- Apollo 11 was the spaceflight that landed the first humans, Americans Neil Armstrong and Buzz Aldrin, on the Moon on July 20, 1969, at 20:18 UTC.
-
-
-
- title attributes.
-
-CKEDITOR.replace( 'editor6', {
- allowedContent: {
- 'b i ul ol big small': true,
- 'h1 h2 h3 p blockquote li': {
- styles: 'text-align'
- },
- a: {attributes: '!href,target'},
- img: {
- attributes: '!src,alt',
- styles: 'width,height',
- classes: 'left,right'
- }
- },
- disallowedContent: '*{title*}'
-} );
-
-
-
- a and img tags,
- while allowing all other tags.
-
-CKEDITOR.replace( 'editor7', {
- allowedContent: {
- // Allow all content.
- $1: {
- elements: CKEDITOR.dtd,
- attributes: true,
- styles: true,
- classes: true
- }
- },
- disallowedContent: 'img a'
-} );
-
-
- CKEditor Samples » Using CKEditor Dialog API
-
- pluginsLoaded event, from an external dialog definition file:
-
-
-
- dialogDefinition event:
-
-
-
-
-
-
diff --git a/cgi-bin/html/ckeditor/samples/old/divreplace.html b/cgi-bin/html/ckeditor/samples/old/divreplace.html
deleted file mode 100644
index 684ea88..0000000
--- a/cgi-bin/html/ckeditor/samples/old/divreplace.html
+++ /dev/null
@@ -1,144 +0,0 @@
-
-
-
-
-
-
- CKEditor Samples » Replace DIV with CKEditor on the Fly
-
- <div> elements
- with a CKEditor instance on the fly, following user's doubleclick. The content
- that was previously placed inside the <div> element will now
- be moved into CKEditor editing area.
- <div> elements to transform them into
- editor instances.
-
- Part 1
-
-
- Part 2
-
-
- Part 3
-
-
- CKEditor Samples » ENTER Key Configuration
-
- enterMode
- and shiftEnterMode
- parameters, respectively.
- You can choose from the following options:
-
-
- ENTER_P – new <p> paragraphs are created;ENTER_BR – lines are broken with <br> elements;ENTER_DIV – new <div> blocks are created.<div> block when Enter key is pressed.
-
-CKEDITOR.replace( 'textarea_id', {
- enterMode: CKEDITOR.ENTER_DIV
-});
- textarea_id in the code above is the id attribute of
- the <textarea> element to be replaced.
-
-
-
-
-
-
-
-
-
diff --git a/cgi-bin/html/ckeditor/samples/old/htmlwriter/assets/outputforflash/outputforflash.fla b/cgi-bin/html/ckeditor/samples/old/htmlwriter/assets/outputforflash/outputforflash.fla
deleted file mode 100644
index 27e68cc..0000000
Binary files a/cgi-bin/html/ckeditor/samples/old/htmlwriter/assets/outputforflash/outputforflash.fla and /dev/null differ
diff --git a/cgi-bin/html/ckeditor/samples/old/htmlwriter/assets/outputforflash/outputforflash.swf b/cgi-bin/html/ckeditor/samples/old/htmlwriter/assets/outputforflash/outputforflash.swf
deleted file mode 100644
index dbe17b6..0000000
Binary files a/cgi-bin/html/ckeditor/samples/old/htmlwriter/assets/outputforflash/outputforflash.swf and /dev/null differ
diff --git a/cgi-bin/html/ckeditor/samples/old/htmlwriter/assets/outputforflash/swfobject.js b/cgi-bin/html/ckeditor/samples/old/htmlwriter/assets/outputforflash/swfobject.js
deleted file mode 100644
index 0700921..0000000
--- a/cgi-bin/html/ckeditor/samples/old/htmlwriter/assets/outputforflash/swfobject.js
+++ /dev/null
@@ -1,19 +0,0 @@
-var swfobject=function(){function w(){if(!u){try{var a=d.getElementsByTagName("body")[0].appendChild(d.createElement("span"));a.parentNode.removeChild(a)}catch(b){return}u=!0;for(var a=z.length,c=0;cf){f++;setTimeout(arguments.callee,10);return}a.removeChild(b);c=null;E()})()}else E()}
-function E(){var a=r.length;if(0e.wk)if(r[b].expressInstall&&F()){g={};g.data=r[b].expressInstall;g.width=d.getAttribute("width")||"0";g.height=d.getAttribute("height")||"0";d.getAttribute("class")&&(g.styleclass=d.getAttribute("class"));d.getAttribute("align")&&(g.align=d.getAttribute("align"));for(var h={},d=d.getElementsByTagName("param"),k=d.length,l=0;l<
-k;l++)"movie"!=d[l].getAttribute("name").toLowerCase()&&(h[d[l].getAttribute("name")]=d[l].getAttribute("value"));G(g,h,c,f)}else W(d),f&&f(g);else v(c,!0),f&&(g.success=!0,g.ref=H(c),f(g))}else v(c,!0),f&&((c=H(c))&&"undefined"!=typeof c.SetVariable&&(g.success=!0,g.ref=c),f(g))}}function H(a){var b=null;(a=p(a))&&"OBJECT"==a.nodeName&&("undefined"!=typeof a.SetVariable?b=a:(a=a.getElementsByTagName("object")[0])&&(b=a));return b}function F(){return!B&&A("6.0.65")&&(e.win||e.mac)&&!(e.wk&&312>e.wk)}
-function G(a,b,c,f){B=!0;I=f||null;O={success:!1,id:c};var g=p(c);if(g){"OBJECT"==g.nodeName?(y=J(g),C=null):(y=g,C=c);a.id="SWFObjectExprInst";if("undefined"==typeof a.width||!/%$/.test(a.width)&&310>parseInt(a.width,10))a.width="310";if("undefined"==typeof a.height||!/%$/.test(a.height)&&137>parseInt(a.height,10))a.height="137";d.title=d.title.slice(0,47)+" - Flash Player Installation";f=e.ie&&e.win?"ActiveX":"PlugIn";f="MMredirectURL\x3d"+n.location.toString().replace(/&/g,"%26")+"\x26MMplayerType\x3d"+
-f+"\x26MMdoctitle\x3d"+d.title;b.flashvars="undefined"!=typeof b.flashvars?b.flashvars+("\x26"+f):f;e.ie&&e.win&&4!=g.readyState&&(f=d.createElement("div"),c+="SWFObjectNew",f.setAttribute("id",c),g.parentNode.insertBefore(f,g),g.style.display="none",function(){4==g.readyState?g.parentNode.removeChild(g):setTimeout(arguments.callee,10)}());K(a,b,c)}}function W(a){if(e.ie&&e.win&&4!=a.readyState){var b=d.createElement("div");a.parentNode.insertBefore(b,a);b.parentNode.replaceChild(J(a),b);a.style.display=
-"none";(function(){4==a.readyState?a.parentNode.removeChild(a):setTimeout(arguments.callee,10)})()}else a.parentNode.replaceChild(J(a),a)}function J(a){var b=d.createElement("div");if(e.win&&e.ie)b.innerHTML=a.innerHTML;else if(a=a.getElementsByTagName("object")[0])if(a=a.childNodes)for(var c=a.length,f=0;f
- CKEditor Samples » Producing Flash Compliant HTML Output
-
- <b>,
- <i>, and <p> as well as HTML attributes.
-
-
-
-
-
diff --git a/cgi-bin/html/ckeditor/samples/old/htmlwriter/outputhtml.html b/cgi-bin/html/ckeditor/samples/old/htmlwriter/outputhtml.html
deleted file mode 100644
index f95085d..0000000
--- a/cgi-bin/html/ckeditor/samples/old/htmlwriter/outputhtml.html
+++ /dev/null
@@ -1,224 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- CKEditor Samples » Producing HTML Compliant Output
-
- <b>,
- <i>, and <font> are used in place of
- <strong>, <em>, and CSS styles.
-
-CKEDITOR.replace( 'textarea_id', {
- coreStyles_bold: { element: 'b' },
- coreStyles_italic: { element: 'i' },
-
- fontSize_style: {
- element: 'font',
- attributes: { 'size': '#(size)' }
- }
-
- ...
-});
-
- CKEditor Samples
-
-
- Basic Samples
-
-
-
-
-
- Basic Customization
-
-
-
-
-
- Plugins
-
-
-
- Inline Editing
-
-
-
-
- contentEditable = true attribute into inline editors.
- Advanced Samples
-
-
-
- div element into an instance of CKEditor with a mouse click.CKEditor Samples » Massive inline editing
- <div contenteditable="true" > ... </div>
-
- CKEditor
-
Goes Inline!
-
- Lorem ipsum dolor sit amet dolor duis blandit vestibulum faucibus a, tortor.
-
-
- Fusce vitae porttitor
-
-
-
-
-
- Mauris mattis feugiat lectus nec mauris. Nullam vitae ante.
- Integer condimentum sit amet
-
-
- Praesent wisi accumsan sit amet nibh
-
-
-
- Nullam laoreet vel consectetuer tellus suscipit
-
-
-
-
- CKEditor Samples » Inline Editing by Code
-
-
-// This property tells CKEditor to not activate every element with contenteditable=true element.
-CKEDITOR.disableAutoInline = true;
-
-var editor = CKEDITOR.inline( document.getElementById( 'editable' ) );
-
- editable in the code above is the id
- attribute of the <div> element to be converted into an inline instance.
-
-
-
Apollo 11three and a half two and a half hours outside the spacecraft, Aldrin slightly less; and together they collected 47.5 pounds (21.5 kg) of lunar material for return to Earth. A third member of the mission, Michael Collins, piloted the command spacecraft alone in lunar orbit until Armstrong and Aldrin returned to it for the trip back to Earth.Broadcasting and quotes
-
-
-
-
-
-
-
- Technical details
-
-
-
-
-
-
-
-
- Position
- Astronaut
-
-
- Commander
- Neil A. Armstrong
-
-
- Command Module Pilot
- Michael Collins
-
-
-
- Lunar Module Pilot
- Edwin "Buzz" E. Aldrin, Jr.
-
-
-
-
-
- CKEditor Samples » Replace Textarea with Inline Editor
-
- textarea
- element. In this case the textarea will be replaced
- by a div element with inline editing enabled.
-
-// "article-body" is the name of a textarea element.
-var editor = CKEDITOR.inline( 'article-body' );
-
-
- CKEditor Samples » Create Editors with jQuery
-
-
- CKEditor Samples » Using Magicline plugin
-
-
-
-CKEDITOR.replace( 'editor2', {
- magicline_color: 'blue'
-});
-
- CKEditor Samples » Using the CKEditor Read-Only API
-
- setReadOnly
- API to put editor into the read-only state that makes it impossible for users to change the editor contents.
-
- CKEditor Samples » Replace Textarea Elements by Class Name
-
- <textarea> elements
- of a given class with a CKEditor instance.
- <textarea> element, simply assign it the ckeditor
- class, as in the code below:
-
-<textarea class="ckeditor" name="editor1"></textarea>
-
- <textarea> attributes (like id or name) need to be adjusted to your document.
-
- CKEditor Samples » Replace Textarea Elements Using JavaScript Code
-
- ' + requires[ i ] + '' );
- }
-
- if ( missing.length ) {
- var warn = CKEDITOR.dom.element.createFromHtml(
- '
-
--------------------------------------------------------------------------------------------
- CKEditor - Posted Data
-
- We are sorry, but your Web server does not support the PHP language used in this script.
-
- Please note that CKEditor can be used with any other server-side language than just PHP.
- To save the content created with CKEditor you need to read the POST data on the server
- side and write it to a file or the database.
-
- Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
- For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
--------------------------------------------------------------------------------------------
-
-
- This sample shows how tab key navigation among editor instances is
- affected by the tabIndex attribute from
- the original page element. Use TAB key to move between the editors.
-
- -
- -- -
-- -
- -*/ include "assets/posteddata.php"; ?> diff --git a/cgi-bin/html/ckeditor/samples/old/tabindex.html b/cgi-bin/html/ckeditor/samples/old/tabindex.html deleted file mode 100644 index 8c79e48..0000000 --- a/cgi-bin/html/ckeditor/samples/old/tabindex.html +++ /dev/null @@ -1,78 +0,0 @@ - - - -
- -
- - - - - -
-