A
A
Astrohas2016-12-20 13:53:36
HTML
Astrohas, 2016-12-20 13:53:36

Is there a wysiwyg editor with minimal functionality but good code and image insertion?

You need Wysiwig with support for inserting images in BASE64, and as simple as possible code. Summernote is not bad, but its code when copied from Word is terrible to disgrace.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
digamer, 2018-03-01
@digamer

Here is a great solution for inserting texts from external sources - cleans up tags:

callbacks: {
      // Clear all formatting of the pasted text
      onPaste: function (e) {
        var bufferText = ((e.originalEvent || e).clipboardData || window.clipboardData).getData('Text');
        e.preventDefault();
        setTimeout( function(){
          document.execCommand( 'insertText', false, bufferText );
        }, 10 );
      }
    }

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question