TinyMCE working with editor inputs

TinyMCE working with editor inputs

kumamarikumamari Posts: 24Questions: 9Answers: 1
edited December 2017 in Plug-ins

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

  • allanallan Posts: 63,489Questions: 1Answers: 10,470 Site admin

    Have you tried using the TinyMCE plug-in for Editor?

    Allan

  • kumamarikumamari Posts: 24Questions: 9Answers: 1

    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.

  • allanallan Posts: 63,489Questions: 1Answers: 10,470 Site admin
    Answer ✓

    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

This discussion has been closed.