{"id":49932,"date":"2016-07-31T22:47:44","date_gmt":"2016-07-31T22:47:44","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/table-of-contents-for-tinymce\/"},"modified":"2016-07-31T22:47:44","modified_gmt":"2016-07-31T22:47:44","slug":"table-of-contents-for-tinymce","status":"publish","type":"plugin","link":"https:\/\/hau.wordpress.org\/plugins\/table-of-contents-for-tinymce\/","author":15064635,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.0","stable_tag":"trunk","tested":"4.5.33","requires":"4.0","requires_php":"","requires_plugins":"","header_name":"TinyMCE Table of Contents","header_author":"Julen Pardo","header_description":"","assets_banners_color":"","last_updated":"2016-07-31 22:47:44","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"https:\/\/github.com\/julenpardo\/tinymce-table-of-contents","header_author_uri":"https:\/\/github.com\/julenpardo","rating":0,"author_block_rating":0,"active_installs":50,"downloads":2812,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["v1.0"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":"1464516","resolution":"1","location":"assets"},"screenshot-2.png":{"filename":"screenshot-2.png","revision":"1464516","resolution":"2","location":"assets"},"screenshot-3.png":{"filename":"screenshot-3.png","revision":"1464516","resolution":"3","location":"assets"}},"screenshots":{"1":"TinyMCE Table of Contents in the editor","2":"Options for creating table of contents","3":"Generated table of contents"},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[1403,10851,1719],"plugin_category":[46],"plugin_contributors":[91634],"plugin_business_model":[],"class_list":["post-49932","plugin","type-plugin","status-publish","hentry","plugin_tags-index","plugin_tags-table-of-contents","plugin_tags-tinymce","plugin_category-editor-and-writing","plugin_contributors-julenpardo","plugin_committers-julenpardo"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/table-of-contents-for-tinymce.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/table-of-contents-for-tinymce\/assets\/screenshot-1.png?rev=1464516","caption":"TinyMCE Table of Contents in the editor"},{"src":"https:\/\/ps.w.org\/table-of-contents-for-tinymce\/assets\/screenshot-2.png?rev=1464516","caption":"Options for creating table of contents"},{"src":"https:\/\/ps.w.org\/table-of-contents-for-tinymce\/assets\/screenshot-3.png?rev=1464516","caption":"Generated table of contents"}],"raw_content":"<!--section=description-->\n<p>How much time have you spent every time you have created a table of contents manually? Or you may even haven't do it because of the pain that it would suppose to do it manually?<\/p>\n\n<p>With this plugin, you will be able to generate tables of contents for your posts in a completely easy, automated and personalizable way. It automatically looks for every &lt;h*&gt; tag, to generate the table entries for them.<\/p>\n\n<p>Features:<\/p>\n\n<ul>\n<li>Configuration of the depth level of the table.<\/li>\n<li>Configuration of the indentation of the levels of the table.<\/li>\n<li>Option to add to the elements of the table link to each section.<\/li>\n<\/ul>\n\n<!--section=installation-->\n<p>If you have ever installed a WordPress plugin, then installation will be pretty easy:<\/p>\n\n<ol>\n<li>Download the TinyMCE Table of Contents plugin and extract the files.<\/li>\n<li>You should have now a directory named 'tinymce-table-of-contents' with some files in its root. Copy this directory into '\/path\/to\/wordpress\/wp-contents\/plugins'.<\/li>\n<li>Enable the plugin from WordPress (Plugins &gt; Installed Plugins &gt;Activate option, for TinyMCE Table of Contents).<\/li>\n<li>A new element should now appear in TinyMCE editor. Just click it and select the options you want for your table of contents.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt>How are links added? If my titles already have an id attribute, will they be overwritten?<\/dt>\n<dd><p>The links are added by adding an id attribute to each title appearing in the table of contents, but only if it doesn't have it; original id attributes are not overwritten, not to break any other possible reference.<\/p>\n\n<p>The format of the generated id is \"section_x\", \"section_x_y\", etc. Then, the link is just a hyperlink to the \"id\" (e.g., \"&lt; a href='#section_x'&gt;Section X\").<\/p><\/dd>\n<dt>How is the indentation added?<\/dt>\n<dd><p>The indentation of each level of the table is just a set of <code>&amp;nbsp;<\/code>, styled with <code>white-space: pre;<\/code>, to make the browser preserve them.<\/p><\/dd>\n<dt>How do I notify about a bug\/feature request?<\/dt>\n<dd><p>Open an issue in the <a href=\"https:\/\/github.com\/julenpardo\/tinymce-table-of-contents\/issues\">bug tracker<\/a>, giving as much as information possible:<\/p>\n\n<ul>\n<li>For bugs: steps to reproduce; WordPress version.<\/li>\n<li>For features: a detailed description of what is wanted to achieve.<\/li>\n<\/ul><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.0<\/h4>\n\n<p>First release.<\/p>","raw_excerpt":"Completely automated and instantaneous way of generating tables of contents for posts.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/hau.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/49932","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hau.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/hau.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/hau.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=49932"}],"author":[{"embeddable":true,"href":"https:\/\/hau.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/julenpardo"}],"wp:attachment":[{"href":"https:\/\/hau.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=49932"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/hau.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=49932"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/hau.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=49932"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/hau.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=49932"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/hau.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=49932"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/hau.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=49932"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}