RoadFlow2.1 临时演示

roadui.editor.js 620B

123456789101112131415161718192021
  1. //编辑器
  2. ; RoadUI.Editor = function ()
  3. {
  4. var instance = this;
  5. this.init = function ($editors)
  6. {
  7. $editors.each(function ()
  8. {
  9. var id = $(this).attr('id');
  10. var width = $(this).attr('width') || "100%";
  11. var height = $(this).attr('height') || "300";
  12. var readonly = "readonly" == $(this).attr('readonly') || "1" == $(this).attr('readonly') ? true : false;
  13. UE.getEditor(id, {
  14. initialFrameWidth: width,
  15. initialFrameHeight: height,
  16. readonly: readonly
  17. });
  18. });
  19. };
  20. }