Support

Account

Home Forums Search Search Results for 'Wysiwyg'

Search Results for 'Wysiwyg'

reply

  • Elliot

    No other WYSIWYG plugins installed nor language plugin.

    The WYSIWYG field is working under pages, just not on the Options page.

    Cheers
    James

  • The php export is:

    if(function_exists("register_field_group"))
    {
    	register_field_group(array (
    		'id' => 'acf_long-page',
    		'title' => 'Long page',
    		'fields' => array (
    			array (
    				'key' => 'field_5',
    				'label' => 'Layout',
    				'name' => 'long_page_layout',
    				'type' => 'flexible_content',
    				'layouts' => array (
    					array (
    						'label' => 'Fritekst',
    						'name' => 'fritekst',
    						'display' => 'row',
    						'min' => '',
    						'max' => '',
    						'sub_fields' => array (
    							array (
    								'key' => 'field_51d51ce1bf114',
    								'label' => 'Title',
    								'name' => 'title',
    								'type' => 'title',
    								'column_width' => '',
    							),
    							array (
    								'key' => 'field_6',
    								'label' => 'Content',
    								'name' => 'content',
    								'type' => 'wysiwyg',
    								'column_width' => '',
    								'default_value' => '',
    								'toolbar' => 'full',
    								'media_upload' => 'yes',
    							),
    							array (
    								'key' => 'field_51d51cecbf115',
    								'label' => 'Include in menu',
    								'name' => 'include_in_menu',
    								'type' => 'true_false',
    								'instructions' => 'Gjelder for engelsk og tysk',
    								'column_width' => '',
    								'message' => 'Vis i toppmeny',
    								'default_value' => 0,
    							),
    							array (
    								'key' => 'field_51d5460254d84',
    								'label' => 'Menu title',
    								'name' => 'menu_title',
    								'type' => 'text',
    								'instructions' => 'Vil vises i toppmenyen',
    								'column_width' => '',
    								'default_value' => '',
    								'placeholder' => '',
    								'prepend' => '',
    								'append' => '',
    								'formatting' => 'none',
    								'maxlength' => '',
    							),
    						),
    					),
    					array (
    						'label' => 'Slider',
    						'name' => 'slider',
    						'display' => 'row',
    						'min' => '',
    						'max' => '',
    						'sub_fields' => array (
    							array (
    								'key' => 'field_7',
    								'label' => 'Royalslider id',
    								'name' => 'royalslider_id',
    								'type' => 'number',
    								'column_width' => '',
    								'default_value' => '',
    								'placeholder' => '',
    								'prepend' => '',
    								'append' => '',
    								'min' => '',
    								'max' => '',
    								'step' => '',
    							),
    						),
    					),
    					array (
    						'label' => 'Highlights-linje',
    						'name' => 'highlight_strip',
    						'display' => 'row',
    						'min' => '',
    						'max' => '',
    						'sub_fields' => array (
    							array (
    								'key' => 'field_8',
    								'label' => 'Content Blocks',
    								'name' => 'content_blocks',
    								'type' => 'relationship',
    								'column_width' => '',
    								'return_format' => 'object',
    								'post_type' => array (
    									0 => 'content_block',
    								),
    								'taxonomy' => array (
    									0 => 'all',
    								),
    								'filters' => array (
    									0 => 'search',
    								),
    								'result_elements' => array (
    									0 => 'post_type',
    									1 => 'post_title',
    								),
    								'max' => 3,
    							),
    						),
    					),
    					array (
    						'label' => 'Bilde og tekst',
    						'name' => 'bilde_og_tekst',
    						'display' => 'row',
    						'min' => '',
    						'max' => '',
    						'sub_fields' => array (
    							array (
    								'key' => 'field_39',
    								'label' => 'Title',
    								'name' => 'title',
    								'type' => 'title',
    								'instructions' => 'overskriften',
    								'column_width' => '',
    							),
    							array (
    								'key' => 'field_10',
    								'label' => 'Content',
    								'name' => 'content',
    								'type' => 'wysiwyg',
    								'column_width' => '',
    								'default_value' => '',
    								'toolbar' => 'full',
    								'media_upload' => 'no',
    							),
    							array (
    								'key' => 'field_11',
    								'label' => 'Image',
    								'name' => 'image',
    								'type' => 'image',
    								'column_width' => '',
    								'save_format' => 'id',
    								'preview_size' => 'event-thumb',
    								'library' => 'all',
    							),
    							array (
    								'key' => 'field_51d51c87bf112',
    								'label' => 'Include in menu',
    								'name' => 'include_in_menu',
    								'type' => 'true_false',
    								'instructions' => 'Gjelder for engelsk og tysk side',
    								'column_width' => '',
    								'message' => 'Vis i toppmeny',
    								'default_value' => 0,
    							),
    							array (
    								'key' => 'field_51d5463154d85',
    								'label' => 'Menu title',
    								'name' => 'menu_title',
    								'type' => 'text',
    								'instructions' => 'Vil vises i toppmenyen',
    								'column_width' => '',
    								'default_value' => '',
    								'placeholder' => '',
    								'prepend' => '',
    								'append' => '',
    								'formatting' => 'none',
    								'maxlength' => '',
    							),
    						),
    					),
    					array (
    						'label' => 'Galleri/bildemeny',
    						'name' => 'galleri',
    						'display' => 'row',
    						'min' => '',
    						'max' => '',
    						'sub_fields' => array (
    							array (
    								'key' => 'field_14',
    								'label' => 'Bilde 1',
    								'name' => 'bilde_1',
    								'type' => 'image',
    								'column_width' => '',
    								'save_format' => 'id',
    								'preview_size' => 'event-thumb',
    								'library' => 'all',
    							),
    							array (
    								'key' => 'field_18',
    								'label' => 'Tittel 1',
    								'name' => 'tittel_1',
    								'type' => 'text',
    								'column_width' => '',
    								'default_value' => '',
    								'placeholder' => '',
    								'prepend' => '',
    								'append' => '',
    								'formatting' => 'html',
    								'maxlength' => '',
    							),
    							array (
    								'key' => 'field_19',
    								'label' => 'Link 1',
    								'name' => 'link_1',
    								'type' => 'page_link',
    								'column_width' => '',
    								'post_type' => array (
    									0 => 'page',
    								),
    								'allow_null' => 0,
    								'multiple' => 0,
    							),
    							array (
    								'key' => 'field_15',
    								'label' => 'Bilde 2',
    								'name' => 'bilde_2',
    								'type' => 'image',
    								'column_width' => '',
    								'save_format' => 'id',
    								'preview_size' => 'event-thumb',
    								'library' => 'all',
    							),
    							array (
    								'key' => 'field_23',
    								'label' => 'Tittel 2',
    								'name' => 'tittel_2',
    								'type' => 'text',
    								'column_width' => '',
    								'default_value' => '',
    								'placeholder' => '',
    								'prepend' => '',
    								'append' => '',
    								'formatting' => 'html',
    								'maxlength' => '',
    							),
    							array (
    								'key' => 'field_20',
    								'label' => 'Link 2',
    								'name' => 'link_2',
    								'type' => 'page_link',
    								'column_width' => '',
    								'post_type' => array (
    									0 => 'all',
    								),
    								'allow_null' => 1,
    								'multiple' => 0,
    							),
    							array (
    								'key' => 'field_16',
    								'label' => 'Bilde 3',
    								'name' => 'bilde_3',
    								'type' => 'image',
    								'column_width' => '',
    								'save_format' => 'id',
    								'preview_size' => 'event-thumb',
    								'library' => 'all',
    							),
    							array (
    								'key' => 'field_22',
    								'label' => 'Tittel 3',
    								'name' => 'tittel_3',
    								'type' => 'text',
    								'column_width' => '',
    								'default_value' => '',
    								'placeholder' => '',
    								'prepend' => '',
    								'append' => '',
    								'formatting' => 'html',
    								'maxlength' => '',
    							),
    							array (
    								'key' => 'field_25',
    								'label' => 'Link 3',
    								'name' => 'link_3',
    								'type' => 'page_link',
    								'column_width' => '',
    								'post_type' => array (
    									0 => 'page',
    								),
    								'allow_null' => 1,
    								'multiple' => 0,
    							),
    							array (
    								'key' => 'field_17',
    								'label' => 'Bilde 4',
    								'name' => 'bilde_4',
    								'type' => 'image',
    								'column_width' => '',
    								'save_format' => 'id',
    								'preview_size' => 'event-thumb',
    								'library' => 'all',
    							),
    							array (
    								'key' => 'field_21',
    								'label' => 'Tittel 4',
    								'name' => 'tittel_4',
    								'type' => 'text',
    								'column_width' => '',
    								'default_value' => '',
    								'placeholder' => '',
    								'prepend' => '',
    								'append' => '',
    								'formatting' => 'html',
    								'maxlength' => '',
    							),
    							array (
    								'key' => 'field_24',
    								'label' => 'Link 4',
    								'name' => 'link_4',
    								'type' => 'page_link',
    								'column_width' => '',
    								'post_type' => array (
    									0 => 'page',
    								),
    								'allow_null' => 1,
    								'multiple' => 0,
    							),
    						),
    					),
    				),
    				'button_label' => 'Add Row',
    				'min' => '',
    				'max' => '',
    			),
    		),
    		'location' => array (
    			array (
    				array (
    					'param' => 'page_template',
    					'operator' => '==',
    					'value' => 'page-long.php',
    					'order_no' => 0,
    					'group_no' => 0,
    				),
    			),
    		),
    		'options' => array (
    			'position' => 'normal',
    			'layout' => 'no_box',
    			'hide_on_screen' => array (
    				0 => 'excerpt',
    				1 => 'discussion',
    				2 => 'comments',
    				3 => 'author',
    				4 => 'format',
    				5 => 'categories',
    				6 => 'tags',
    			),
    		),
    		'menu_order' => 0,
    	));
    }

    I should also note, all content is printed. It just comes after the warning message.

  • Hi @Remwideco

    Thanks for clarifying. I think you can use the WYSIWYG field and then on your front end, do this:

    
    <h3>Normal</h3>
    <?php the_field('field_name'); ?>
    
    <h3>Markup</h3>
    <pre><?php the_field('field_name'); ?></pre>
    

    That should work. Let me know how you go.

    Thanks
    E

  • Hi @Peter13

    Can you confirm with field this issue is happening with? Is it the WYSIWYG field?
    Can you open your console log and report any JS errors during the ‘add link’ process?

    Thanks
    E

  • Hi @shawn00m
    Your screeshots do not demonstrate the statements you made in your original question.

    In particular “When I insert photos into the regular WordPress content wysiwyg editor, the class is added automatically. ”

    Can you please demonstrate the DIFFERENCE between the ACF wysiwyg and the normal wysiwyg when inserting an image and the classes that are generated.

    Thanks
    E

  • Hi @floq-design

    Do you have any other plugins which would interfere / customize the WYSIWYG?
    Perhaps even a language plugin?

    Thanks
    E

  • Hi @dynamyc

    In your first comment, you say that the output is the same, as in, the shortcode is not being converted at all.

    I don’t understand the importance of this div.
    Perhaps you can ask the shortcode plugin developer as I am not sure how I can be of much help on this one.

    Thanks
    E

  • Hi @Nitruc

    I would suggest that you use firebug / inspector to actually debug the CSS. Perhaps your style rules are being overridden by ACF or WP?

    You can test this using firebug / inspector

    Thanks
    E

  • Sure, I’m attaching three images. One shows the public view. The pink area is the ACF WYSIWYG content, the green is the default WP WYSIWYG (there are no images in there).

    The other images show the admin screens for these fields. I can insert a class manually in the ACF WYSIWYG editor, that just becomes cumbersome when there are multiple images. I was hoping to streamline the process by having a class inserted automatically for any image added to that field.

    Any help would be appreciated.
    Public Screen
    WP WYSIWYG
    ACF WYSIWYG

  • Yes, I have a plugin installed for shortcodes.

    What I’m more interested is to make a specific plugin shortcode to work. This is kind of urgent.

    For what I should look inside the plugin files ? Or what I need to modify in order to work?

    I see the button for it inside the WYSIWYG field but the output is like this:
    <div id="countdown-1385051206"></div>

    So is doing something but the div is empty.
    Should I ask the developer of the plugin?

  • Hey @elliot,

    I actually have tried using .acf_wysiwyg iframe too, that was my mistake that I didn’t mention it above. But what exactly would I use if I wanted to set the height to 15px? I tried:

    .acf_wysiwyg iframe {
    	min-height:0;
    	height:15px;
    }

    But it seems like WordPress won’t allow the WYSIWYG field area to be anywhere near that short. It won’t even let me click and drag the bottom right corner to make it shorter than what looks like around a height of 100px. I ended up hacking it a bit more using this to get what I wanted:

    .acf_wysiwyg iframe {
        height: 15px;
        min-height: 15px;
        overflow: hidden;
    }
    
    .acf_wysiwyg .wp-editor-container {
    height:70px;
    overflow: hidden;
    }

    Let me know if there’s a better way of doing this. Also, where exactly should I be editing this code? Right now I’m just using a custom function in my functions.php file that adds the custom css to the admin’s head.

  • Hi @shawn00m

    Thanks for the question, but could you please demonstrate the differencce between the normal and ACF WYSIWYG value via screenshots?

    Thanks
    E

  • Hi @dynamyc

    Could be either. Do you have a ‘button’ shortcode plugin installed? Is it part of your theme?

    Easiest way is to search your website folder for “shortcode”

    Thanks
    E

  • Hi @Nitruc

    Using firebug I can see that the CSS rule needed to modify the height is:

    
    .acf_wysiwyg iframe {
    
    }
    

    Please note that there is a min-height rule which will need to be set to 0 to allow for your height attribute to work.

    Please use firebug / inspector as you can modify the CSS on the fly and test as you go!

    Hope that helps.

    Thanks
    E

  • The shortcode is working in the normal content editor, which is strange because some shortcodes are working inside the WYSIWYG fields.

    The code which I’m using to output the WYSIWYG value is this:
    <?php the_field('fieldname'); ?>

    I don’t know where to look to see what code I’m using for registering the shortcode, should I look in the plugin files or inside my theme files?

    Thanks!

  • Thank you, this is what I needed:

    
    add_filter('tiny_mce_before_init', 'wpse3882_tiny_mce_before_init');
    function wpse3882_tiny_mce_before_init($settings) {
        $settings['theme_advanced_blockformats'] = 'p,h1,h2';
        return $settings;
    }
    
  • Hi @PerS

    Thanks for clarifying.
    I know that this is possible using a filter on all WP WYSIWYG called ‘tiny_mce_before_init’, but this will be applied to all fields, not specific ACF fields…

    I found this article on stack exchange which may be a good starting point:
    http://wordpress.stackexchange.com/questions/3882/can-i-add-a-custom-format-to-the-format-option-in-the-text-panel

    Good luck

    Thanks
    E

  • Hi @pixaro

    I see, so this question is not specific to the WYSIWYG field? That is where your question became confusing.

    I would create a layout in your flexible content field called page_break.

    Then in your template, within the flexible content loop, create a counter variable which starts at 1 and gets increased each time the page_break layout is used.

    Then, you can look at the $_GET param “page” and match it to your counter variable value. If the value does not match, use a ‘continue’ statement to ignore the current loop’s layout.

    Therefore, if you had &page=2 in your URL, your loop would only show layouts which appear after the first ‘page_break’ but before the second.

    I hope that helps

    Thanks
    E

  • Hi @webmasterID

    Can you check the source code on your page? Is the MARKUP for the nextgen gallery correct?
    Can you also check your console log for any JS errors?

    Perhaps also test the nextgen gallery in a WYSIWYG field which is at the root level (not in a flexible content field) for a comparison test.

    Thanks
    E

  • Hi @revconcept

    Perhaps you will need to refresh the plugins page. You should see an update like so:

  • formatselect is the pull down list in the editor with h1,h2,h3 ..

  • Thank you! You are always so fast with this stuff. I don’t see an update available in the admin though.

  • Hi @PerS

    Could you please elaborate a bit more on what ‘formatselect’ select is? I’m not familiar with this.

    Thanks
    E

  • Hi @revconcept

    Thanks for the screenshot. This issue has just been fixed and you can download the an update for the repeater field through your normal plugins wp-admin page.

    Thanks
    E

  • Hi @pixaro

    I have not yet tested this, but have a feeling that you could make it work as expected.

    You can hook into the WYSIWYG value through the filter called ‘acf_the_content’. This is a replica of the already WP documented ‘the_content’ filter.

    Using this, you could use some PHP to look for and explode the value based on ‘‘. Then, using a the current paged query parameter, you could customize which part you return as the value.

    Hope that helps

    Thanks
    E

Viewing 25 results - 1,051 through 1,075 (of 1,305 total)