CodeMagic is an advanced source code editor plugin for Tinymce. It integrates the CodeMirror library for syntax coloring, and the JSBeautifier library for code formating and indentation.
MIT License
33
stars
14
forks
source link
Clicking Update when "Syntax highlighting" option has been turned off reloads previous content and syntax highlighting turned on #11
screen refreshes and CodeMagic dialogue shows previous data with syntax highlighting turned on.
Desired behavior:
open CodeMagic (note current data)
uncheck "Syntax highlighting"
enter input
click Update
latest input from textbox field get sent unchanged to destination (usually main TinyMCE edit screen)
Work around:
open CodeMagic (note current data)
uncheck "Syntax highlighting"
enter input
check "Syntax highlighting" (changes to text should persist)
click Update (changes should persist)
One of the best features of CodeMagic (when used for WordPress) is that it provides a standard textbox input field when syntax highlighting is turned off. This allows a user to use an add-on such as FireFox's It's All Text which allows editing in any external editor and populates the textbox upon saving in the external editor.
Current behavior:
Desired behavior:
Work around:
One of the best features of CodeMagic (when used for WordPress) is that it provides a standard textbox input field when syntax highlighting is turned off. This allows a user to use an add-on such as FireFox's It's All Text which allows editing in any external editor and populates the textbox upon saving in the external editor.