Dotclear

Changeset 4036:399845ddb00a for plugins


Ignore:
Timestamp:
09/12/19 12:09:34 (6 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
2.15
Message:

Fix Ajax saving of files in theme editor when using codemirror

File:
1 edited

Legend:

Unmodified
Added
Removed
  • plugins/themeEditor/js/script.js

    r3980 r4036  
    1 /*global $, dotclear, editor, confirmClosePage, getData */ 
     1/*global $, dotclear, confirmClosePage, getData, codemirror_instance */ 
    22'use strict'; 
    33 
     
    1313 
    1414    const data = { 
    15       file_content: (!dotclear.colorsyntax ? $(f).find('#file_content').get(0).value : editor.getValue()), 
     15      file_content: (!dotclear.colorsyntax ? $(f).find('#file_content').get(0).value : codemirror_instance.editor.getValue()), 
    1616      xd_check: $(f).find('input[name="xd_check"]').get(0).value, 
    1717      write: 1 
Note: See TracChangeset for help on using the changeset viewer.

Sites map