Force CKEDITOR to refresh config

前端 未结 10 2302
鱼传尺愫
鱼传尺愫 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 07:05

    I have found a quite elegant way:

    It is enough to set:

    CKEDITOR.timestamp='ABCD';
    

    just after you link ckeditor.js or anyhow before ckeditor loads all its files

    this is the variable CKEDITOR uses to add timestamp to all .js .css files it loads dynamically.

    So every time I change those files I update that variable and browsers will reload them.

提交回复
热议问题