texteditor: Fix apply operation with init files