S
S
Sergey Chazov2019-04-24 21:52:14
JavaScript
Sergey Chazov, 2019-04-24 21:52:14

How to make CKEDITOR and JQ friends?

When I add CKEDITOR to textarea field

var editor = CKEDITOR.replace( 'newDotDescriptionFull', { height: '100px' } );

the value of the field that I get:
var description_full = $('#newDotDescriptionFull').val();

starts returning null.
Without CKEDITOR - everything is fine.
How to pass field value when using CKEDITOR?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Chazov, 2019-04-24
@chazovs

Found the answer myself)
CKEDITOR.instances.newDotDescriptionFull.getData()

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question