• I have a wysiwyg field that I added to posts using the advanced custom fields plugin. I can see the “add collages” button over these new fields but nothing gets triggered when I click these buttons. Only the button in the original content field triggers all the collage functionality. Is there a way around this. Here is what the code for the custom fields looks like. I changed the data-editor to its corresponding field but that didn’t do anything.

    <div id="wp-acf-editor-58408e53c1c38-editor-tools" class="wp-editor-tools hide-if-no-js">
    								<div id="wp-acf-editor-58408e53c1c38-media-buttons" class="wp-media-buttons">
    					<button type="button" class="button insert-media add_media" data-editor="acf-editor-58408e53c1c38"><span class="wp-media-buttons-icon"></span> Add Media</button><a href="#" id="eic-button" class="button" data-editor="acf-editor-58408610a3db8" title="Add Image Collage">Add Image Collage</a>				</div>
    													<div class="wp-editor-tabs">
    						<button id="acf-editor-58408e53c1c38-tmce" class="wp-switch-editor switch-tmce" data-wp-editor-id="acf-editor-58408e53c1c38" type="button">Visual</button>
    						<button id="acf-editor-58408e53c1c38-html" class="wp-switch-editor switch-html" data-wp-editor-id="acf-editor-58408e53c1c38" type="button">Text</button>
    					</div>
    							</div>
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Brecht

    (@brechtvds)

    You could add the collage in the original content field and then just cut and paste the collage (or shortcode). Would that work for you?

    Thread Starter williammoreno706

    (@williammoreno706)

    Yeah that does work but other various other people will be using that feature and im that would create confusion.

    Thread Starter williammoreno706

    (@williammoreno706)

    I actually tried to see if could run anything on .click but nothing runs. Is there anything preventing anything from running on that copies of the button element?

    Plugin Author Brecht

    (@brechtvds)

    I haven’t tested it with other TinyMCE editors before I’ll look into it for the next update!

    Brecht

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Not able to add collage on advanced custom field wysiwyg.’ is closed to new replies.