HTML5 Figure, Figcatpion and TinyMCE
2 posts by 2 authors in: Forums > CMS Builder
Last Post: February 22, 2016 (RSS)
By In-House-Logic - December 22, 2015 - edited: February 18, 2016
Hi there,
Does anyone have advice on implementing the plug-in for TinyMCE to support the HTML5 FIGURE and FIGCAPTION tags? Am exploring some jQuery libs to restructure the IMG and ALT tag code as rendered in the browser but would rather do it properly in the first place. Unlike some other editors, TinyMCE does not seem to have noticed HTML5.
Ideas and suggestions welcome.
Jayme
Feb. 18, 2016: BUMP
By Damon - February 22, 2016
Hi Jayme,
In the current version of TinyMCE, what about using the Template Plugin for adding in custom template content:
http://archive.tinymce.com/wiki.php/Plugin3x:template
You could create a template with code that could be selected and inserted into the WYSIWYG editor content like this:
<figure>
<img src="image.jpg" alt="NAME" width="304" height="228">
<figcaption>Image caption</figcaption>
</figure>
The user could then select the image and replace with another along with select and replace the image caption text.
Damon Edis - interactivetools.com
Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/