Skip to main content
adicionou 54 caracteres ao conteúdo
Fonte Link

Você pode retirar as tags do html do documento CKEditor usando JQuery desta forma:

CKEDITOR.on( 'instanceReady', function( evt )
  {
    var editor = evt.editor;
   
   editor.on('change', function (e) { 
   var text = $("<div/>").html( editor.getDataeditable()).textgetText();
    console.log(text);
    });
 });

Exemplo: https://codepen.io/edsonperotoni/pen/ZEEooxW

Referência: https://stackoverflow.com/questions/13140043/how-to-strip-html-tags-with-jquery https://stackoverflow.com/questions/12895795/getting-non-html-text-from-ckeditor

Você pode retirar as tags do html do documento CKEditor usando JQuery desta forma:

CKEDITOR.on( 'instanceReady', function( evt )
  {
    var editor = evt.editor;
   
   editor.on('change', function (e) { 
   var text = $("<div/>").html(editor.getData()).text();
    console.log(text);
    });
 });

Exemplo: https://codepen.io/edsonperotoni/pen/ZEEooxW

Referência: https://stackoverflow.com/questions/13140043/how-to-strip-html-tags-with-jquery

Você pode retirar as tags do html do documento CKEditor desta forma:

CKEDITOR.on( 'instanceReady', function( evt )
  {
    var editor = evt.editor;
   
   editor.on('change', function (e) { 
   var text =  editor.editable().getText();
   console.log(text);
    });
 });

Exemplo: https://codepen.io/edsonperotoni/pen/ZEEooxW

Referência: https://stackoverflow.com/questions/13140043/how-to-strip-html-tags-with-jquery https://stackoverflow.com/questions/12895795/getting-non-html-text-from-ckeditor

Fonte Link

Você pode retirar as tags do html do documento CKEditor usando JQuery desta forma:

CKEDITOR.on( 'instanceReady', function( evt )
  {
    var editor = evt.editor;
   
   editor.on('change', function (e) { 
   var text = $("<div/>").html(editor.getData()).text();
    console.log(text);
    });
 });

Exemplo: https://codepen.io/edsonperotoni/pen/ZEEooxW

Referência: https://stackoverflow.com/questions/13140043/how-to-strip-html-tags-with-jquery