<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: takitakit</title>
    <description>The latest articles on DEV Community by takitakit (@takitakit).</description>
    <link>https://dev.to/takitakit</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F167805%2Fe0b80baa-9a60-44d9-ab9f-f44267b0f774.jpeg</url>
      <title>DEV Community: takitakit</title>
      <link>https://dev.to/takitakit</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/takitakit"/>
    <language>en</language>
    <item>
      <title>I developed a block editor made by Vue.js</title>
      <dc:creator>takitakit</dc:creator>
      <pubDate>Thu, 16 May 2019 03:54:00 +0000</pubDate>
      <link>https://dev.to/takitakit/i-developed-a-block-editor-made-by-vue-js-d8f</link>
      <guid>https://dev.to/takitakit/i-developed-a-block-editor-made-by-vue-js-d8f</guid>
      <description>&lt;p&gt;Here is a demo page.&lt;/p&gt;

&lt;p&gt;&lt;iframe height="600" src="https://codepen.io/takitakit/embed/RmpVKL?height=600&amp;amp;default-tab=result&amp;amp;embed-version=2"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

&lt;h1&gt;
  
  
  Background
&lt;/h1&gt;

&lt;p&gt;If I produce WordPress or CMS and provide it to my customer,&lt;br&gt;
I find the following issues with the WYSIWYG editor:.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;It is difficult to use unless you get used to it.&lt;/li&gt;
&lt;li&gt;Even if you get used to it, there is a case that the markup may collapse.&lt;/li&gt;
&lt;li&gt;Difficult or cumbersome to limit format of markup output&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;As an alternative to the WYSIWYG editor, we have developed an editor that meets the following requirements:.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Easy to use, easy to use even if you are not used to it&lt;/li&gt;
&lt;li&gt;Minimize markup editing&lt;/li&gt;
&lt;li&gt;Easily limit markup&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;You can find the source on &lt;a href="https://github.com/takitakit/block-editor-vue"&gt;Github&lt;/a&gt; for more information.&lt;/p&gt;
&lt;h1&gt;
  
  
  What This Editor Can Do
&lt;/h1&gt;

&lt;ul&gt;
&lt;li&gt;To edit any combination of predetermined block elements and output a single markup as a whole.&lt;/li&gt;
&lt;li&gt;Exporting or importing tags from hidden elements (Assumes POST on management screen)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;To improve usability, you can't edit HTML markup directly or paste styled text directly from Word.&lt;/p&gt;
&lt;h1&gt;
  
  
  Usage
&lt;/h1&gt;

&lt;p&gt;The types of block elements that can be used are:.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Paragraph (Text + Image)&lt;/li&gt;
&lt;li&gt;Heading&lt;/li&gt;
&lt;li&gt;List.&lt;/li&gt;
&lt;li&gt;Table&lt;/li&gt;
&lt;li&gt;Columns (Nest non-column elements)&lt;/li&gt;
&lt;li&gt;HTML (Enter any HTML markup)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The markup output is somewhat specific for each block element.&lt;br&gt;
For example, for a paragraph:.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;div&lt;/span&gt; &lt;span class="na"&gt;class=&lt;/span&gt;&lt;span class="s"&gt;"paragraph-wrap align-left"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;div&lt;/span&gt; &lt;span class="na"&gt;class=&lt;/span&gt;&lt;span class="s"&gt;"text"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
        "&lt;span class="nt"&gt;&amp;lt;a&lt;/span&gt; &lt;span class="na"&gt;href=&lt;/span&gt;&lt;span class="s"&gt;"https://github.com/takitakit/block-editor-vue"&lt;/span&gt; &lt;span class="na"&gt;target=&lt;/span&gt;&lt;span class="s"&gt;"_blank"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;block-editor-vue&lt;span class="nt"&gt;&amp;lt;/a&amp;gt;&lt;/span&gt;" is a block editor that allows you to stack any combination of block elements, such as paragraphs, headings, lists, and so on.&lt;span class="nt"&gt;&amp;lt;br&amp;gt;&lt;/span&gt;If you are using the CMS management screen, you can use this editor as a means of editing the body HTML of an article.
    &lt;span class="nt"&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;p&gt;The class name (paragraph-wrap) can be changed as an option so that it can be used in various cases.&lt;/p&gt;

&lt;h2&gt;
  
  
  Other Features
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Limit the types of block elements available. &lt;a href="https://codepen.io/takitakit/pen/XwpeEj/"&gt;Demo&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Name a preset with specific block elements, class names, and so on. &lt;a href="https://codepen.io/takitakit/pen/arNwGv/"&gt;Demo&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Applying Text Styles Within Block Elements. &lt;a href="https://codepen.io/takitakit/pen/OYWzmg/"&gt;Demo&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you read this article and have any comments or requests, please send me your comments.&lt;/p&gt;

</description>
      <category>vue</category>
      <category>javascript</category>
    </item>
  </channel>
</rss>
