Wysiwyg-editor: Special-tags img bug - froala_editor.min.js is throwing an error c.replace is not a function with angular2

Created on 17 Jan 2017  路  5Comments  路  Source: froala/wysiwyg-editor

Froala editor used on img tag in combination with angular2-froal-wysiwyg is throwing the following error:

TypeError: c.replace is not a function
    at Object.p [as html] (froala_editor.min.js:8)
    at b.z (froala_editor.min.js:8)
    at HTMLImageElement.<anonymous> (froala_editor.min.js:7)
    at Function.each (jquery.js:365)
    at jQuery.fn.init.each (jquery.js:137)
    at jQuery.fn.init.a.fn.froalaEditor (froala_editor.min.js:7)
    at HTMLImageElement.<anonymous> (froala.directives.ts:115)
    at HTMLImageElement.dispatch (jquery.js:4737)
    at HTMLImageElement.elemData.handle (jquery.js:4549)
    at Object.trigger (jquery.js:7807)

I guess there is a build incompatibility of wysiwyg-froala:2.4.0 with angular2-froala-wysiwyg: 2.3.4-rc.1. I guess this is likely related to froala editor core, thus I repost it here.

Original question in angular2-froala-wysiwyg editor: https://github.com/froala/angular2-froala-wysiwyg/issues/24

using through npm "froala-editor": "^2.4.0", "angular2-froala-wyswiyg": "^2.3.4-rc.1" which both are latest.

Browser.

ios chrome latest

Most helpful comment

This is happening to me..

All 5 comments

Thanks for reporting this. I am going to close this here since it is a duplicate with the one from the Angular repo.

@stefanneculai Is this problem related to froala core editor or to angular2 directives?

This is happening to me..

Happening to me too.

@ferdaousharmel please upgrade to the latest version 2.7.1. Thank you.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Krisell picture Krisell  路  3Comments

bnjmnfnk picture bnjmnfnk  路  4Comments

rogersteblerbsi picture rogersteblerbsi  路  3Comments

adilsonb picture adilsonb  路  3Comments

DerekJDev picture DerekJDev  路  3Comments