Hey,
for a client I need to use “Medium Editor Field” for his website. The Issue is that it is not working with WPML (the most common translation plugin for wordpress). When saving a site for a different language the medium editor field is just empty.
Any chance to support this, since it’s a very common usecase? It’s not supported as of right now:
https://wpml.org/forums/topic/the-order-to-translate-the-texts-are-reversed/
Issue tracker at WPML (German):
https://wpml.org/de/forums/topic/wpml-plugin-medium-editor-field-compatibility-not-saving/
kind regards,
– Sam
Hi, how do I enable targetCheckbox: true
for the anchor button?
I’m looking at anchor form options and see how I can add a custom button but there is no documentation on just changing an option on an existing button.
Custom Buttons will only be supported in code in ACF Version 6 using the ‘acf/medium-editor-field/custom-buttons filter hook.
]]>Hi
Love your plugin. So Helpful
But the plugin is creating issues for ACF pro after its 6.0.1 update of tuesday.
It seem to affect the drop down elements in the creation of group as well as disabling the the rules section below. Unable to add or delete new rules (like targeting specific models or templates)
I disconnected all acf add ons, then one by one activated each and discovered the error was caused by your Plugin.
]]>I have an error with the new version of ACF 6 when in ACF edition group.
Uncaught SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data
initialize_acf_medium_editor_field https://mysite/assets/plugins/acf-medium-editor-field/assets/js/input.js?ver=2.6.0:44
<anonymous> https://mysite/assets/plugins/acf-medium-editor-field/assets/js/input.js?ver=2.6.0:90
jQuery 2
<anonymous> https://mysite/assets/plugins/acf-medium-editor-field/assets/js/input.js?ver=2.6.0:88
s https://mysite/assets/plugins/advanced-custom-fields-pro/assets/build/js/acf-input.min.js?ver=6.0.1:1
o https://mysite/assets/plugins/advanced-custom-fields-pro/assets/build/js/acf.min.js?ver=6.0.1:1
doAction https://mysite/assets/plugins/advanced-custom-fields-pro/assets/build/js/acf.min.js?ver=6.0.1:1
doAction https://mysite/assets/plugins/advanced-custom-fields-pro/assets/build/js/acf.min.js?ver=6.0.1:1
7806 https://mysite/assets/plugins/advanced-custom-fields-pro/assets/build/js/acf.min.js?ver=6.0.1:1
In previous version of ACF, this function initialize_acf_medium_editor_field wasn’t executed in input.js in admin acf group edition, but only in edition post page
i have a custom solution to solve my case, but the plugin need an update for this problem i think
My change on line 89 in input.js
if ($(this).hasClass('acf-field-medium-editor') ) {
initialize_acf_medium_editor_field($(this));
}
Thanks a lot
Matt
Hello!
This is a really great addition to ACF fields. Exactly what I was looking for!
I would have two feature request.
A) Option to format the input field as text-area (multiline) similar to ACF textarea field.
B)
It would be great if there would be a possibility to sanitize the text input and allow only the the formatting options, which are turned on to get saved.
For example. I only have b, I, u & link activated.
If the user nows copies a formatted text (e.g. Word file) it will saved in the database. This would probably screw up the text-field.
It would be a great solution, if this formatting is being deleted and only the once activated by the admin is carried over.
Thanks very much for your help!
I have read that you are searching contributors, hopefully several will join – I am sadly not a developer.
Hello John,
Thank you for the great plugin and all the other awesome support you offer for ACF — I often find your posts when searching for advanced ACF examples and tips.
I am looking for a way to add a class to the active paragraph tag in MediumEditor. Similar to the below SO question, except in my case I get nested p tags (<p><p class=”myclass”>text</p></p>).
Is there a way to use the editor options to check if the custom button tag should be nested or replace the selected parent?
Thank you for any help you can provide on this!
]]>How can I insert my Schema Markup code in editor with the help of this plugin?
]]>Hi, I would like to create a field that will have by default the list button activated.
Basically, I want the user to directly write in list mode.
I tried to add
as Default Value in the acf field setup but it is not working.
Thanks
]]>I don’t find the MEDIUM EDITOR FIELD TYPE
I have done some steps :
1. install the plugin (medium-editor)
2. I also use ACF 5.8.11 and I installed repeater field plugin. but i didn’t find this plugin as well when I tried to add new field.
Can you help me to breakdown step by step of installing the repeater field plugin and installing medium-editor plugin?
i could not find any tutorials in youtube or other places.
i am a beginner thus it’s little hard for me to understand the programming language.
Thankyou
]]>We are using the options to remove the “bold” and “underline” options in the menu – but medium editor still allows you to use the keyboard shortcuts ctrl-b & ctrl-u (for different fields mainly titles) [ and occasionally ctrl-i ]
We don’t want these tags to be stored – I have worked out how to fix this and applied a minor patch to the update_value function to remove them if the button options are disabled:
767 if( ! in_array(‘bold’, $field[‘standard_buttons’] ) ) {
768 $value = preg_replace( ‘/<\/?b>/’, ”, $value );
769 }
770 if( ! in_array(‘italic’, $field[‘standard_buttons’] ) ) {
771 $value = preg_replace( ‘/<\/?i>/’, ”, $value );
772 }
773 if( ! in_array(‘underline’, $field[‘standard_buttons’] ) ) {
774 $value = preg_replace( ‘/<\/?u>/’, ”, $value );
775 }
Hi, I have translate the plugin in French but I see this alert message on WordPress translation:
This plugin is not properly prepared for localization (View detailed logs on Slack). If you would like to translate this plugin, please contact the author.
Can you fix it please?
]]>First time using the plugin and think it’s great, really helps tweak the simple text content.
The main feature I’m using is to add links to the text, but there’s one issue, I can’t choose to open a link in a new window / tab.
Would it be possible to add this functionality? Maybe have two link options, one for internal, one for external?
Thanks for creating a great plugin!
]]>Hi,
I’m testing ACF Medium Editor Field ,
for a single line text , it works great ! Terrific, exactly what I need, thanks a lot.
But for multi-paragraph and bullet points, I have Issues:
1/
2/ When converting WYSIG Editor fields to Medium_text, with exiting paragraphs, all paragraphs are broken : the <p> tags are being removed, even with DisableReturn being unchecked.
If hit <Return> again in editor , it creates paragraphs normally. Only the conversion is failing.
Thanks
Please let me know if it’s more usefull to reports issues here or on github
Hi,
the plugin doesn’t work with Gutenberg there is an error in js.
Thanks,
Nino
This plugin seems to not be compatible with another very useful ACF plugin called ”
ACF Flexible Content Modal” – once a text is selected, options for text formatting do not appear.
Hi,
For some reason the soft return setting does not work.
I have checked ‘allowBreakInSingleLineInput’ and uncheck ‘disableReturn’.
I tried changing to the default theme and deactivated all plugins but it still acts like a normal break.
It used to work fine and on another site which I use it works fine.
I believe the problem started when I was adding some custom buttons via php (which I deleted).
Thanks for your help.
]]>Hi,
How complicated would it be to add a character limit to this field like the default act textarea has?
Thanks
]]>Hi there,
Not sure if I’m missing something.
I can’t see a way to let the toolbar fixed I mean to display it all the time, someone mentioned that there is an option but in my installation, I can’t see it.
I’m using ACF developer version.
Thanks
There is an issue with this plugin used on ACF 5.7.0. I am looking into this issue. My suggestion for now is to revert to 6.6.10 until I get this issue resolved.
]]>Please, add this string to translation file.
https://take.ms/I0Z5I
Hello.
I have a problem using text with accented letters (like à, è, ò, etc). The field doesn’t save the value if I type something with these kind of letters.
Great plugin btw! Thanks!
This plugin is pretty impressive, but I’m wondering how to get it to work on the frontend of a website.
]]>I don’t know why, but I’m no longer able to format the text. I am currently using ACF Medium editor on two installations (one live and one local). The live site had been working just fine and that’s why I installed the plugin on a new local site in development. In the local site, when I select text in the editor window, and click on the “I”, the text doesn’t change in the back end and, when the post is updated, the text doesn’t appear as italics in the front end either. Then I went to check the live site and found that any ACF-Medium-Editor fields I had used some time ago (at least a few weeks), the italics formatting was working as expected (front and back). But I couldn’t format any new text. Help, please!
]]>Hello!
I have a small improvement request for this plugin.
When the editor is empty and you hit backspace, then the cursor does this small jump.
See this image:
The first image is when backspace keydown is triggered, the second one (under the red line) is when backspace keyup is triggered.
What i can see is that when the editor is visibly empty (no characters) and you push backspace, you will remove the non-visible empty p-tag inside that is re-inserted after keyup is triggered. Therefore you get this jump. This may be fixed best in JavaScript, but i made a simple CSS-fix. Is this something you find worthy of implementing? Thoughts?
// Medium editor bugfix
add_action('admin_head', function(){
?>
<style type="text/css">
/* Medium Editor field normalizing bugfix */
.medium-editor-element:empty {
padding-top: 8px;
padding-bottom: 8px;
font-size: 13px;
line-height: 1.5;
}
.medium-editor-element > p:first-child {
margin-top: 6px;
}
.medium-editor-element > p:last-child {
margin-bottom: 4px;
}
</style>
<?php
});
Best regards, Robert Sather.
]]>Hello!
I love this plugin, use it on every site now ??
But i got the following error:
Warning: in_array() expects parameter 2 to be array, string given in /Users/robert/sites/wp-site/wordpress/wp-content/plugins/acf-medium-editor-field/fields/acf-medium-editor-v5.php on line 725
This happens when none of the checkboxes are checked under the settings “Other Medium Editor Options”.
I would propose to replace line 725 in fields/acf-medium-editor-v5.php with:
if (is_array($field['other_options']) && in_array('disableReturn', $field['other_options'])) {
.
What do you think?
Note that i’m running WP with WP_DEBUG = true.
Best regards, Robert Sather.
]]>Hello! ??
I love this plugin, thank you so much!
It adds a much needed editor for those simple text changes.
But in the latest version i can’t seem to find the option for anchor-tags. I have looked into the code and i can see that the anchor-tag is there i version 2.0.2 but after your refactor in version 2.1.0 there are no options for allowing the anchor-tag in the field.
Is there ar reason for this or just a bug?
Hope to hear from you soon ??
fields/acf-medium-editor-v5.php:46 in property “$this->button_types”
Again thank you for a really nice plugin!
Best regards, Robert Sather.
Hi, it is possible change some CSS for better UI look like tinymce editor? Black is strange.. thx!
]]>