Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Some info for others try to write plugins for CKEditor 3.0.</p> <p>I've started by copying the source from plugins/flash and have now got a button with a youtube logo.... this is an extract from plugins/youtube/plugin.js</p> <pre><code>editor.ui.addButton( 'YouTube', { label : editor.lang.common.youtube, command : 'youtube', icon: this.path + 'images/youtube.gif' }); </code></pre> <p>Also you'll need to edit you language file.... e.g. lang/en.js</p> <p>Add your plugin name to the "common" section (this appears as a tooltip when you hover over the button) and add a whole block for your plugin, with all your strings, like this....</p> <pre><code>// YouTube Dialog youtube : { properties : 'YouTube Properties', propertiesTab : 'Properties', title : 'YouTube Properties', chkPlay : 'Auto Play', chkLoop : 'Loop', chkMenu : 'Enable YouTube Menu', chkFull : 'Allow Fullscreen', scale : 'Scale', scaleAll : 'Show all', scaleNoBorder : 'No Border', scaleFit : 'Exact Fit', access : 'Script Access', accessAlways : 'Always', accessSameDomain : 'Same domain', accessNever : 'Never', align : 'Align', alignLeft : 'Left', alignAbsBottom: 'Abs Bottom', alignAbsMiddle: 'Abs Middle', alignBaseline : 'Baseline', alignBottom : 'Bottom', alignMiddle : 'Middle', alignRight : 'Right', alignTextTop : 'Text Top', alignTop : 'Top', quality : 'Quality', qualityBest : 'Best', qualityHigh : 'High', qualityAutoHigh : 'Auto High', qualityMedium : 'Medium', qualityAutoLow : 'Auto Low', qualityLow : 'Low', windowModeWindow : 'Window', windowModeOpaque : 'Opaque', windowModeTransparent : 'Transparent', windowMode : 'Window mode', flashvars : 'Variables for YouTube', bgcolor : 'Background color', width : 'Width', height : 'Height', hSpace : 'HSpace', vSpace : 'VSpace', validateSrc : 'URL must not be empty.', validateWidth : 'Width must be a number.', validateHeight : 'Height must be a number.', validateHSpace : 'HSpace must be a number.', validateVSpace : 'VSpace must be a number.' } </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload