feat(creator-studio): switch writing editor to TinyMCE
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
4868de2cda
commit
384d2b7aa0
25 files changed
+1255
-7076
No files matched your search
@@ -214,7 +214,7 @@ final class CreatorRest {
|
||||
$data = [
|
||||
'posts_id' => $post_id,
|
||||
'post_title' => $payload['title'],
|
||||
'post_content' => $this->block_content($payload['content']),
|
||||
'post_content' => $payload['content'],
|
||||
'excerpt' => $payload['excerpt'],
|
||||
'category' => $payload['categories'],
|
||||
'tags' => implode(',', array_map('strval', $payload['tags'])),
|
||||
@@ -298,7 +298,7 @@ final class CreatorRest {
|
||||
$data = [
|
||||
'posts_id' => $post_id,
|
||||
'post_title' => $payload['title'],
|
||||
'post_content' => $this->block_content($payload['content']),
|
||||
'post_content' => $payload['content'],
|
||||
'excerpt' => $payload['excerpt'],
|
||||
'category' => $payload['categories'],
|
||||
'tags' => implode(',', array_map('strval', $payload['tags'])),
|
||||
@@ -507,13 +507,6 @@ final class CreatorRest {
|
||||
PrivateAssets::claim_many($keys, $post_id, $user_id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 客户端提交的是 JSON 区块,落到 post_content 前统一交给 wp_kses。
|
||||
*/
|
||||
private function block_content(string $content): string {
|
||||
return $content;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array<string, mixed> $settings
|
||||
* @return array<string, mixed>
|
||||
|
||||
Reference in new issue
Block a user