Linux 软件免费装

KayzArt Live Code Editor

开发者 ksartoffice
更新时间 2026年4月7日 13:38
PHP版本: 8.2 及以上
WordPress版本: 6.9
版权: GPL-2.0-or-later
版权网址: 版权信息

标签

shortcode code editor codemirror live preview tailwind

下载

1.3.5 1.3.6

详情介绍:

KayzArt Live Code Editor provides a dedicated editor for building HTML, CSS, and JavaScript snippets with a live preview. It adds a "KayzArt" custom post type, opens new KayzArt posts in the editor, and adds an "Edit with KayzArt" button to the standard editor. Features:

安装:

  1. Upload the plugin folder to /wp-content/plugins/kayzart-live-code-editor/.
  2. Activate KayzArt Live Code Editor through the Plugins screen.
  3. Go to KayzArt in the admin menu and create a new KayzArt item.

屏幕截图:

  • Tailwind CSS mode.

常见问题:

Who can edit KayzArt posts?

Users who can edit the post can use the editor. JavaScript, external scripts/styles, shadow DOM, external embedding, and single-page settings require the unfiltered_html capability.

Does KayzArt contact external servers by default?

No. External requests are disabled by default. Requests are made only when you explicitly configure external HTTPS script/style URLs in KayzArt settings.

How do I embed a page created with KayzArt?

Enable external embedding in KayzArt settings, then use [kayzart post_id="123"] with the post ID of the page you created in KayzArt. For shortcode execution inside the embedded content, add allowed tags in KayzArt settings (one tag per line). Non-allowlisted tags remain plain text.

Can I disable the single page view?

Yes. Enable external embedding and turn on "Do not publish as single page." Disabled single pages are marked noindex and excluded from search/archives, and the single-page request is redirected (or can be forced to 404 via the kayzart_single_page_redirect filter).

Can I switch between Normal and Tailwind modes?

The setup wizard lets you choose Normal or Tailwind. The choice is locked per KayzArt post.

Which Tailwind CSS version is supported?

Tailwind mode supports Tailwind CSS v4.

How does template mode work?

Each KayzArt post can use Default, Standalone, or Theme template mode. Default follows KayzArt > Settings > Default template mode. If Theme mode does not expose the_content in your theme, KayzArt preview prompts to switch to Standalone.

Can I change the KayzArt URL slug?

Yes. Go to KayzArt > Settings and update the KayzArt slug.

Can I set a default template mode for new previews?

Yes. Go to KayzArt > Settings and set the Default template mode (Standalone/Theme).

Does the plugin delete data on uninstall?

By default, KayzArt posts are kept when the plugin is uninstalled. You can enable data removal from the KayzArt > Settings screen.

Where is the code stored?

HTML is stored in the post content. CSS/JS and other settings are stored in post meta.

Where is the development repository and how do I build the plugin?

Development repository: https://github.com/ksartoffice/kayzart-live-code-editor Generated files in the distributed plugin:

  • assets/dist/main.js
  • assets/dist/style.css Source files and build configuration in this repository:
  • src/admin/main.ts and src/admin/style.css (plus related source files under src/admin/)
  • package.json, package-lock.json, vite.config.ts, tsconfig.json Build commands:
  • npm install
  • composer install
  • npm run build
  • npm run plugin-zip

更新日志:

1.3.6 1.3.5 1.3.4 1.3.3 1.3.2 1.3.1 1.3.0 1.2.1 1.2.0 1.1.3 1.1.2 1.1.1 1.1.0 1.0.1