Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Froala is breaking code when editing blade templates with {% %} #4758

Open
mkhvsl opened this issue Mar 11, 2024 · 0 comments
Open

Froala is breaking code when editing blade templates with {% %} #4758

mkhvsl opened this issue Mar 11, 2024 · 0 comments

Comments

@mkhvsl
Copy link

mkhvsl commented Mar 11, 2024

Hello, Im trying to use Froala for blade template editing and its breaking templates. Here is the input:

<div id="froala-editor">
  <table>
        <tr>
            <th>Test</th>
        </tr>
        {% for item in items %}
        <tr>
          <td>{{ item.name }}</td>
        </tr>
        {% endfor %}
    </table>
</div>

and in editor Im getting this

<p>{% for item in items %} {% endfor %}</p>

<table>
	<thead>
		<tr>
			<th>Test</th>
		</tr>
	</thead>
	<tbody>
		<tr>
			<td>{{ item.name }}</td>
		</tr>
	</tbody>
</table>

Please advise how to make it work properly.

If you have a feature suggestion, please add it on the Feature List instead.

Expected behavior.

(Describe expected behaviour here)

Actual behavior.

(Describe actual behaviour here)

Steps to reproduce the problem.

(Describe the steps to reproduce the problem here. A jsFiddle is awesome when possible.)

Editor version.

If you don't know it, please see https://wysiwyg-editor.froala.help/hc/en-us/articles/360000717049-How-can-I-find-my-editor-version-.

OS.

(OS name and version here)

Browser.

(Browser name an version here)

Recording.

(A recording showing how to reproduce the problem)

@mkhvsl mkhvsl changed the title Froala is breaking code when editing templates with {% %} Froala is breaking code when editing blade templates with {% %} Mar 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant