TinyMCE working with editor inputs
TinyMCE working with editor inputs
I'm trying to get the TinyMCE plugin to work with the editor inputs. I just read that TinyMCE doesn't work with inputs and only block elements. I keep getting back the following error via my console which makes sense I suppose.
Could not initialize inline editor on invalid inline target element <input id="DTE_Field_item_desc" type="text">
If it doesn't support input elements, what options do I have? Do I download another text editor like CK Editor?
Here is my code I am currently using
editor.on( 'open', function ( e, type ) {
tinymce.init({
selector: '#DTE_Field_item_desc',
inline: true
});
} );
This question has an accepted answers - jump to answer
Answers
Have you tried using the TinyMCE plug-in for Editor?
Allan
I got CK Editor doing the kind of functionality I am looking for but the issue is that I cannot type anything into my short description input box.
CKEditor recently updated to v5, and I've not actually had a chance to update the plug-in to work with that new version yet I'm afraid. If you try using CKEditor v4 it should work okay.
Allan