<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>play-chiba</author_name>
  <author_url>https://blog.hatena.ne.jp/play-chiba/</author_url>
  <blog_title>PLAY DEVELOPERS BLOG</blog_title>
  <blog_url>https://developers.play.jp/</blog_url>
  <categories>
    <anon>React</anon>
  </categories>
  <description>こんにちは。SaaSプロダクト開発部の千葉です。 今回は、最近試した「React 対応の WYSIWYG エディタで HTML 文字列を（class などの属性値を維持しながら）編集する」方法をまとめていきたいと思います。 WYSIWYG エディタとは React 対応 WYSIWYG エディタの選定 Draft.js で HTML 文字列を出力する基本的な実装 解説 基本的な実装での課題 Draft.js を深くいじって解決 解説 まとめ WYSIWYG エディタとは 今回の要件は、HTML 文字列を「編集前と編集後で class などの属性値を維持しながら編集する」ことです。 この条件を満…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fdevelopers.play.jp%2Fentry%2F2023%2F06%2F02%2F190001&quot; title=&quot;React 対応 WYSIWYG エディタ Draft.js を試してみた - PLAY DEVELOPERS BLOG&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://cdn-ak.f.st-hatena.com/images/fotolife/p/playjp/20230602/20230602185509.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2023-06-02 19:00:01</published>
  <title>React 対応 WYSIWYG エディタ Draft.js を試してみた</title>
  <type>rich</type>
  <url>https://developers.play.jp/entry/2023/06/02/190001</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
