mirror of
https://github.com/processwire/processwire.git
synced 2025-08-20 21:42:23 +02:00
Fix issue processwire/processwire-issues#1098 - Correct issue where CKEditor was not keeping formatting when linking bold, italic, or other formatted text
This commit is contained in:
@@ -40,7 +40,7 @@ class InputfieldCKEditor extends InputfieldTextarea implements ConfigModule {
|
|||||||
public static function getModuleInfo() {
|
public static function getModuleInfo() {
|
||||||
return array(
|
return array(
|
||||||
'title' => 'CKEditor',
|
'title' => 'CKEditor',
|
||||||
'version' => 165,
|
'version' => 166,
|
||||||
'summary' => __('CKEditor textarea rich text editor.', __FILE__),
|
'summary' => __('CKEditor textarea rich text editor.', __FILE__),
|
||||||
'installs' => array('MarkupHTMLPurifier'),
|
'installs' => array('MarkupHTMLPurifier'),
|
||||||
);
|
);
|
||||||
|
@@ -196,7 +196,8 @@
|
|||||||
$a.html(selectionText);
|
$a.html(selectionText);
|
||||||
}
|
}
|
||||||
var html = jQuery("<div />").append($a).html();
|
var html = jQuery("<div />").append($a).html();
|
||||||
editor.insertHtml(html);
|
var el = CKEDITOR.dom.element.createFromHtml(html);
|
||||||
|
editor.insertElement(el); // was: editor.insertHtml(html);
|
||||||
}
|
}
|
||||||
|
|
||||||
$iframe.dialog("close");
|
$iframe.dialog("close");
|
||||||
|
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user