I am using mce editor for some formatted content. That content is stored in metadata. Now when I render the content it does render the content but the styles for the contents are missing like "aligncenter" etc. Basically, the mce editor or it depended on which actually format the content to look the same as in the editor.
So I need to know the handle of CSS or a way to include that missing CSS so my content can be shown with proper formatting.
I think I am missing this. /wp-includes/js/tinymce/skins/wordpress/wp-content.css
Let me know what can I do.
Edit: I am using this code to generate editor.
wp.editor.initialize(
editor_id,
{
tinymce: {
wpautop: true,
plugins : 'charmap colorpicker compat3x directionality fullscreen hr image lists media paste tabfocus textcolor wordpress wpautoresize wpdialogs wpeditimage wpemoji wpgallery wplink wptextpattern wpview',
toolbar1: 'bold italic underline strikethrough | bullist numlist | blockquote hr wp_more | alignleft aligncenter alignright | link unlink | fullscreen | wp_adv',
toolbar2: 'formatselect alignjustify forecolor | pastetext removeformat charmap | outdent indent | undo redo | wp_help'
},
quicktags: true,
mediaButtons: true,
}
);
wp_editor
function? And if so what are its parameters and where is it called? Or did you use javascript?