Froala:图像插入是否只能将图像上传到服务器而不是编辑器?

时间:2018-03-16 17:47:30

标签: angularjs froala

我希望用户使用上传图片按钮在服务器中上传图片,然后在需要时使用图片管理器访问图片。 目前,我用这个

events: {   
          //This prevent the default image insert in the editor
          'froalaEditor.image.uploaded': function (e, editor, response) {
           $('#froala-editor').froalaEditor('commands.undo');
           $(".fr-image-resizer.fr-active").css("display", "none");
           $('#froala-editor').froalaEditor('imageManager.show');
           }   
}

这会将图像上传到服务器中,然后在编辑器中撤消插入的图像。然后打开图像管理器,在那里可以看到图像。 问题是编辑器仍然包含图像编辑按钮弹出窗口(imageEditButtons),您必须在编辑器中单击以将此弹出窗口取消聚焦 这种定制有更好的方法吗?

1 个答案:

答案 0 :(得分:0)

  /root/httpd-2.4.29/srclib/apr/libtool --silent --mode=link /usr/local/ssl/fips-2.0/bin/fipsld  -g -O2 -pthread   -L/usr/local/ssl/lib -lssl -lcrypto -luuid -lrt -lcrypt -lpthread -ldl  \
         -o ab  ab.lo       /root/httpd-2.4.29/srclib/apr-util/libaprutil-1.la -lexpat /root/httpd-2.4.29/srclib/apr/libapr-1.la -luuid -lrt -lcrypt -lpthread -ldl -lm
./.libs/ab: error while loading shared libraries: libaprutil-1.so.0: cannot open shared object file: No such file or directory
Makefile:73: recipe for target 'ab' failed
make[2]: *** [ab] Error 127
make[2]: Leaving directory '/root/httpd-2.4.29/support'
/root/httpd-2.4.29/build/rules.mk:75: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/root/httpd-2.4.29/support'
/root/httpd-2.4.29/build/rules.mk:75: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1