Support

Account

Home Forums Search Search Results for 'Wysiwyg'

Search Results for 'Wysiwyg'

reply

  • Hi @yuvalsabar123

    Thank you for the question.

    This issue is quite strange, there could be a theme conflict that is affecting the rendering of the WYSIWYG toolbar.

    Does the same issue replicate when using one of the stock WP themes?

  • My tone is civil. The worst thing I said is “you are wrong”, which is my opinion, based in the answers you give me. Please don’t take it personal, as none of my words insinuated that.

    For the ammount of words… sorry, but I need them to be clear when i think I’m not being understood. Maybe your developers could consider not to dismiss a request with a rushed up answer? When an answer doesn’t add up, I bring it up.

    The repeater fields doesn’t work to make field layouts… Maybe I was confused because YOU DID call them “layouts”!

    The repeater field leaves a hole in table mode when the fields are conditionally hidden (of course, because there’s a table header needing to match)

    The word “layout” DOES REFER to the ARRANGEMENT of things, NOT to the types and data or the data itself. I don’t feel bad by thinking they were meant to work as layouts.

    Can you think any other way to prevent the browser to become unresponsive with 10 rows of 8 wysiwyg fields each? (I’m not even counting the conditionally hidden ones!)

    I do need the wysiwyg fields, to let the user to enter bullet points because of the nesting levels…

    Unless you add some kind of YAML field? where users can quickly enter data with leading dashes or tabs, to define lists, arrays…

    Later we, programmers, could convert each nesting level into title, content, even complex layouts, from plain text. Without the need for multiple wysiwyg fields, or field layouts.

    Thanks.

  • Yes, exactly. You can create field groups that are attached to the terms of a taxonomy the same way that field groups are attached to a post. When editing a term, like a category or tag, the fields can be completed.

    For example, you can add an image field so that you can associate an image with the term. Or you can add a WYSIWYG editor to allow for editable content for a term just like the editor for a post.

    Hope this helps.

    ~JH

  • Hi @waffl

    It would seem like either acf-qtranslate or qtranslate-x is adding the code and then it gets wrapped with wpautop. I’m guessing qtranslate-x has some code to prevent that in the regular editor but it doesn’t run in ACFs.

    It seems there’s a lot of people having issues with the wysiwyg-editor as well if you check the support forums:
    https://wordpress.org/support/topic/wysiwyg-not-working-properlly?replies=7
    https://wordpress.org/support/topic/wysiwyg-qtranslatex-editor-is-multiplying-content?replies=7

    I think it’s something that needs to be fixed by either acf-qtranslate or qtranslate-x. ACF supports WPML out of the box and if you’re up for switching Polylang is a great free alternative. I’ve used it myself with ACF on multiple occasions 🙂
    https://wordpress.org/plugins/polylang/

  • I want to add new ROWS to an EMPTY flexible content field, based (e.g. exploded w/JS) from ANOTHER acf field (or the wp editor).

    For future visitors: I already made my importer processing the fields with a function hooked to acf/save_post wordpress hook.

    It parses a whole powerpoint presentation into slides, including base64 images, something I recommend you to add to your plugin, like “image elevator” 🙂

    It seems that “update_field” is all I needed. I thought there would be some sort of “add row”… but since the whole thing is a acf field…

    The only problem I found is the last ticket I submitted. One sub-field doesn’t makes it to the DB but it doesn’t come out to the editor. Please take a look at it. I can send you my code, but really, I checked the field BEFORE update_field, and it was ok, as well as the data found in the DB. But no show.

    About image-elevator: One could just install it, and paste the images in a wysiwyg editor, but as it happened to me, my wordpress post ended up with two wysiwyg editors for each row, (apparently one many more than it was designed for) which made the browser twice as slow.

    And I had to modify their plugin to work from the back end, since currently theirs only works with ajax from the post editor. Anyway, allowing to “paste” an image I think it’d be a great addition 🙂

  • This reply has been marked as private.
  • But you can leave the change in the (whatever you call your latest not-for-release version) so I can download it 🙂

    If you think this is possible (using a single wysiwyg and creating a snapshot of the rest until needed) I’d do it myself.

    I have no idea how, but I managed to import a whole powerpoint with base64 images and everything saved to the media library in one week 🙂

    Just send me a few lines of critical points where you think I could encounter a challenge, and I’ll try it.

  • Hi guys.

    Yes the add-on is indeed supported on the Pro version. You can grab the it from this link: https://github.com/elliotcondon/acf-wordpress-wysiwyg-field

  • Hi @syncopatemedia

    the ACF wysiwyg field is using the built in editor in WordPress so it should be possible. However I think this falls more on the HTML Editor Syntax Highlighter author. I’m guessing he/she targets only the regular editor specifically and would have to add in the ability to target ACF editors as well.

  • How can I manually drag them? The field is not draggable. I put it above wysiwyg editor and it stuck there. I thought may be in the functions.php I can add some code to move it, but I don’t know php.

  • Hi @priya-rangasamy

    You can make use of the remove_filter() as posted by @rpk and you can also be achieve the same result by loading the value of the WYSIWYG field without any formatting as follows:

    the_field('wysiwyg_field', false, false);

  • Hi @daniel7912

    Thank you for the question.

    There is a plugin conflict interfering with the setting of the tinyMCE object in your category page. You should check to ensure that you identify the plugin bringing about the conflict by deactivating all other installed plugins and switching to one of the stock Wp themes.

    You can also try making the followng AJAX callback:

    $('.acf_wysiwyg textarea').each(function() {
        tinymce.execCommand('mceAddControl', false, $(this).attr('id'));
    });
  • Thanks John. Only just seen this. Never got an email notification for some reason.

    Anyway, you are right. As im using a repeater with a few wysiwyg editor fields, I am looping through the rows.

    Ok, so saying I have 5 or so repeater editors and im outside the row loop, how do I target a particular editor? They all share the same field key, so I only get the last one in my form.

    Thanks again John.:)

  • Check the content in the sub field ‘main_content’

    The extra div elements being output is happening here

    
    <?php the_sub_field('main_content'); ?>
    

    so those div elements must be in the wysiwyg editor. This can happen when copying content from a web page and pasting it directly into a WP WYSIWYG editor.

  • Hi,

    Okay. ACF gives you the choice of which tabs to show when creating the wysiwyg field. If you check your wysiwyg field in the field group make sure you have “Tabs” set to “Visual & text”. Then you should see the tabs unless your custom tinyMCE plugin conflicts with this.

    I just tested it myself and it works 🙂

  • Hi Jon,

    Yes that’s what I am trying to display a text tab or html button where I can see the source code.

    I think acf doesn’t use text tab for WYSIWYG editor.

    Thanks,
    Raj

  • The server shouldn’t effect it.

    You posted this

    
    $field = 'editor'; // 'editor' being the field name for a wysiwyg editor
    
    $fkey = get_sub_field_object($field); // retrieve the key for the editor
    
    acf_form(array( 'fields' => array($fkey['key']) )); // hopefully display editor & contents
    

    This makes me believe that you looping through the rows getting the value for $fkey and while still in that loop you’re calling acf_form(). I think you’re going to need to give me some more code to look at.

    Just in case you’re unaware of this, if you put backticks around your code it will make make it look like the code I added above.

  • Thanks John.

    I’m using the latest version of pro.

    I was calling acf_form outside the loop as far as im aware. Its a strange one. If I call acf_form() with an empty array, it displays the the fields on the page with a the contents correctly. But when I try and pick out the wysiwyg specifically, the form displays the editor but its contents are empty.

    Having said that, there was an important bit of info I forgot to provide: Im running wordpress on a localhost using wamp. Does this have any bearing on how acf_form works?

  • What version of ACF are you using? I just did a test and when I include a wysiwyg field in acf_form() that is a sub field of a repeater and the content added in the back end is shown in the front end.

    Or it may be because you’re trying to show the form in the loop that’s getting the field keys. Try storing all the field keys in an array and then use a single acf_form() call to display all of the fields.

  • Hi @soojooko

    Thanks for the bug report and very clear explanation!

    The issue here is due to a ‘some what’ miss-use of the conditional logic functionality.

    If a field is hidden by conditional logic, ACF will not save it’s value when the form is submitted. This is why the hidden fields do not update correctly, and why a new field simply overrides existing data.

    I think you may be interested in the flexible content field. You can use it in the same way as a repeater, however, each ‘layout’ is collapsible. This means you can minimize the interface and toggle open/close the WYSIWYG editors without using conditional logic.

    Thanks
    E

  • To be honest, I don’t know why it’s not stripping the <p> tags of when they aren’t in tabs. Does the same thing for me but this is the default operation of the WP WYSIWYG editor.

    I use TinyMCE Advanded on all my sites, one of its features is to stop this from happening.

  • Hi all, a year and a half later, I’m weighing in to add one bit of advice that worked for me:

    I kept getting </div></p> and similar phantom paragraph tags whenever I used shortcodes in an ACF WYSIWYG field. I extended @jt-mtl’s add_filter solution a bit and it worked for me.

    $array = array (
        '<p>[' => '[',
        ']</p>' => ']',
        ']<br />' => ']',
        '<p><div' => '[',
        '</div></p>' => ']',
        '</div><br />' => ']'
    );

    You could add any other markup to the array if you want to. Divs were all I needed, so I stopped there. Hope it helps!

  • Hi @donpro

    In order to make use of some of the ACF 4 Custom fields you have to purchase the related add on. For instance the Flexible Content Field but as for the WYSIWYG field it is available for use and you should check to ensure that there is no plugin conflict that could be affecting the working of this field.

    Please deactivate your current theme and all the installed plugins to ensure the behavior is not arising from a conflict.

  • Any shortcodes that work in the standard WP WYSIWYG editor in WP should work in an ACF WYSIWYG field. Since these filters are applied in the gallery shortcode then they should still be called if using that shortcode.

  • Hi, I don’t think the tinymce editor is created by another plugin. I’m just using ACF’s own Wysiwyg Editor fields. I’ve attached two screenshots to illustrate the problem:
    source code button

    source code pop up

    Its hard to edit code with no formatting like that. I’d like the line breaks and indentation of the code.

Viewing 25 results - 776 through 800 (of 1,297 total)