Ckeditor update textarea

后端 未结 10 1631
抹茶落季
抹茶落季 2020-12-01 03:10

I am trying to get the ckeditor working. Obviously it doesn\'t make use of the textarea so on submit the form doesn\'t submit the text in the editor. Beceause I make use of

10条回答
  •  南方客
    南方客 (楼主)
    2020-12-01 03:30

    Before submit do:

    for(var instanceName in CKEDITOR.instances)
        CKEDITOR.instances[instanceName].updateElement();
    

提交回复
热议问题