Revision 55a2f137
Von Sven Schöling vor mehr als 7 Jahren hinzugefügt
js/kivi.js | ||
---|---|---|
222 | 222 |
entities: false, |
223 | 223 |
language: 'de', |
224 | 224 |
removePlugins: 'resize', |
225 |
toolbar: buttons |
|
226 |
} |
|
225 |
extraPlugins: 'inline_resize', |
|
226 |
toolbar: buttons, |
|
227 |
disableAutoInline: true, |
|
228 |
title: false |
|
229 |
}; |
|
227 | 230 |
|
228 |
var style = $e.prop('style'); |
|
229 |
$(['width', 'height']).each(function(idx, prop) { |
|
230 |
var matches = (style[prop] || '').match(/(\d+)px/); |
|
231 |
if (matches && (matches.length > 1)) |
|
232 |
config[prop] = matches[1]; |
|
233 |
}); |
|
231 |
config.height = $e.height(); |
|
232 |
config.width = $e.width(); |
|
234 | 233 |
|
235 |
$e.ckeditor(config); |
|
234 |
var editor = CKEDITOR.inline($e.get(0), config); |
|
235 |
$e.data('editor', editor); |
|
236 | 236 |
|
237 | 237 |
if ($e.hasClass('texteditor-autofocus')) |
238 | 238 |
$e.ckeditor(function() { ns.focus_ckeditor($e); }); |
Auch abrufbar als: Unified diff
CKEditor: inline_resize plugin