diff --git a/admin/class-gridable-admin.php b/admin/class-gridable-admin.php index fe19431..2358fd6 100644 --- a/admin/class-gridable-admin.php +++ b/admin/class-gridable-admin.php @@ -71,6 +71,10 @@ function add_media_button( $editor_id ) { */ wp_enqueue_script( 'gridable-editor', plugin_dir_url( __FILE__ ) . 'js/admin-editor.js', array( 'jquery' ), $this->version, true ); + wp_localize_script( 'gridable-editor', 'gridable_editor_params', array( + 'new_column_content' => 'New column' + ) ); + global $editor_styles; $editor_styles = array_merge( $editor_styles, array( plugin_dir_url( __FILE__ ) . 'css/editor-style.css' @@ -87,24 +91,19 @@ function wp_print_grider_tinymce_templates() { 'grid__item' ); ?>