This channel is closed. Use GitHub and Stackoverflow to contact us and the community instead.
More information: ckeditor/ckeditor5#2037
This channel is closed. Use GitHub and Stackoverflow to contact us and the community instead.
More information: ckeditor/ckeditor5#2037
This channel is closed. Use GitHub and Stackoverflow to contact us and the community instead.
More information: ckeditor/ckeditor5#2037
@ckeditor/ckeditor5-editor-classic/src/classiceditor
<CKEditor
editor={ClassicEditor}
// data={ (initialDataForDrafts && initialDataForDrafts.messageBody ) ? initialDataForDrafts.messageBody : emailTemplateContent}
data={values.messageBody || ''}
config={{
mediaEmbed: {
previewsInData: true,
},
removePlugins: [],
toolbar: toolbarItems,
extraPlugins: [ConvertDivAttributes],
}}
disabled={false}
onInit={editor => {
setEditorFunction(editor);
editor.editing.view.change(writer => {
writer.setStyle(
"min-height",
'120px',
editor.editing.view.document.getRoot()
);
});
}}
onChange={(event, editor) => {
const data = editor.getData();
setFieldValue('messageBody', data);
setTemplateContentForPreview(data);
}}
/>
CKEDITOR.editorConfig = function( config ) {
CKEDITOR.config.enterMode = CKEDITOR.ENTER_BR;
config.allowedContent = true;
};