Gutenberg block don’t save rich text content

Short Answer: When saving an attribute, always respect the attribute type. So if your attribute is of the array type, then save the value as an array, e.g. props.setAttributes( { innerContent: [ content ] } ). Longer Answer Your register_block_type() call is missing the editor_script parameter. See the block editor handbook for details, but basically, … Read more

Trouble with AJAX using GET

So, it turns out I’m an idiot. For some reason, Aptana changed what permissions files got uploaded with. I fixed that, and logged into the server to update the permissions on the files already uploaded, and it worked fine.

Change (replace) tags to tags

As @Sally CJ mentioned, you should set a result of str_replace() to a variable. For a content you chose a right filter – the_content, for tinymce editor you need to use the_editor filter. As they a similar, you can use one function for both filters. In my example I use only one str_replace for opening … Read more