Force CKEDITOR to refresh config

前端 未结 10 2342
鱼传尺愫
鱼传尺愫 2020-12-13 06:36

I created a cms application that use CKEDITOR and when I add some functionality to CKEDITOR I need to refresh some CKEDITOR .js /.css file.

But CKEDITOR force the

10条回答
  •  渐次进展
    2020-12-13 06:57

    I found a much simpler method, in case anyone is still frustrated by this.

    If you open the config file URL with the timestamp appended (eg. ?t=XYZD) in your browser, hard-refresh it, then return to your application page and refresh that, you should get the new version of the config file.

    You need to use the same timestamp as is set by ckeditor in the source of the page. If you use developer tools or Firebug, typing CKEDITOR.timestamp into the console will give you the value to use.

提交回复
热议问题