For this to work you need to pass boolean parameter true when destroying instance:
var editor = CKEDITOR.instances[name];
if (editor) { editor.destroy(true); }
CKEDITOR.replace(name);
More Related Contents:
- Get computed font size for DOM element in JS
- How to enable image upload support in CKEditor 5?
- Set cursor to specific position in CKEditor
- How to ajax-submit a form textarea input from CKEditor?
- Change form values after submit button pressed
- How do I set a value in CKEditor with Javascript?
- How to add a custom button to the toolbar that calls a JavaScript function?
- Getting selected text with CKEditor Plugin on IE
- CKEditor unwanted characters
- CKEditor: Class or ID for editor body
- I have returned two values but console displaying only one value.. what’s wrong with my code?
- remove duplicate key name and group duplicate key related info into array
- Javascript alert and back with php
- How do I replace a character at a particular index in JavaScript?
- Is it not possible to stringify an Error using JSON.stringify?
- Why are Callbacks from Promise `.then` Methods an Anti-Pattern
- Colors in JavaScript console
- JavaScript function aliasing doesn’t seem to work
- JavaScript Promises – reject vs. throw
- variable scope in d3 javascript
- JSON Stringify changes time of date because of UTC
- Is it the last `script` element the currently running script?
- getElementByClass().setAttribute doesn’t work
- Javascript + HTML5 localstorage [closed]
- How to remove all recent console command
- Why doesn’t setTimeout(.., 0) execute immediately?
- React hooks useState setValue still rerender one more time when value is equal
- Angularjs – simple form submit
- Google map multiple overlay no cumulative opacity
- Super in Backbone