Tinymce does not appear
Tinymce does not appear
Hi,
I guess after including the "tinymce.min.js" and "editor.tinymce.js" and changing field type to [code]"type": "tinymce"[/code] the wysiwyg editor should appear - I'm getting only empty texarea (no data at all) and no wysiwyg text field.
Please point me to the right direction... did I miss smth I'm very confused in the last 2 days.
I guess after including the "tinymce.min.js" and "editor.tinymce.js" and changing field type to [code]"type": "tinymce"[/code] the wysiwyg editor should appear - I'm getting only empty texarea (no data at all) and no wysiwyg text field.
Please point me to the right direction... did I miss smth I'm very confused in the last 2 days.
This discussion has been closed.
Replies
Have you downloaded and included the tinymce file from: https://editor.datatables.net/fields/plugins ? Can you show us the initialisation you are using, and ideally link to the page so we can debug it?
Allan
Allan
In my case tinymce is included, There is no error in the console. In the meantime got another WYSIWYG to handle the job (I needed so far for 1 field), but I'll get some time to provide an online sample.
Btw, could it be related to data loading via ajax?
Bacalov
***I found that you need to turn off popup blockers in order for TinyMCE to work properly.
Works great now.
Allan
If this helps, once you open the editing modal, the console is showing (on mine):
TypeError: editor is null - on Line 17 of the plugin code:
if ( conf._initSetVal ) {
editor.setContent( conf._initSetVal );
conf._initSetVal = null;
}
However if you close the modal and reopen it, the tiny mce editor then opens no problem. This I guess is an issue with initialisation?
I should add that I simply copied and pasted the plugin code from the tinymce page here:
http://editor.datatables.net/plug-ins/field-type/editor.tinymce#Plug-in-code
And I note a commented out line:
//that.off( 'onOpen.tinymceInit-'+conf.id ); (Line 21)
I don't know if thats relevant.
The other thing that seems odd - is that the tinymce plugin works only once, after the first successful view of a field it then does not pick up the text again from the data allthough displaying the editor.
Had this one too... tinymce plugin works only once, after the first successful view of a field it then does not pick up the text again.
CKEditor seems to work ok.