How to disable style filtering in post?

Embedding a div container with an inline style attribute is not the way to do it. Your problem of WordPress stripping out certain attributes is a side effect of your real problem, not the problem itself. You shouldn’t be styling things inline, this isn’t 1997, use CSS classes instead You shouldn’t need to put custom … Read more

Callback function quicktags that uses variable in start tag

Managed to find out how: function callback_wrap(e, c, ed) { var course = getSelectedText(“_lesson_course”); var module_info = jQuery(“#title”).val(); var module_nr = module_info.match( /\d+/g ); var start = ed.canvas.selectionStart; var end = ed.canvas.selectionEnd; var content = jQuery(“#content”).val(); console.log(start); console.log(end); console.log(ed); var selected = content.slice(start, end); var string = ‘<div class=”moudle-area”>’+selected+'<p>[Tweet “I just completed Module ‘+module_nr+’ of … Read more