Reputation: 615
Jodit Pro Version: v4.2.34 Browser: Chrome OS: Mac Is React App: False Reproduced on xdsoft.net: N/A Since you can't save.
Steps to duplicate.
pasteCode
button and choose PHP
from the dropdown menu.<?php echo "Hello World"; ?>
<pre><code class="language-php"><?php echo "Hello World"; ?></code></pre>
<textarea>
tags you will see this.<textarea name="contents" autocomplete="off" ID="jodit_contents" rows = "7" cols = "40" >
<pre><code class="language-php"><?php echo "Hello World"; ?></code></pre>
</textarea>
<pre><code class="language-php"></code></pre>
<pre><code class="language-php"><!--?php echo "Hello World"; ?--></code></pre>
ADDITIONAL: Pasting the php code directly in the editor as html without the pasteCode plugin results in this when viewing the above source I see this even before pressing undo
<div style="color: #cccccc;background-color: #1f1f1f;font-family: 'Cascadia Code', Menlo, Monaco, 'Courier New', monospace;font-weight: normal;font-size: 16.024px;line-height: 24px;white-space: pre;">
<div><span style="color: #cccccc;">
<!--?php echo "Hello World"; ?-->
</span><br></div>
Somehow, at sometime, my code is being converted to this:
<!--?php echo "Hello World"; ?-->
How can I use php tags with the codePaste plugin?
Upvotes: 0
Views: 14