WordPress.org

Plugin Directory

Changeset 1355173


Ignore:
Timestamp:
02/21/16 12:19:02 (21 months ago)
Author:
jensnilsson
Message:

1.1.3 Fixed a bug that caused the js to initialize EpicEditor on the wrong element when appending a field using flexible content/repeater.

Location:
advanced-custom-fields-markdown
Files:
92 added
5 edited

Legend:

Unmodified
Added
Removed
  • advanced-custom-fields-markdown/trunk/acf-markdown-v4.php

    r1179182 r1355173  
    4343            'path' => apply_filters('acf/helpers/get_path', __FILE__), 
    4444            'dir' => apply_filters('acf/helpers/get_dir', __FILE__), 
    45             'version' => '1.1.2' 
     45            'version' => '1.1.3' 
    4646        ); 
    4747 
     
    284284 
    285285        wp_localize_script( 'acf-input-markdown',  $id, array( 
    286             'container' => $id, 
    287             'textarea' => $textareaId, 
     286            'containerId' => $id, 
     287            'textareaId' => $textareaId, 
    288288            'basePath' => $this->settings['dir'] . "js/lib/EpicEditor-v0.2.2", 
    289289            'autogrow' => ($field['autogrow'] == '1'), 
     
    338338 
    339339        // register & include CSS 
    340         wp_register_style( 'acf-input-markdown', "{$dir}css/input.css" ); 
     340        wp_register_style( 'acf-input-markdown', "{$dir}css/input.css", array(), $this->settings['version'] ); 
    341341        wp_enqueue_style( 'acf-input-markdown' ); 
    342342    } 
  • advanced-custom-fields-markdown/trunk/acf-markdown-v5.php

    r1179182 r1355173  
    293293 
    294294        wp_localize_script( 'acf-input-markdown',  $id, array( 
    295             'container' => $id, 
    296             'textarea' => $textareaId, 
     295            'containerId' => $id, 
     296            'textareaId' => $textareaId, 
    297297            'basePath' => "{$dir}js/lib/EpicEditor-v0.2.2", 
    298298            'autogrow' => ($field['autogrow'] == '1'), 
     
    348348 
    349349        // register & include JS 
    350         wp_register_script( 'epiceditor', "{$dir}js/lib/EpicEditor-v0.2.2/js/epiceditor.min.js" ); 
    351         wp_register_script( 'acf-input-markdown', "{$dir}js/input.js", array( 'epiceditor' ), '1.1.2'); 
     350        wp_register_script( 'epiceditor', "{$dir}js/lib/EpicEditor-v0.2.2/js/epiceditor.js" ); 
     351        wp_register_script( 'acf-input-markdown', "{$dir}js/input.js", array( 'epiceditor' ), '1.1.3'); 
    352352        wp_register_script( 'highlightjs', "{$dir}js/lib/highlight/highlight.pack.js" ); 
    353353 
     
    357357 
    358358        // register & include CSS 
    359         wp_register_style( 'acf-input-markdown', "{$dir}css/input.css" ); 
     359        wp_register_style( 'acf-input-markdown', "{$dir}css/input.css", array(), '1.1.3' ); 
    360360        wp_enqueue_style( 'acf-input-markdown' ); 
    361361    } 
  • advanced-custom-fields-markdown/trunk/acf-markdown.php

    r1179182 r1355173  
    55Plugin URI: https://github.com/jensjns/acf-markdown-field 
    66Description: Adds a markdown-field. 
    7 Version: 1.1.2 
     7Version: 1.1.3 
    88Author: jensnilsson 
    99Author URI: http://jensnilsson.nu 
  • advanced-custom-fields-markdown/trunk/js/input.js

    r1179182 r1355173  
    22 
    33    function initialize_field( $el ) { 
    4  
    54        var handle_media_button = function( $el, $inputEl, cb ) { 
    65            if ( typeof wp !== 'undefined' && wp.media && wp.media.editor) { 
     
    3736        var options = window[editorId]; 
    3837        options.clientSideStorage = false; 
     38        options.container = $el.find('#' + options.containerId)[0]; 
     39        options.textarea = $el.find('#' + options.textareaId)[0]; 
    3940        var editor = new EpicEditor(options).load(); 
    4041        var add_media_button = $el.find('.wp-media-buttons'); 
  • advanced-custom-fields-markdown/trunk/readme.txt

    r1179182 r1355173  
    4040== Changelog == 
    4141 
     42= 1.1.3 = 
     43* Fixed a bug that caused the js to initialize EpicEditor on the wrong element when appending a field using flexible content/repeater. 
     44 
    4245= 1.1.2 = 
    4346* Fixed a bug that caused the "Add Media" button to not work properly. 
     
    5457== Upgrade Notice == 
    5558 
     59= 1.1.3 = 
     60* Fixed a bug that caused the js to initialize EpicEditor on the wrong element when appending a field using flexible content/repeater. 
     61 
    5662= 1.1.2 = 
    5763* Fixed a bug that caused the "Add Media" button to not work properly. 
Note: See TracChangeset for help on using the changeset viewer.