Opened 9 years ago

Closed 9 years ago

#15829 closed enhancement (invalid)

Rich text editor needs ability to getComputedStyle for node other than domNode

Reported by: rmaccracken Owned by: rmaccracken
Priority: undecided Milestone: tbd
Component: Editor Version: 1.7.3
Keywords: Cc:
Blocked By: Blocking:


If I use a dialog to popup a rich text editor to edit some HTML content, then the editor is not necessarily applying the correct font and lineHeight styling. In _getIframeDocTxt, the editor uses the following line to get the computed style:

var _cs = domStyle.getComputedStyle(this.domNode);

I need a way to pass in a separate node or computed style object so that the editor can apply styling separate from where it is located.

Change History (2)

comment:1 Changed 9 years ago by bill

Component: GeneralEditor
Owner: set to rmaccracken
Status: newpending

You can pass in custom stylesheets to the editor. Doesn't that solve your issue?

comment:2 Changed 9 years ago by trac-o-bot

Resolution: invalid
Status: pendingclosed

Because we get so many tickets, we often need to return them to the initial reporter for more information. If that person does not reply within 14 days, the ticket will automatically be closed, and that has happened in this case. If you still are interested in pursuing this issue, feel free to add a comment with the requested information and we will be happy to reopen the ticket if it is still valid. Thanks!

Note: See TracTickets for help on using tickets.