Skip to content

Commit

Permalink
allow html
Browse files Browse the repository at this point in the history
  • Loading branch information
etcook committed Aug 15, 2014
1 parent dd6c4c1 commit 4caeb8e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion admin/assets/js/tinymce/aiview/plugin.js
Expand Up @@ -24,9 +24,13 @@ tinymce.PluginManager.add('aiview', function( editor ) {
return st;
}

function delAesopComponent( component ) {

}

function restoreAesopShortcodes( content ) {

return content.replace( /<div class="[^"]+aesop-component.*aesop-sc="([^"]+)"[\s\S]*aesop-content[^>]*>([^<]*)<\/div><\/div>/g, function( component, sc, content ) {
return content.replace( /<div class="[^"]+aesop-component.*aesop-sc="([^"]+)"[\s\S]*aesop-content[^>]*>(.*)<\/div>[\s\S]?<\/div>/g, function( component, sc, content ) {
//var data = getAttr( component, 'data-aesop-sc' );
sc = window.decodeURIComponent(sc);

Expand Down

0 comments on commit 4caeb8e

Please sign in to comment.