[wordpress插件] Customize Inline Editing自定义内联编辑

wordpress 插件 文章 2020-04-10 15:41 479 0 全屏看文

AI助手支持GPT4.0

评分
100
描述

In WordPress 4.5 the selective refresh<

在WordPress 4.5中,选择性刷新<

/a> framework was introduced in core.

/ a>框架是在核心中引入的。

One of the key concepts in this framework is the “partial”, the region in a document which is selectively refreshed when a related setting is modified.

此框架中的关键概念之一是“部分”,即文档中的区域,当修改相关设置时会选择性地刷新该区域。

This means that one or more settings are linked with a given element in the preview.

这意味着一个或多个设置与预览中的给定元素链接。

When selective refresh was first was introduced it supported the ability for a user to “shift click” on a partial to jump to and focus on the related control in the pane.

首次引入选择性刷新时,它支持用户“局部单击”并在窗格中跳转并关注相关控件的功能。

In WordPress 4.7 this was then enhanced with visible edit shortcuts so that users could click (touch even) on the icon to be able to reveal the control in the pane.

“>可见的编辑快捷方式,以便用户可以在图标上单击(甚至触摸)以在窗格中显示控件。

The Customize Inline Editing plugin builds on edit shortcuts by allowing the setting to be modified inline via direct manipulation in the preview without having focus removed and placed on the controls pane.

Customize Inline Editing插件建立在编辑快捷方式的基础上,允许在预览中直接操作直接修改设置,而无需将焦点移到控件窗格上。

This is particularly useful on mobile devices on small screens where a user cannot both see the controls and preview at the same time, as can be compared here:

这在小屏幕的移动设备上特别有用,因为用户无法同时看到控件和预览,因此可以在此处进行比较:

"}]; jQuery(function(){ $("#article_content").find("a").each(function(){ var url = $(this).attr("href"); for(var i=0;i"+c+"

"); } } }) })