WYSIWYG Plugins Issues.
WYSIWYG Plugins Issues.
This relates to this post which I necroed - and feeling guilty I though I had better make a better post.
https://datatables.net/forums/discussion/19740/tinymce-does-not-appear#latest
This bug applies to both CKEditor and TinyMCE.
I have attempted to use the Datatables Bookmark Debugger but it errors with "too much recursion" on FF on my Mac.
Given that this is an Editor error I did not think that the Datatables live would work?
On initial initialisation no errors are shown in console. Using the following init code (snipped for brevity):
{
"label": "Description",
"name": "description_prd",
"type": "ckeditor",
"attr": {
class: "form-control admin-ta-fc"
}
},
Substitute 'tinymce' for 'ckeditor' and the same issue applies)
The issue:
On first edit, the modal appears for Editor and the textarea does not convert to an editor.
An error appears in the console:
Type Error: a is undefined (for ck editor)
Type Error: r is undefined (for tinymce)
On closing the modal:
Under ckeditor a further error:
TypeError: conf._editor is undefined (when the destroy command is issued I believe)
On re-opening the modal:
In TinyMCE - the content is shown in an editor window, subsequent closes and modal opens do not show the content (but do show the editor, no console errors)
In CKEditor - the content is shown in the editor and on subsequent modal opens the content shows (so ckeditor is handling this better than tinymce by all appearances)
This is as far as I have got so far as I am still setting the forms up - obviously it would be ideal not to have to open the modal twice to init the editor and to understand why these js errors occur.
I am using the bootstrap3 tweaks and no other plugins.
Replies
Interesting - sorry you are having problem with this. I'll try to reproduce the error when I get back into the office at the start of the week and post an update.
Allan
Sure thing Allan, I'm working on other parts of the code and am quite content to see if you find a similar issue to mine or if mine is an edge case caused by something else.
If it helps anyone, I bludgeoned this by setting up Tiny MCE and having it overwrite the textarea some 500ms after the editor 'open' event.
Works lovely.
I'm having the same issue, but the issue occurs with Editor columns not using CKEditor. In the image capture, the first error occurs when opening a dialog not using CKEditor, and the second error is after closing that dialog: http://imgur.com/jtY5N9e
https://www.dcturano.com/to-do_list/
Hi,
I've just published an update to the CKEditor plug-in for Editor: https://editor.datatables.net/plug-ins/field-type/editor.ckeditor .
The problem was that it was assuming that the full editor form was being used and didn't take bubble editing into account. It does now! Inline editing should also now work.
Regards,
Allan
Thank you Allan!
Hi
I have this same problem with the TinyMCE editor for inline editing, is it something obvious I can do to fix this issue?.
Using Editor 1.4 with TinyMCE ver 3.4.5 or ckeditor 4.4.7
Both work fine with full editor form but they both give this error for inline also I notice that on the first edit , any changes made in the editor do not get passed back to the field in the table (should there be a save button or simply click outside the editor to close?)
Regards Mark