October: Changes made in code view of Froala not saving

Created on 8 Jun 2016  路  8Comments  路  Source: octobercms/october

If any changes are made in code view of Froala(Was present in previous editor as well) we have to swap back to design view and then save to make sure the changes have taken effect.

Medium Completed Bug

Most helpful comment

Expected behavior

Submitting while the RichEditor is source mode should take the latest value present in the source mode editor instead of the latest from the WYSIWYG mode.

Actual behavior

Submitting while the RichEditor is in source mode does not send the actual value. We need to switch to WYSIWYG mode to persist it.

Reproduce steps
  • Install Rainlab.Pages plugin
  • Create a new Page using the Pages plugin
  • Set a title and url
  • Switch the content editor to source mode
  • Type something like <p>Hellow World!</p>
  • Save either using the _Save_ button or keyboard shortcut
  • Reload the browser
  • Open the test page
  • The content is empty
October build

345

Plugins version

Rainlab.Pages 1.2.6

All 8 comments

Expected behavior

Submitting while the RichEditor is source mode should take the latest value present in the source mode editor instead of the latest from the WYSIWYG mode.

Actual behavior

Submitting while the RichEditor is in source mode does not send the actual value. We need to switch to WYSIWYG mode to persist it.

Reproduce steps
  • Install Rainlab.Pages plugin
  • Create a new Page using the Pages plugin
  • Set a title and url
  • Switch the content editor to source mode
  • Type something like <p>Hellow World!</p>
  • Save either using the _Save_ button or keyboard shortcut
  • Reload the browser
  • Open the test page
  • The content is empty
October build

345

Plugins version

Rainlab.Pages 1.2.6

@Benpxpx with Redactor, the editor was adding some HTML stuff (div, p), is it the same issue here? I am unable to test the new editor from here.

@FelixINX When I've been switching between code view and design view, I've not noticed any extra HTML added to the code when I switch back to code view.

@gabsource Thank you for doing that, very much appreciated. I didn't have time to do the full one until today, but you beat me too it.

I have the same issue. Any fixes?

+1, same issue for me

This is still an issue/bug as of build 361

Thanks, it is labelled medium priority and will be looked at soon.

Was this page helpful?
0 / 5 - 0 ratings