King Composer - Textarea Field,Textarea-HTML,Editor Field不工作

时间:2016-05-20 04:56:15

标签: php wordpress-plugin

我为客户构建主题,但我遇到@Component public class CustomRequestMappingHandlerMapping extends RequestMappingHandlerMapping { @Override protected RequestMappingInfo getMappingForMethod( Method method, Class<?> handlerType ) { RequestMappingInfo info = super.getMappingForMethod( method, handlerType ); ApiVersion methodApiVersion = AnnotationUtils.findAnnotation( method, ApiVersion.class ); ApiVersion typeApiVersion = AnnotationUtils.findAnnotation( handlerType, ApiVersion.class ); if ( typeApiVersion == null ) { return info; } Set<String> oldPatterns = info.getPatternsCondition().getPatterns(); Set<String> patterns = new HashSet<>(); for ( String p : oldPatterns ) { for ( int v = 0; v < typeApiVersion.value().length; v++ ) { ApiVersion.Version version = typeApiVersion.value()[v]; if ( !p.startsWith( version.getValue() ) ) { if ( p.startsWith( "/" ) ) patterns.add( "/" + version.getValue() + p ); else patterns.add( "/" + version.getValue() + "/" + p ); } else { patterns.add( p ); } } } PatternsRequestCondition patternsRequestCondition = new PatternsRequestCondition( patterns.toArray( new String[]{} ), null, null, true, true, null ); RequestMappingInfo mappingInfo = new RequestMappingInfo( null, patternsRequestCondition, info.getMethodsCondition(), info.getParamsCondition(), info.getHeadersCondition(), info.getConsumesCondition(), info.getProducesCondition(), info.getCustomCondition() ); return mappingInfo; } } 的问题 - textarea和编辑params不工作。

当我将params添加为textarea或编辑器时,它变得很好。但输出值显示意外的文本。

我添加了King Composer但是它显示了此文see screenshot output http://prntscr.com/b66vfs

之前是否有人遇到过这些问题?

1 个答案:

答案 0 :(得分:-1)

感谢您对我们的插件感兴趣。 几天前你的问题就解决了。

请更新到最新版本以获得该功能。 请点击https://wordpress.org/support/topic/textarea-field-textarea-html-editor-field-not-working?replies=4

了解更多信息