Skip to content

Commit

Permalink
fix: show iframe title in the editor
Browse files Browse the repository at this point in the history
Closes #990
  • Loading branch information
Skaiir committed Jan 31, 2024
1 parent 4d7b929 commit c8738d0
Showing 1 changed file with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,17 +1,21 @@
import {
iconsByType,
IFrame
IFrame,
Label
} from '@bpmn-io/form-js-viewer';

import { editorFormFieldClasses } from '../Util';

export function EditorIFrame(props) {
const { field } = props;
const { field, domId } = props;

const { label } = field;

const Icon = iconsByType(field.type);

return <div class={ editorFormFieldClasses(field.type) }>
<div class="fjs-iframe-placeholder">
<Label id={ domId } label={ label } />
<div class="fjs-iframe-placeholder" id={ domId }>
<p class="fjs-iframe-placeholder-text"><Icon width="32" height="24" viewBox="0 0 56 56" />iFrame</p>
</div>
</div>;
Expand Down

0 comments on commit c8738d0

Please sign in to comment.