devexpress-richedit
Version:
DevExpress Rich Text Editor is an advanced word-processing tool designed for working with rich text documents.
18 lines (17 loc) • 774 B
JavaScript
import { RendererClassNames } from '../renderer-class-names';
import { FrameBaseListener } from './frame-base-listener';
export class AnchorListener extends FrameBaseListener {
baseFrameClassName() {
return RendererClassNames.ANCHOR;
}
constructor(rendererCache, stringResources, readOnlyPropertyHolder, fieldOptions) {
super(rendererCache, stringResources, fieldOptions);
this.readOnlyPropertyHolder = readOnlyPropertyHolder;
}
NotifyShow(pageIndex, bounds, tip, isTextBox, isAnchoredObject, rotation) {
if (this.readOnlyPropertyHolder.isReadOnlyPersistent)
super.NotifyHide();
else
super.NotifyShow(pageIndex, bounds, tip, isTextBox, isAnchoredObject, rotation);
}
}